|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Short chargeStatus; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 入库取空 | 
|---|
|  |  |  | private Boolean inEmpty; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 出库取空 | 
|---|
|  |  |  | private Boolean outEmpty; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setStatus(Short status){ | 
|---|
|  |  |  | this.status = status; | 
|---|
|  |  |  | this.statusType = SteStatusType.get(status); | 
|---|
|  |  |  | 
|---|
|  |  |  | if (waitingRes.IsSuccess) { | 
|---|
|  |  |  | steProtocol.setWaiting(waitingRes.Content); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | OperateResultExOne<Boolean> inEmptyRes = siemensS7Net.ReadBool("V2001.2"); | 
|---|
|  |  |  | if (inEmptyRes.IsSuccess) { | 
|---|
|  |  |  | steProtocol.setInEmpty(inEmptyRes.Content); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | OperateResultExOne<Boolean> outEmptyRes = siemensS7Net.ReadBool("V2001.3"); | 
|---|
|  |  |  | if (outEmptyRes.IsSuccess) { | 
|---|
|  |  |  | steProtocol.setOutEmpty(outEmptyRes.Content); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | steProtocol.setAlarm(siemensS7Net.getByteTransform().TransInt16(result.Content, 6)); | 
|---|
|  |  |  | steProtocol.setAlarm0(siemensS7Net.getByteTransform().TransInt16(result.Content, 8)); | 
|---|
|  |  |  | steProtocol.setCharge(siemensS7Net.getByteTransform().TransSingle(result.Content, 10)); | 
|---|
|  |  |  | 
|---|
|  |  |  | <select id="selectPakin" resultMap="BaseResultMap"> | 
|---|
|  |  |  | select top 1 * from dbo.asr_wrk_mast | 
|---|
|  |  |  | where 1=1 | 
|---|
|  |  |  | and wrk_sts in (3,4,5,6,7,8) | 
|---|
|  |  |  | and wrk_sts in (3,4,5,6,7,8,9) | 
|---|
|  |  |  | and crn_no=#{crnNo} | 
|---|
|  |  |  | <if test="steNo != null"> | 
|---|
|  |  |  | and ste_no = #{steNo} | 
|---|
|  |  |  | 
|---|
|  |  |  | <select id="selectPakout" resultMap="BaseResultMap"> | 
|---|
|  |  |  | select top 1 * from dbo.asr_wrk_mast | 
|---|
|  |  |  | where 1=1 | 
|---|
|  |  |  | and wrk_sts in (12,13,14,15,16) | 
|---|
|  |  |  | and wrk_sts in (12,13,14,15,16,17) | 
|---|
|  |  |  | and crn_no=#{crnNo} | 
|---|
|  |  |  | <if test="steNo != null"> | 
|---|
|  |  |  | and ste_no = #{steNo} | 
|---|