POST jxc_api/ErpEmployee/Add

Request Information

URI Parameters

None.

Body Parameters

ErpEmployeeEditModel
NameDescriptionTypeAdditional information
EmpId

integer

None.

AutoCreated

integer

None.

BaseInfo

ErpBaseEmployeeEditModel

None.

Items

Collection of ErpInsuranceEditModel

None.

Request Formats

application/json, text/json

Sample:
{
  "EmpId": 1,
  "AutoCreated": 2,
  "BaseInfo": {
    "EmpId": 1,
    "EmpCode": "sample string 2",
    "EmpName": "sample string 3",
    "UserSn": 4,
    "Gender": 5,
    "IdType": 1,
    "IdNo": "sample string 6",
    "Birthday": "2024-11-25 02:51:21",
    "Phone": "sample string 7",
    "Email": "sample string 8",
    "Education": 1,
    "BankName": "sample string 9",
    "BankAcNo": "sample string 10",
    "InductionDate": "2024-11-25 02:51:21",
    "QuitDate": "2024-11-25 02:51:21",
    "Department": 13,
    "Position": "sample string 14",
    "AsubId": 15,
    "AsubName": "sample string 16",
    "SalaryStartDate": "2024-11-25 02:51:21",
    "SalaryEndDate": "2024-11-25 02:51:21",
    "Title": "sample string 19",
    "HaveInsurance": 20,
    "Status": 21,
    "Note": "sample string 22",
    "AaCode": "sample string 23",
    "AcCodeName": "sample string 24",
    "AaCodeName": "sample string 24"
  },
  "Items": [
    {
      "EmployeeId": 1,
      "InsurType": 1001,
      "InsurName": "sample string 2",
      "PayBase": 3.0,
      "CompanyPercent": 4.0,
      "CompanyAmount": 5.0,
      "PersonPercent": 6.0,
      "PersonAmount": 7.0,
      "PayMode": 8
    },
    {
      "EmployeeId": 1,
      "InsurType": 1001,
      "InsurName": "sample string 2",
      "PayBase": 3.0,
      "CompanyPercent": 4.0,
      "CompanyAmount": 5.0,
      "PersonPercent": 6.0,
      "PersonAmount": 7.0,
      "PayMode": 8
    }
  ]
}

application/xml, text/xml

Sample:
<ErpEmployeeEditModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.BaseData.Models.Employee">
  <AutoCreated>2</AutoCreated>
  <BaseInfo>
    <AaCode>sample string 23</AaCode>
    <AcCodeName>sample string 24</AcCodeName>
    <AsubId>15</AsubId>
    <AsubName>sample string 16</AsubName>
    <BankAcNo>sample string 10</BankAcNo>
    <BankName>sample string 9</BankName>
    <Birthday>2024-11-25T02:51:21.8850987+08:00</Birthday>
    <Department>13</Department>
    <Education>初中</Education>
    <Email>sample string 8</Email>
    <EmpCode>sample string 2</EmpCode>
    <EmpId>1</EmpId>
    <EmpName>sample string 3</EmpName>
    <Gender>5</Gender>
    <HaveInsurance>20</HaveInsurance>
    <IdNo>sample string 6</IdNo>
    <IdType>IDCard</IdType>
    <InductionDate>2024-11-25T02:51:21.8856105+08:00</InductionDate>
    <Note>sample string 22</Note>
    <Phone>sample string 7</Phone>
    <Position>sample string 14</Position>
    <QuitDate>2024-11-25T02:51:21.8856105+08:00</QuitDate>
    <SalaryEndDate>2024-11-25T02:51:21.8856105+08:00</SalaryEndDate>
    <SalaryStartDate>2024-11-25T02:51:21.8856105+08:00</SalaryStartDate>
    <Status>21</Status>
    <Title>sample string 19</Title>
    <UserSn>4</UserSn>
  </BaseInfo>
  <EmpId>1</EmpId>
  <Items>
    <ErpInsuranceEditModel>
      <CompanyAmount>5</CompanyAmount>
      <CompanyPercent>4</CompanyPercent>
      <EmployeeId>1</EmployeeId>
      <InsurName>sample string 2</InsurName>
      <InsurType>养老保险</InsurType>
      <PayBase>3</PayBase>
      <PayMode>8</PayMode>
      <PersonAmount>7</PersonAmount>
      <PersonPercent>6</PersonPercent>
    </ErpInsuranceEditModel>
    <ErpInsuranceEditModel>
      <CompanyAmount>5</CompanyAmount>
      <CompanyPercent>4</CompanyPercent>
      <EmployeeId>1</EmployeeId>
      <InsurName>sample string 2</InsurName>
      <InsurType>养老保险</InsurType>
      <PayBase>3</PayBase>
      <PayMode>8</PayMode>
      <PersonAmount>7</PersonAmount>
      <PersonPercent>6</PersonPercent>
    </ErpInsuranceEditModel>
  </Items>
</ErpEmployeeEditModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.