POST api/Attendance/CreateOrEditRules?type={type}
创建考勤规则
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| type |
0-上班打卡时间,1-下班打卡时间 |
integer |
Required |
Body Parameters
DAL.t_attendance| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| CompanyId | integer |
None. |
|
| DepartmentId | integer |
None. |
|
| PostId | integer |
None. |
|
| WorkBegin | time interval |
None. |
|
| WorkEnd | time interval |
None. |
|
| PointX | decimal number |
None. |
|
| PointY | decimal number |
None. |
|
| PointSkewing | decimal number |
None. |
|
| PointAddress | string |
None. |
|
| AttPointId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"CompanyId": 2,
"DepartmentId": 1,
"PostId": 1,
"WorkBegin": "00:00:00.1234567",
"WorkEnd": "00:00:00.1234567",
"PointX": 1.1,
"PointY": 1.1,
"PointSkewing": 1.1,
"PointAddress": "sample string 3",
"AttPointId": 1
}
application/xml, text/xml
Sample:
<t_attendance xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAL"> <AttPointId>1</AttPointId> <CompanyId>2</CompanyId> <DepartmentId>1</DepartmentId> <Id>1</Id> <PointAddress>sample string 3</PointAddress> <PointSkewing>1.1</PointSkewing> <PointX>1.1</PointX> <PointY>1.1</PointY> <PostId>1</PostId> <WorkBegin>PT0.1234567S</WorkBegin> <WorkEnd>PT0.1234567S</WorkEnd> </t_attendance>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
System.Web.Http.Results.JsonResultOfDAL.HandleResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Content | DAL.HandleResult |
None. |
|
| SerializerSettings | Newtonsoft.Json.JsonSerializerSettings |
None. |
|
| Encoding | System.Text.Encoding |
None. |
|
| Request | System.Net.Http.HttpRequestMessage |
None. |
Response Formats
application/json, text/json
Sample:
Sample not available.