|  |  | 
 |  |  |             string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); | 
 |  |  |             string msg2 = sArray[0].ToString(); | 
 |  |  |             string msg3 = sArray[1].ToString(); | 
 |  |  |  | 
 |  |  |             string msg4 = sArray[2].ToString(); | 
 |  |  |  | 
 |  |  |             //string UserName = ""; | 
 |  |  | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 //得到信息 | 
 |  |  |                 ds = oCN.RunProcReturn("select top 1 * from Gy_EquipFileBillMain  where HEquipFileNumber= '" + HBarCode + "'", "Gy_EquipFileBillMain"); | 
 |  |  |                 ds = oCN.RunProcReturn("select top 1 * from h_v_Gy_EquipFileBillList where HEquipFileNumber= '" + HBarCode + "'", "Gy_EquipFileBillMain"); | 
 |  |  |                 //写入信息 | 
 |  |  |                 if (ds == null || ds.Tables[0].Rows.Count == 0) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "未查询到设备信息!"; | 
 |  |  |                     objJsonResult.Message = "1.未查询到设备信息! 2.设备没有维护故障登记单"; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  | 
 |  |  |             string msg1 = _value.ToString(); | 
 |  |  |             string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); | 
 |  |  |             string msg2 = sArray[0].ToString(); | 
 |  |  |             string msg3 = sArray[1].ToString(); | 
 |  |  |  | 
 |  |  |             string UserName = ""; | 
 |  |  |  | 
 |  |  | 
 |  |  |                     oBill.omodel = oItem; | 
 |  |  |                 } | 
 |  |  |                 //子表体数据 | 
 |  |  |  | 
 |  |  |                 //按 },{来拆分数组 //去掉【和】 | 
 |  |  |                 msg3 = msg3.Substring(1, msg3.Length - 2); | 
 |  |  |                 msg3 = msg3.Replace("\\", ""); | 
 |  |  |                 msg3 = msg3.Replace("\n", "");  //\n | 
 |  |  |                 List<Models.ClsSb_EquipRepairWorkBillSub> ls = new List<Models.ClsSb_EquipRepairWorkBillSub>(); | 
 |  |  |                 ls = oListModels.getObjectByJson_Sb_EquipRepairWorkBillSubPDA(msg2); | 
 |  |  |                 ls = oListModels.getObjectByJson_Sb_EquipRepairWorkBillSubPDA(msg3); | 
 |  |  |                 int i = 0; | 
 |  |  |                 foreach (Models.ClsSb_EquipRepairWorkBillSub oItemSub in ls) | 
 |  |  |                 { | 
 |  |  | 
 |  |  |                     oItemSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now); | 
 |  |  |                     oItemSub.HCloseType = false;   //关闭类型 | 
 |  |  |                     //oItemSub.HRemark = "";         //备注 | 
 |  |  |                     oItemSub.HSourceInterID = 0;     // 源单主内码 | 
 |  |  |                     oItemSub.HSourceEntryID = 0;   //源单子内码 | 
 |  |  |                     //oItemSub.HSourceInterID = 0;     // 源单主内码 | 
 |  |  |                     //oItemSub.HSourceEntryID = 0;   //源单子内码 | 
 |  |  |                     //oItemSub.HSourceBillNo = "";  //源单单号 | 
 |  |  |                     //oItemSub.HSourceBillType = ""; //源单类型 | 
 |  |  |                     //oItemSub.HRelationQty = 0;     //关联数量 |