|  |  |  | 
|---|
|  |  |  | public int? HWHID = 0; | 
|---|
|  |  |  | public string 退料原因 { get; set; } | 
|---|
|  |  |  | public int? 退回数量 = 0; | 
|---|
|  |  |  | public int? HSPID = 0; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | [Route("Sc_CallGoodsBackRequestBill/JIT_BackGoodsList_PZQR")] | 
|---|
|  |  |  | 
|---|
|  |  |  | var _value = msg["msg"].ToString(); | 
|---|
|  |  |  | string[] sArray = _value.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); | 
|---|
|  |  |  | string msg2 = sArray[0].ToString(); | 
|---|
|  |  |  | string user = sArray[1].ToString(); | 
|---|
|  |  |  | try | 
|---|
|  |  |  | { | 
|---|
|  |  |  | msg2 = msg2.Replace("\\", ""); | 
|---|
|  |  |  | msg2 = msg2.Replace("\n", ""); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | objJsonResult.code = ds.Tables[0].Rows[0][0].ToString(); | 
|---|
|  |  |  | objJsonResult.count = int.Parse(ds.Tables[0].Rows[0][0].ToString()); | 
|---|
|  |  |  | objJsonResult.Message = ds.Tables[0].Rows[0][1].ToString(); | 
|---|
|  |  |  | objJsonResult.data = ds.Tables[0]; | 
|---|
|  |  |  | return objJsonResult; | 
|---|
|  |  |  | List<JIT_BackGoods_PZQR> listCa = new List<JIT_BackGoods_PZQR>(); | 
|---|
|  |  |  | //获取表格数据集合 | 
|---|
|  |  |  | listCa = JsonConvert.DeserializeObject<List<JIT_BackGoods_PZQR>>(msg2.ToString()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | int a = 0; | 
|---|
|  |  |  | for (int i = 0; i < listCa.Count; i++) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | ds = oCN.RunProcReturn($"exec h_p_JIT_BackGoods_WHReceive {listCa[i].hmainid},{listCa[i].Hsubid}," + | 
|---|
|  |  |  | $"{listCa[i].HSPID},{user}", "h_p_JIT_BackGoods_WHReceive"); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (ds.Tables[0].Rows[0][0].ToString() == "1") | 
|---|
|  |  |  | { | 
|---|
|  |  |  | a++; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (a == listCa.Count) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | objJsonResult.code = ds.Tables[0].Rows[0][0].ToString(); | 
|---|
|  |  |  | objJsonResult.count = int.Parse(ds.Tables[0].Rows[0][0].ToString()); | 
|---|
|  |  |  | objJsonResult.Message = ds.Tables[0].Rows[0][1].ToString(); | 
|---|
|  |  |  | objJsonResult.data = ds.Tables[0]; | 
|---|
|  |  |  | return objJsonResult; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | else if (a > 0 && a < listCa.Count) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | objJsonResult.code = "0"; | 
|---|
|  |  |  | objJsonResult.count = 0; | 
|---|
|  |  |  | objJsonResult.Message = "未全部仓库接收!"; | 
|---|
|  |  |  | objJsonResult.data = null; | 
|---|
|  |  |  | return objJsonResult; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | else | 
|---|
|  |  |  | { | 
|---|
|  |  |  | objJsonResult.code = ds.Tables[0].Rows[0][0].ToString(); | 
|---|
|  |  |  | objJsonResult.count = int.Parse(ds.Tables[0].Rows[0][0].ToString()); | 
|---|
|  |  |  | objJsonResult.Message = ds.Tables[0].Rows[0][1].ToString(); | 
|---|
|  |  |  | objJsonResult.data = ds.Tables[0]; | 
|---|
|  |  |  | return objJsonResult; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | catch (Exception e) | 
|---|
|  |  |  | { | 
|---|