|  |  | 
 |  |  |             string msg2 = sArray[0].ToString(); | 
 |  |  |             string msg3 = sArray[1].ToString(); | 
 |  |  |             string msg4 = sArray[2].ToString(); | 
 |  |  |             string msg5 = sArray[3].ToString(); | 
 |  |  |             //string msg5 = sArray[3].ToString(); | 
 |  |  |  | 
 |  |  |             string UserName = ""; | 
 |  |  |             ListModels oListModels = new ListModels(); | 
 |  |  | 
 |  |  |  | 
 |  |  |                 } | 
 |  |  |  | 
 |  |  |                 //配件项表体数据 | 
 |  |  |                 //按 },{来拆分数组 //去掉【和】 | 
 |  |  |                 msg5 = msg5.Substring(1, msg5.Length - 2); | 
 |  |  |                 msg5 = msg5.Replace("\\", ""); | 
 |  |  |                 msg5 = msg5.Replace("\n", "");  //\n | 
 |  |  |                                                 //msg2 = msg2.Replace("'", "’"); | 
 |  |  |                 List<Model.ClsSc_MouldDotCheckBillSub_Item> ls1 = new List<Model.ClsSc_MouldDotCheckBillSub_Item>(); | 
 |  |  |                 ls1 = oListModels.getObjectByJson_Sc_MouldDotCheckBillSub_Item(msg5); | 
 |  |  |                 int j = 0; | 
 |  |  |                 foreach (Model.ClsSc_MouldDotCheckBillSub_Item oItemSub in ls1) | 
 |  |  |                 { | 
 |  |  |                 ////配件项表体数据 | 
 |  |  |                 ////按 },{来拆分数组 //去掉【和】 | 
 |  |  |                 //msg5 = msg5.Substring(1, msg5.Length - 2); | 
 |  |  |                 //msg5 = msg5.Replace("\\", ""); | 
 |  |  |                 //msg5 = msg5.Replace("\n", "");  //\n | 
 |  |  |                 //                                //msg2 = msg2.Replace("'", "’"); | 
 |  |  |                 //List<Model.ClsSc_MouldDotCheckBillSub_Item> ls1 = new List<Model.ClsSc_MouldDotCheckBillSub_Item>(); | 
 |  |  |                 //ls1 = oListModels.getObjectByJson_Sc_MouldDotCheckBillSub_Item(msg5); | 
 |  |  |                 //int j = 0; | 
 |  |  |                 //foreach (Model.ClsSc_MouldDotCheckBillSub_Item oItemSub in ls1) | 
 |  |  |                 //{ | 
 |  |  |  | 
 |  |  |                     j++; | 
 |  |  |                     oItemSub.HEntryID = j; | 
 |  |  |                     //oItemSub.HCloseMan = "";       //行关闭 | 
 |  |  |                     oItemSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now); | 
 |  |  |                     oItemSub.HCloseType = false;   //关闭类型 | 
 |  |  |                 //    j++; | 
 |  |  |                 //    oItemSub.HEntryID = j; | 
 |  |  |                 //    //oItemSub.HCloseMan = "";       //行关闭 | 
 |  |  |                 //    oItemSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now); | 
 |  |  |                 //    oItemSub.HCloseType = false;   //关闭类型 | 
 |  |  |  | 
 |  |  |                     oItemSub.HSourceInterID = 0;     // 源单主内码 | 
 |  |  |                     oItemSub.HSourceEntryID = 0;   //源单子内码 | 
 |  |  |                 //    oItemSub.HSourceInterID = 0;     // 源单主内码 | 
 |  |  |                 //    oItemSub.HSourceEntryID = 0;   //源单子内码 | 
 |  |  |  | 
 |  |  |                     oItemSub.HRelationQty = 0;     //关联数量 | 
 |  |  |                     oBill.DetailCol.Add(oItemSub); | 
 |  |  |                 } | 
 |  |  |                 //    oItemSub.HRelationQty = 0;     //关联数量 | 
 |  |  |                 //    oBill.DetailCol.Add(oItemSub); | 
 |  |  |                 //} | 
 |  |  |  | 
 |  |  |                 //保存 | 
 |  |  |                 //保存完毕后处理 | 
 |  |  | 
 |  |  |             string msg2 = sArray[0].ToString(); | 
 |  |  |             string msg3 = sArray[1].ToString(); | 
 |  |  |             string msg4 = sArray[2].ToString(); | 
 |  |  |             string msg5 = sArray[3].ToString(); | 
 |  |  |             //string msg5 = sArray[3].ToString(); | 
 |  |  |  | 
 |  |  |  | 
 |  |  |             string UserName = ""; | 
 |  |  | 
 |  |  |  | 
 |  |  |                 } | 
 |  |  |  | 
 |  |  |                 //配件项表体数据 | 
 |  |  |                 //按 },{来拆分数组 //去掉【和】 | 
 |  |  |                 msg5 = msg5.Substring(1, msg5.Length - 2); | 
 |  |  |                 msg5 = msg5.Replace("\\", ""); | 
 |  |  |                 msg5 = msg5.Replace("\n", "");  //\n | 
 |  |  |                                                 //msg2 = msg2.Replace("'", "’"); | 
 |  |  |                 List<Model.ClsSc_MouldDotCheckPlanBillSub_Item> ls1 = new List<Model.ClsSc_MouldDotCheckPlanBillSub_Item>(); | 
 |  |  |                 ls1 = oListModels.getObjectByJson_Sc_MouldDotCheckPlanBillSub_Item(msg5); | 
 |  |  |                 int j = 0; | 
 |  |  |                 foreach (Model.ClsSc_MouldDotCheckPlanBillSub_Item oItemSub in ls1) | 
 |  |  |                 { | 
 |  |  |                 ////配件项表体数据 | 
 |  |  |                 ////按 },{来拆分数组 //去掉【和】 | 
 |  |  |                 //msg5 = msg5.Substring(1, msg5.Length - 2); | 
 |  |  |                 //msg5 = msg5.Replace("\\", ""); | 
 |  |  |                 //msg5 = msg5.Replace("\n", "");  //\n | 
 |  |  |                 //                                //msg2 = msg2.Replace("'", "’"); | 
 |  |  |                 //List<Model.ClsSc_MouldDotCheckPlanBillSub_Item> ls1 = new List<Model.ClsSc_MouldDotCheckPlanBillSub_Item>(); | 
 |  |  |                 //ls1 = oListModels.getObjectByJson_Sc_MouldDotCheckPlanBillSub_Item(msg5); | 
 |  |  |                 //int j = 0; | 
 |  |  |                 //foreach (Model.ClsSc_MouldDotCheckPlanBillSub_Item oItemSub in ls1) | 
 |  |  |                 //{ | 
 |  |  |  | 
 |  |  |                     j++; | 
 |  |  |                     oItemSub.HEntryID = j; | 
 |  |  |                     //oItemSub.HCloseMan = "";       //行关闭 | 
 |  |  |                     oItemSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now); | 
 |  |  |                     oItemSub.HCloseType = false;   //关闭类型 | 
 |  |  |                 //    j++; | 
 |  |  |                 //    oItemSub.HEntryID = j; | 
 |  |  |                 //    //oItemSub.HCloseMan = "";       //行关闭 | 
 |  |  |                 //    oItemSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now); | 
 |  |  |                 //    oItemSub.HCloseType = false;   //关闭类型 | 
 |  |  |  | 
 |  |  |                     oItemSub.HSourceInterID = 0;     // 源单主内码 | 
 |  |  |                     oItemSub.HSourceEntryID = 0;   //源单子内码 | 
 |  |  |                 //    oItemSub.HSourceInterID = 0;     // 源单主内码 | 
 |  |  |                 //    oItemSub.HSourceEntryID = 0;   //源单子内码 | 
 |  |  |  | 
 |  |  |                     oItemSub.HRelationQty = 0;     //关联数量 | 
 |  |  |                     oBill.DetailCol.Add(oItemSub); | 
 |  |  |                 } | 
 |  |  |                 //    oItemSub.HRelationQty = 0;     //关联数量 | 
 |  |  |                 //    oBill.DetailCol.Add(oItemSub); | 
 |  |  |                 //} | 
 |  |  |  | 
 |  |  |                 //保存 | 
 |  |  |                 //保存完毕后处理 | 
 |  |  | 
 |  |  |             { | 
 |  |  |                 SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); | 
 |  |  |                 //获取点检项目编辑数据 | 
 |  |  |                 ds = oCN.RunProcReturn("select HDotCheckItem, HDotCheckPart , HClaim, a.HRemark,a.HManagerID,e.HNumber HManagerCode,e.HName HManagerName from Sc_MouldDotCheckPlanBillSub a left join Gy_Employee e on a.HManagerID=e.HItemID where 1=1 " + sqlWhere, "Sc_MouldDotCheckPlanBillSub"); | 
 |  |  |                 //获取配件项目编辑数据 | 
 |  |  |                 ds1 = oCN.RunProcReturn(@"select b.HMaterID,  mt.Hnumber HMaterNumber ,mt.HName HMaterName, b.HUnitID | 
 |  |  |                     ,u2.hnumber HUnitNumber,u2.HName HUnitName,b.HQty,b.HQtyMust,b.HRemark  | 
 |  |  |                     from Sc_MouldDotCheckPlanBillSub_Item b  | 
 |  |  |                     left join Gy_Material mt on b.HMaterID=mt.HItemID  | 
 |  |  |                     left join h_v_IF_Unit u2 on b.HUnitID=u2.HItemID  where 1=1 " + sqlWhere, "Sc_MouldDotCheckPlanBillSub_Item"); | 
 |  |  |                 ds = oCN.RunProcReturn(@"select a.HDotCheckItemID,HDotCheckItem, HDotCheckPart , HClaim, a.HRemark,a.HManagerID,e.HNumber HManagerCode,e.HName HManagerName from Sc_MouldDotCheckPlanBillSub a  | 
 |  |  |                   left join Gy_Employee e on a.HManagerID=e.HItemID | 
 |  |  |                         where 1=1 " + sqlWhere, "Sc_MouldDotCheckPlanBillSub"); | 
 |  |  |                 ////获取配件项目编辑数据 | 
 |  |  |                 //ds1 = oCN.RunProcReturn(@"select b.HMaterID,  mt.Hnumber HMaterNumber ,mt.HName HMaterName, b.HUnitID | 
 |  |  |                 //    ,u2.hnumber HUnitNumber,u2.HName HUnitName,b.HQty,b.HQtyMust,b.HRemark  | 
 |  |  |                 //    from Sc_MouldDotCheckPlanBillSub_Item b  | 
 |  |  |                 //    left join Gy_Material mt on b.HMaterID=mt.HItemID  | 
 |  |  |                 //    left join h_v_IF_Unit u2 on b.HUnitID=u2.HItemID  where 1=1 " + sqlWhere, "Sc_MouldDotCheckPlanBillSub_Item"); | 
 |  |  |                 list.Add(ds.Tables[0]); | 
 |  |  |                 list.Add(ds1.Tables[0]); | 
 |  |  |                 //list.Add(ds1.Tables[0]); | 
 |  |  |                 objJsonResult.code = "0"; | 
 |  |  |                 objJsonResult.count = 1; | 
 |  |  |                 objJsonResult.Message = "获取信息成功!"; |