POST api/Exm/SetLayOutRule

按规则编排考号

Request Information

URI Parameters

None.

Body Parameters

SetLayOutRuleCommand
NameDescriptionTypeAdditional information
RuleId

string

None.

OrgId

string

Required

ExamId

string

Required

OldExamId

string

None.

StartNo

integer

None.

SerialLength

integer

None.

SeatNoLength

integer

None.

RoomNoLength

integer

None.

Capacity

integer

None.

IsStartOrg

boolean

None.

IsStartGrade

boolean

None.

OnlySeatingType

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "RuleId": "sample string 1",
  "OrgId": "sample string 2",
  "ExamId": "sample string 3",
  "OldExamId": "sample string 4",
  "StartNo": 5,
  "SerialLength": 6,
  "SeatNoLength": 7,
  "RoomNoLength": 8,
  "Capacity": 9,
  "IsStartOrg": true,
  "IsStartGrade": true,
  "OnlySeatingType": 1
}

text/xml

Sample:
<SetLayOutRuleCommand xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ems.Domain.Exm.Commands">
  <Capacity>9</Capacity>
  <ExamId>sample string 3</ExamId>
  <IsStartGrade>true</IsStartGrade>
  <IsStartOrg>true</IsStartOrg>
  <OldExamId>sample string 4</OldExamId>
  <OnlySeatingType>1</OnlySeatingType>
  <OrgId>sample string 2</OrgId>
  <RoomNoLength>8</RoomNoLength>
  <RuleId>sample string 1</RuleId>
  <SeatNoLength>7</SeatNoLength>
  <SerialLength>6</SerialLength>
  <StartNo>5</StartNo>
</SetLayOutRuleCommand>

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 'SetLayOutRuleCommand'.

Response Information

Resource Description

ServiceResult
NameDescriptionTypeAdditional information
RetCode

integer

None.

Msg

string

None.

Result

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "RetCode": 1,
  "Msg": "sample string 2",
  "Result": {}
}

text/xml

Sample:
<ServiceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tdf.Utils.Networking">
  <Msg>sample string 2</Msg>
  <Result />
  <RetCode>1</RetCode>
</ServiceResult>