POST api/AttendanceAPI/AddAttendanceSupplementPunchRuleRule

增加补卡规则

Request Information

URI Parameters

None.

Body Parameters

AttendanceSupplementPunchRule
NameDescriptionTypeAdditional information
Name

string

None.

IsValid

boolean

None.

IsTimesLimit

boolean

None.

LimitTimes

integer

None.

IsDayLimit

boolean

None.

LimitDays

integer

None.

List_AttendanceGroupUsedPunchRule

Collection of AttendanceGroupUsedPunchRule

None.

Tenant_GID

globally unique identifier

None.

SysCreateDate

date

None.

SysCreateUser

globally unique identifier

None.

SysModifyDate

date

None.

SysModifyUser

globally unique identifier

None.

GID

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "IsValid": true,
  "IsTimesLimit": true,
  "LimitTimes": 1,
  "IsDayLimit": true,
  "LimitDays": 1,
  "List_AttendanceGroupUsedPunchRule": [
    {
      "GID": "45a66a5d-1917-4b23-a407-6f3076ca61d4",
      "Name": "sample string 2"
    },
    {
      "GID": "45a66a5d-1917-4b23-a407-6f3076ca61d4",
      "Name": "sample string 2"
    }
  ],
  "Tenant_GID": "ec18623a-9683-4ee1-bc54-2f7719f61232",
  "SysCreateDate": "2025-05-04T15:55:47.3953543+08:00",
  "SysCreateUser": "00000000-0000-0000-0000-000000000000",
  "SysModifyDate": "2025-05-04T15:55:47.3953543+08:00",
  "SysModifyUser": "00000000-0000-0000-0000-000000000000",
  "GID": "15445aeb-9a67-44ac-8803-a1049f8b2dcb"
}

application/xml, text/xml

Sample:
<AttendanceSupplementPunchRule xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JetHR.Attendance.Model">
  <_gid xmlns="http://schemas.datacontract.org/2004/07/JetHR.Core.Model">15445aeb-9a67-44ac-8803-a1049f8b2dcb</_gid>
  <SysModifyDate xmlns="http://schemas.datacontract.org/2004/07/JetHR.Core.Model">2025-05-04T15:55:47.3953543+08:00</SysModifyDate>
  <SysModifyUser xmlns="http://schemas.datacontract.org/2004/07/JetHR.Core.Model">00000000-0000-0000-0000-000000000000</SysModifyUser>
  <Tenant_GID xmlns="http://schemas.datacontract.org/2004/07/JetHR.Core.Model">ec18623a-9683-4ee1-bc54-2f7719f61232</Tenant_GID>
  <IsDayLimit>true</IsDayLimit>
  <IsTimesLimit>true</IsTimesLimit>
  <IsValid>true</IsValid>
  <LimitDays>1</LimitDays>
  <LimitTimes>1</LimitTimes>
  <List_AttendanceGroupUsedPunchRule>
    <AttendanceGroupUsedPunchRule>
      <GID>45a66a5d-1917-4b23-a407-6f3076ca61d4</GID>
      <Name>sample string 2</Name>
    </AttendanceGroupUsedPunchRule>
    <AttendanceGroupUsedPunchRule>
      <GID>45a66a5d-1917-4b23-a407-6f3076ca61d4</GID>
      <Name>sample string 2</Name>
    </AttendanceGroupUsedPunchRule>
  </List_AttendanceGroupUsedPunchRule>
  <Name>sample string 1</Name>
</AttendanceSupplementPunchRule>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AttendanceSupplementPunchRule'.

Response Information

Resource Description

增加补卡规则

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>