|  |  | 
 |  |  |         /// å¨å
·ç¼åå表çé¢ï¼è¿åç¼ååè¡¨ä¿¡æ¯ | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("MouldController/GetKf_PonderationBillMain_TempList_New_Json")] | 
 |  |  |         [Route("MouldController/GetSc_MouldStockBillMain_TempList_Json")] | 
 |  |  |         [HttpGet] | 
 |  |  |         public object GetKf_PonderationBillMain_TempList_New_Json(string HBillType, string HMaker, Int64 HStockOrgID) | 
 |  |  |         public object GetSc_MouldStockBillMain_TempList_Json(string HBillType, string HMaker, Int64 HStockOrgID) | 
 |  |  |         { | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #region æ¨¡å
·æ¹å¶å
¥åºå     ä¸ä¼ çå | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// æ¨¡å
·æ¹å¶å
¥åºåæ°å¢ä¸ä¼  | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("MouldController/set_SaveMouldRepairInBill_Json")] | 
 |  |  |         [HttpPost] | 
 |  |  |         public object set_SaveMouldRepairInBill_Json([FromBody] JObject oMain) | 
 |  |  |         { | 
 |  |  |             BillStatus = DBUtility.ClsPub.Enum_BillStatus.BillStatus_AddNew; | 
 |  |  |             DAL.ClsSc_MouldRepairInBill BillNew = new DAL.ClsSc_MouldRepairInBill(); | 
 |  |  |             var _value = oMain["oMain"].ToString(); | 
 |  |  |             string msg1 = _value.ToString(); | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 string sMainStr = "[" + msg1.ToString() + "]"; | 
 |  |  |                 List<Model.ClsSc_MouldRepairInBillMain> mainList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSc_MouldRepairInBillMain>>(sMainStr); | 
 |  |  |  | 
 |  |  |                 //忮巿¯å¦éå¤ | 
 |  |  |                 if (BillNew.IsExistBillNo(ref ClsPub.sExeReturnInfo, mainList[0].HBillNo, BillStatus, mainList[0].HInterID)) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "åæ®å·éå¤ï¼ä¸å
许ä¿åï¼"; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 //夿ä¼è®¡ææ¯å¦åç | 
 |  |  |                 string s = ""; | 
 |  |  |                 int sYear = 0; | 
 |  |  |                 int sPeriod = 0; | 
 |  |  |                 if (DBUtility.Xt_BaseBillFun.Fun_AllowYearPeriod(mainList[0].HDate, ref sYear, ref sPeriod, ref s) == false) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = s; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 //åºå®èµå¼================================= | 
 |  |  |                 BillNew.omodel.HYear = sYear; | 
 |  |  |                 BillNew.omodel.HPeriod = sPeriod; | 
 |  |  |                 BillNew.omodel.HBillType = "3826"; | 
 |  |  |                 BillNew.omodel.HInterID = mainList[0].HInterID; | 
 |  |  |                 BillNew.omodel.HBillNo = mainList[0].HBillNo; | 
 |  |  |                 BillNew.omodel.HDate = mainList[0].HDate; | 
 |  |  |                 BillNew.omodel.HRemark = mainList[0].HRemark; | 
 |  |  |                 BillNew.omodel.HMaker = mainList[0].HMaker; | 
 |  |  |                 BillNew.omodel.HSTOCKORGID = mainList[0].HSTOCKORGID; | 
 |  |  |                 DBUtility.ClsPub.CurUserName = mainList[0].HMaker; | 
 |  |  |                 //==================================================== | 
 |  |  |                 BillNew.omodel.HSupID = mainList[0].HSupID; | 
 |  |  |                 BillNew.omodel.HSupTypeID = 1; //ï¼1 ä¾åºåã2 å®¢æ·ã 3 è½¦é´é¨é¨ï¼ | 
 |  |  |                 BillNew.omodel.HEmpID = mainList[0].HEmpID; | 
 |  |  |                 BillNew.omodel.HManagerID = mainList[0].HManagerID; | 
 |  |  |                 BillNew.omodel.HSecManagerID = mainList[0].HSecManagerID; | 
 |  |  |                 BillNew.omodel.HKeeperID = mainList[0].HKeeperID; | 
 |  |  |                 BillNew.omodel.HDeptID = mainList[0].HDeptID; | 
 |  |  |                 BillNew.omodel.HWHID = mainList[0].HWHID; | 
 |  |  |                 BillNew.omodel.HSCWHID = mainList[0].HSCWHID; | 
 |  |  |                 BillNew.omodel.HExplanation = mainList[0].HExplanation; | 
 |  |  |                 BillNew.omodel.HInnerBillNo = mainList[0].HInnerBillNo; | 
 |  |  |                 BillNew.omodel.HRedBlueFlag = mainList[0].HRedBlueFlag; | 
 |  |  |                 //å表èµå¼ | 
 |  |  |                 ds = oCn.RunProcReturn("exec h_p_Sc_GetMouldStockBill_Temp " + BillNew.omodel.HInterID.ToString() + ",'" + BillNew.omodel.HBillType + "'", "h_p_Sc_GetMouldStockBill_Temp"); | 
 |  |  |                 if (ds == null || ds.Tables[0].Rows.Count == 0) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "æ²¡ææ«ç ä¿¡æ¯ï¼è¯·å
æ«ææ¡ç ï¼ç¡®è®¤æ è¯¯ååæäº¤ï¼"; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     for (int i = 0; i <= ds.Tables[0].Rows.Count - 1; i++) | 
 |  |  |                     { | 
 |  |  |                         Model.ClsSc_MouldStockBillSub oSub = new Model.ClsSc_MouldStockBillSub(); | 
 |  |  |                         //åºå®èµå¼======================================== | 
 |  |  |                         oSub.HEntryID = i + 1; | 
 |  |  |                         oSub.HRemark = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HRemark"]); | 
 |  |  |                         oSub.HSourceInterID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSourceInterID"]); | 
 |  |  |                         oSub.HSourceEntryID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSourceEntryID"]); | 
 |  |  |                         oSub.HSourceBillType = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HSourceBillType"]); | 
 |  |  |                         oSub.HSourceBillNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HSourceBillNo"]); | 
 |  |  |                         oSub.HRelationQty = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HRelationQty"]); | 
 |  |  |                         oSub.HRelationMoney = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HRelationMoney"]); | 
 |  |  |                         //============================= | 
 |  |  |                         oSub.HMaterID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HMaterID"]); | 
 |  |  |                         oSub.HPropertyID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HAuxPropID"]); | 
 |  |  |                         oSub.HSecUnitID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSecUnitID"]); | 
 |  |  |                         oSub.HSecUnitRate = DBUtility.ClsPub.isSingle(ds.Tables[0].Rows[i]["HSecUnitRate"]); | 
 |  |  |                         oSub.HUnitID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HUnitID"]); | 
 |  |  |                         oSub.HBatchNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HBatchNo"]); | 
 |  |  |                         oSub.HQtyMust = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HQtyMust"]); | 
 |  |  |                         oSub.HQtyRel = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HQtyRel"]); | 
 |  |  |                         oSub.HQty = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HQty"]); | 
 |  |  |                         oSub.HPrice = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HPrice"]); | 
 |  |  |                         oSub.HMoney = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HMoney"]); | 
 |  |  |                         oSub.HDesignLife = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HDesignLife"]); | 
 |  |  |                         oSub.HLeaveLife = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HLeaveLife"]); | 
 |  |  |                         oSub.HUseLife = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HUseLife"]); | 
 |  |  |                         oSub.HUseLifeQty = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HUseLifeQty"]); | 
 |  |  |                         oSub.HNewLifeQty = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HNewLifeQty"]); | 
 |  |  |                         oSub.HWHID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HWHID"]); | 
 |  |  |                         oSub.HSCWHID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSCWHID"]); | 
 |  |  |                         oSub.HSPID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSPID"]); | 
 |  |  |                         oSub.HSCSPID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSCSPID"]); | 
 |  |  |                         oSub.HSPGroupID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSPGroupID"]); | 
 |  |  |                         oSub.HBarCode = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HBarCode"]); | 
 |  |  |                         oSub.HCorrespondentTypeID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HCorrespondentTypeID"]); | 
 |  |  |                         oSub.HCorrespondentID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HCorrespondentID"]); | 
 |  |  |                         oSub.HPOOrderInterID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HPOOrderInterID"]); | 
 |  |  |                         oSub.HPOOrderEntryID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HPOOrderEntryID"]); | 
 |  |  |                         oSub.HPOOrderBillNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HPOOrderBillNo"]); | 
 |  |  |                         oSub.HSeOrderInterID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSeOrderInterID"]); | 
 |  |  |                         oSub.HSeOrderEntryID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSeOrderEntryID"]); | 
 |  |  |                         oSub.HSeOrderBillNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HSeOrderBillNo"]); | 
 |  |  |                         oSub.HStockOrgID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HStockOrgID"]); | 
 |  |  |                         oSub.HOWNERID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HOWNERID"]); | 
 |  |  |                         oSub.HOtherOrgID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HOtherOrgID"]); | 
 |  |  |                         oSub.HOWNERTYPEID = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HOWNERTYPEID"]); | 
 |  |  |                         BillNew.DetailColl.Add(oSub); | 
 |  |  |                     } | 
 |  |  |                 } | 
 |  |  |                 //ä¿å | 
 |  |  |                 bool bResult; | 
 |  |  |                 bResult = BillNew.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); | 
 |  |  |  | 
 |  |  |                 if (bResult) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 1; | 
 |  |  |                     objJsonResult.Message = DBUtility.ClsPub.sExeReturnInfo;  //æåï¼ | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "ä¿å失败ï¼" + DBUtility.ClsPub.sExeReturnInfo; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |             catch (Exception e) | 
 |  |  |             { | 
 |  |  |                 objJsonResult.code = "0"; | 
 |  |  |                 objJsonResult.count = 0; | 
 |  |  |                 objJsonResult.Message = "模å
·æ¹å¶å
¥åºåä¸ä¼ å¤±è´¥ï¼" + e.Message; | 
 |  |  |                 objJsonResult.data = null; | 
 |  |  |                 return objJsonResult; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #region æ¨¡å
·æ¹å¶åºåºå     ä¸ä¼ çå | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #region æ¨¡å
·å
¶ä»å
¥åºå     ä¸ä¼ çå | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// æ¨¡å
·å
¶ä»å
¥åºåæ°å¢ä¸ä¼  | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("MouldController/set_SaveMouldOtherInBill_Json")] | 
 |  |  |         [HttpPost] | 
 |  |  |         public object set_SaveMouldOtherInBill_Json([FromBody] JObject oMain) | 
 |  |  |         { | 
 |  |  |             BillStatus = DBUtility.ClsPub.Enum_BillStatus.BillStatus_AddNew; | 
 |  |  |             DAL.ClsSc_MouldOtherInBill BillNew = new DAL.ClsSc_MouldOtherInBill(); | 
 |  |  |             var _value = oMain["oMain"].ToString(); | 
 |  |  |             string msg1 = _value.ToString(); | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 string sMainStr = "[" + msg1.ToString() + "]"; | 
 |  |  |                 List<Model.ClsSc_MouldOtherInBillMain> mainList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSc_MouldOtherInBillMain>>(sMainStr); | 
 |  |  |  | 
 |  |  |                 //忮巿¯å¦éå¤ | 
 |  |  |                 if (BillNew.IsExistBillNo(ref ClsPub.sExeReturnInfo, mainList[0].HBillNo, BillStatus, mainList[0].HInterID)) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "åæ®å·éå¤ï¼ä¸å
许ä¿åï¼"; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 //夿ä¼è®¡ææ¯å¦åç | 
 |  |  |                 string s = ""; | 
 |  |  |                 int sYear = 0; | 
 |  |  |                 int sPeriod = 0; | 
 |  |  |                 if (DBUtility.Xt_BaseBillFun.Fun_AllowYearPeriod(mainList[0].HDate, ref sYear, ref sPeriod, ref s) == false) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = s; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 //åºå®èµå¼================================= | 
 |  |  |                 BillNew.omodel.HYear = sYear; | 
 |  |  |                 BillNew.omodel.HPeriod = sPeriod; | 
 |  |  |                 BillNew.omodel.HBillType = "3827"; | 
 |  |  |                 BillNew.omodel.HInterID = mainList[0].HInterID; | 
 |  |  |                 BillNew.omodel.HBillNo = mainList[0].HBillNo; | 
 |  |  |                 BillNew.omodel.HDate = mainList[0].HDate; | 
 |  |  |                 BillNew.omodel.HRemark = mainList[0].HRemark; | 
 |  |  |                 BillNew.omodel.HMaker = mainList[0].HMaker; | 
 |  |  |                 BillNew.omodel.HSTOCKORGID = mainList[0].HSTOCKORGID; | 
 |  |  |                 DBUtility.ClsPub.CurUserName = mainList[0].HMaker; | 
 |  |  |                 //==================================================== | 
 |  |  |                 BillNew.omodel.HSupID = mainList[0].HSupID; | 
 |  |  |                 BillNew.omodel.HSupTypeID = 1; //ï¼1 ä¾åºåã2 å®¢æ·ã 3 è½¦é´é¨é¨ï¼ | 
 |  |  |                 BillNew.omodel.HEmpID = mainList[0].HEmpID; | 
 |  |  |                 BillNew.omodel.HManagerID = mainList[0].HManagerID; | 
 |  |  |                 BillNew.omodel.HSecManagerID = mainList[0].HSecManagerID; | 
 |  |  |                 BillNew.omodel.HKeeperID = mainList[0].HKeeperID; | 
 |  |  |                 BillNew.omodel.HDeptID = mainList[0].HDeptID; | 
 |  |  |                 BillNew.omodel.HWHID = mainList[0].HWHID; | 
 |  |  |                 BillNew.omodel.HSCWHID = mainList[0].HSCWHID; | 
 |  |  |                 BillNew.omodel.HExplanation = mainList[0].HExplanation; | 
 |  |  |                 BillNew.omodel.HInnerBillNo = mainList[0].HInnerBillNo; | 
 |  |  |                 BillNew.omodel.HRedBlueFlag = mainList[0].HRedBlueFlag; | 
 |  |  |                 //å表èµå¼ | 
 |  |  |                 ds = oCn.RunProcReturn("exec h_p_Sc_GetMouldStockBill_Temp " + BillNew.omodel.HInterID.ToString() + ",'" + BillNew.omodel.HBillType + "'", "h_p_Sc_GetMouldStockBill_Temp"); | 
 |  |  |                 if (ds == null || ds.Tables[0].Rows.Count == 0) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "æ²¡ææ«ç ä¿¡æ¯ï¼è¯·å
æ«ææ¡ç ï¼ç¡®è®¤æ è¯¯ååæäº¤ï¼"; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     for (int i = 0; i <= ds.Tables[0].Rows.Count - 1; i++) | 
 |  |  |                     { | 
 |  |  |                         Model.ClsSc_MouldStockBillSub oSub = new Model.ClsSc_MouldStockBillSub(); | 
 |  |  |                         //åºå®èµå¼======================================== | 
 |  |  |                         oSub.HEntryID = i + 1; | 
 |  |  |                         oSub.HRemark = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HRemark"]); | 
 |  |  |                         oSub.HSourceInterID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSourceInterID"]); | 
 |  |  |                         oSub.HSourceEntryID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSourceEntryID"]); | 
 |  |  |                         oSub.HSourceBillType = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HSourceBillType"]); | 
 |  |  |                         oSub.HSourceBillNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HSourceBillNo"]); | 
 |  |  |                         oSub.HRelationQty = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HRelationQty"]); | 
 |  |  |                         oSub.HRelationMoney = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HRelationMoney"]); | 
 |  |  |                         //============================= | 
 |  |  |                         oSub.HMaterID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HMaterID"]); | 
 |  |  |                         oSub.HPropertyID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HAuxPropID"]); | 
 |  |  |                         oSub.HSecUnitID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSecUnitID"]); | 
 |  |  |                         oSub.HSecUnitRate = DBUtility.ClsPub.isSingle(ds.Tables[0].Rows[i]["HSecUnitRate"]); | 
 |  |  |                         oSub.HUnitID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HUnitID"]); | 
 |  |  |                         oSub.HBatchNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HBatchNo"]); | 
 |  |  |                         oSub.HQtyMust = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HQtyMust"]); | 
 |  |  |                         oSub.HQtyRel = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HQtyRel"]); | 
 |  |  |                         oSub.HQty = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HQty"]); | 
 |  |  |                         oSub.HPrice = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HPrice"]); | 
 |  |  |                         oSub.HMoney = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HMoney"]); | 
 |  |  |                         oSub.HDesignLife = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HDesignLife"]); | 
 |  |  |                         oSub.HLeaveLife = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HLeaveLife"]); | 
 |  |  |                         oSub.HUseLife = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HUseLife"]); | 
 |  |  |                         oSub.HUseLifeQty = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HUseLifeQty"]); | 
 |  |  |                         oSub.HNewLifeQty = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HNewLifeQty"]); | 
 |  |  |                         oSub.HWHID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HWHID"]); | 
 |  |  |                         oSub.HSCWHID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSCWHID"]); | 
 |  |  |                         oSub.HSPID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSPID"]); | 
 |  |  |                         oSub.HSCSPID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSCSPID"]); | 
 |  |  |                         oSub.HSPGroupID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSPGroupID"]); | 
 |  |  |                         oSub.HBarCode = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HBarCode"]); | 
 |  |  |                         oSub.HCorrespondentTypeID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HCorrespondentTypeID"]); | 
 |  |  |                         oSub.HCorrespondentID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HCorrespondentID"]); | 
 |  |  |                         oSub.HPOOrderInterID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HPOOrderInterID"]); | 
 |  |  |                         oSub.HPOOrderEntryID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HPOOrderEntryID"]); | 
 |  |  |                         oSub.HPOOrderBillNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HPOOrderBillNo"]); | 
 |  |  |                         oSub.HSeOrderInterID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSeOrderInterID"]); | 
 |  |  |                         oSub.HSeOrderEntryID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSeOrderEntryID"]); | 
 |  |  |                         oSub.HSeOrderBillNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HSeOrderBillNo"]); | 
 |  |  |                         oSub.HStockOrgID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HStockOrgID"]); | 
 |  |  |                         oSub.HOWNERID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HOWNERID"]); | 
 |  |  |                         oSub.HOtherOrgID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HOtherOrgID"]); | 
 |  |  |                         oSub.HOWNERTYPEID = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HOWNERTYPEID"]); | 
 |  |  |                         BillNew.DetailColl.Add(oSub); | 
 |  |  |                     } | 
 |  |  |                 } | 
 |  |  |                 //ä¿å | 
 |  |  |                 bool bResult; | 
 |  |  |                 bResult = BillNew.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); | 
 |  |  |  | 
 |  |  |                 if (bResult) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 1; | 
 |  |  |                     objJsonResult.Message = DBUtility.ClsPub.sExeReturnInfo;  //æåï¼ | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "ä¿å失败ï¼" + DBUtility.ClsPub.sExeReturnInfo; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |             catch (Exception e) | 
 |  |  |             { | 
 |  |  |                 objJsonResult.code = "0"; | 
 |  |  |                 objJsonResult.count = 0; | 
 |  |  |                 objJsonResult.Message = "模å
·å
¶ä»å
¥åºåä¸ä¼ å¤±è´¥ï¼" + e.Message; | 
 |  |  |                 objJsonResult.data = null; | 
 |  |  |                 return objJsonResult; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #region æ¨¡å
·å
¶ä»åºåºå     ä¸ä¼ çå | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// æ¨¡å
·å
¶ä»åºåºåæ°å¢ä¸ä¼  | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("MouldController/set_SaveMouldOtherOutBill_Json")] | 
 |  |  |         [HttpPost] | 
 |  |  |         public object set_SaveMouldOtherOutBill_Json([FromBody] JObject oMain) | 
 |  |  |         { | 
 |  |  |             BillStatus = DBUtility.ClsPub.Enum_BillStatus.BillStatus_AddNew; | 
 |  |  |             DAL.ClsSc_MouldOtherOutBill BillNew = new DAL.ClsSc_MouldOtherOutBill(); | 
 |  |  |             var _value = oMain["oMain"].ToString(); | 
 |  |  |             string msg1 = _value.ToString(); | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 string sMainStr = "[" + msg1.ToString() + "]"; | 
 |  |  |                 List<Model.ClsSc_MouldOtherOutBillMain> mainList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSc_MouldOtherOutBillMain>>(sMainStr); | 
 |  |  |  | 
 |  |  |                 //忮巿¯å¦éå¤ | 
 |  |  |                 if (BillNew.IsExistBillNo(ref ClsPub.sExeReturnInfo, mainList[0].HBillNo, BillStatus, mainList[0].HInterID)) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "åæ®å·éå¤ï¼ä¸å
许ä¿åï¼"; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 //夿ä¼è®¡ææ¯å¦åç | 
 |  |  |                 string s = ""; | 
 |  |  |                 int sYear = 0; | 
 |  |  |                 int sPeriod = 0; | 
 |  |  |                 if (DBUtility.Xt_BaseBillFun.Fun_AllowYearPeriod(mainList[0].HDate, ref sYear, ref sPeriod, ref s) == false) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = s; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 //åºå®èµå¼================================= | 
 |  |  |                 BillNew.omodel.HYear = sYear; | 
 |  |  |                 BillNew.omodel.HPeriod = sPeriod; | 
 |  |  |                 BillNew.omodel.HBillType = "3828"; | 
 |  |  |                 BillNew.omodel.HInterID = mainList[0].HInterID; | 
 |  |  |                 BillNew.omodel.HBillNo = mainList[0].HBillNo; | 
 |  |  |                 BillNew.omodel.HDate = mainList[0].HDate; | 
 |  |  |                 BillNew.omodel.HRemark = mainList[0].HRemark; | 
 |  |  |                 BillNew.omodel.HMaker = mainList[0].HMaker; | 
 |  |  |                 BillNew.omodel.HSTOCKORGID = mainList[0].HSTOCKORGID; | 
 |  |  |                 DBUtility.ClsPub.CurUserName = mainList[0].HMaker; | 
 |  |  |                 //==================================================== | 
 |  |  |                 BillNew.omodel.HSupID = mainList[0].HSupID; | 
 |  |  |                 BillNew.omodel.HSupTypeID = 1; //ï¼1 ä¾åºåã2 å®¢æ·ã 3 è½¦é´é¨é¨ï¼ | 
 |  |  |                 BillNew.omodel.HEmpID = mainList[0].HEmpID; | 
 |  |  |                 BillNew.omodel.HManagerID = mainList[0].HManagerID; | 
 |  |  |                 BillNew.omodel.HSecManagerID = mainList[0].HSecManagerID; | 
 |  |  |                 BillNew.omodel.HKeeperID = mainList[0].HKeeperID; | 
 |  |  |                 BillNew.omodel.HDeptID = mainList[0].HDeptID; | 
 |  |  |                 BillNew.omodel.HWHID = mainList[0].HWHID; | 
 |  |  |                 BillNew.omodel.HSCWHID = mainList[0].HSCWHID; | 
 |  |  |                 BillNew.omodel.HExplanation = mainList[0].HExplanation; | 
 |  |  |                 BillNew.omodel.HInnerBillNo = mainList[0].HInnerBillNo; | 
 |  |  |                 BillNew.omodel.HRedBlueFlag = mainList[0].HRedBlueFlag; | 
 |  |  |                 //å表èµå¼ | 
 |  |  |                 ds = oCn.RunProcReturn("exec h_p_Sc_GetMouldStockBill_Temp " + BillNew.omodel.HInterID.ToString() + ",'" + BillNew.omodel.HBillType + "'", "h_p_Sc_GetMouldStockBill_Temp"); | 
 |  |  |                 if (ds == null || ds.Tables[0].Rows.Count == 0) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "æ²¡ææ«ç ä¿¡æ¯ï¼è¯·å
æ«ææ¡ç ï¼ç¡®è®¤æ è¯¯ååæäº¤ï¼"; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     for (int i = 0; i <= ds.Tables[0].Rows.Count - 1; i++) | 
 |  |  |                     { | 
 |  |  |                         Model.ClsSc_MouldStockBillSub oSub = new Model.ClsSc_MouldStockBillSub(); | 
 |  |  |                         //åºå®èµå¼======================================== | 
 |  |  |                         oSub.HEntryID = i + 1; | 
 |  |  |                         oSub.HRemark = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HRemark"]); | 
 |  |  |                         oSub.HSourceInterID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSourceInterID"]); | 
 |  |  |                         oSub.HSourceEntryID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSourceEntryID"]); | 
 |  |  |                         oSub.HSourceBillType = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HSourceBillType"]); | 
 |  |  |                         oSub.HSourceBillNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HSourceBillNo"]); | 
 |  |  |                         oSub.HRelationQty = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HRelationQty"]); | 
 |  |  |                         oSub.HRelationMoney = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HRelationMoney"]); | 
 |  |  |                         //============================= | 
 |  |  |                         oSub.HMaterID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HMaterID"]); | 
 |  |  |                         oSub.HPropertyID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HAuxPropID"]); | 
 |  |  |                         oSub.HSecUnitID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSecUnitID"]); | 
 |  |  |                         oSub.HSecUnitRate = DBUtility.ClsPub.isSingle(ds.Tables[0].Rows[i]["HSecUnitRate"]); | 
 |  |  |                         oSub.HUnitID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HUnitID"]); | 
 |  |  |                         oSub.HBatchNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HBatchNo"]); | 
 |  |  |                         oSub.HQtyMust = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HQtyMust"]); | 
 |  |  |                         oSub.HQtyRel = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HQtyRel"]); | 
 |  |  |                         oSub.HQty = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HQty"]); | 
 |  |  |                         oSub.HPrice = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HPrice"]); | 
 |  |  |                         oSub.HMoney = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HMoney"]); | 
 |  |  |                         oSub.HDesignLife = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HDesignLife"]); | 
 |  |  |                         oSub.HLeaveLife = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HLeaveLife"]); | 
 |  |  |                         oSub.HUseLife = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HUseLife"]); | 
 |  |  |                         oSub.HUseLifeQty = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HUseLifeQty"]); | 
 |  |  |                         oSub.HNewLifeQty = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HNewLifeQty"]); | 
 |  |  |                         oSub.HWHID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HWHID"]); | 
 |  |  |                         oSub.HSCWHID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSCWHID"]); | 
 |  |  |                         oSub.HSPID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSPID"]); | 
 |  |  |                         oSub.HSCSPID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSCSPID"]); | 
 |  |  |                         oSub.HSPGroupID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSPGroupID"]); | 
 |  |  |                         oSub.HBarCode = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HBarCode"]); | 
 |  |  |                         oSub.HCorrespondentTypeID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HCorrespondentTypeID"]); | 
 |  |  |                         oSub.HCorrespondentID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HCorrespondentID"]); | 
 |  |  |                         oSub.HPOOrderInterID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HPOOrderInterID"]); | 
 |  |  |                         oSub.HPOOrderEntryID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HPOOrderEntryID"]); | 
 |  |  |                         oSub.HPOOrderBillNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HPOOrderBillNo"]); | 
 |  |  |                         oSub.HSeOrderInterID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSeOrderInterID"]); | 
 |  |  |                         oSub.HSeOrderEntryID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSeOrderEntryID"]); | 
 |  |  |                         oSub.HSeOrderBillNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HSeOrderBillNo"]); | 
 |  |  |                         oSub.HStockOrgID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HStockOrgID"]); | 
 |  |  |                         oSub.HOWNERID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HOWNERID"]); | 
 |  |  |                         oSub.HOtherOrgID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HOtherOrgID"]); | 
 |  |  |                         oSub.HOWNERTYPEID = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HOWNERTYPEID"]); | 
 |  |  |                         BillNew.DetailColl.Add(oSub); | 
 |  |  |                     } | 
 |  |  |                 } | 
 |  |  |                 //ä¿å | 
 |  |  |                 bool bResult; | 
 |  |  |                 bResult = BillNew.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); | 
 |  |  |  | 
 |  |  |                 if (bResult) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 1; | 
 |  |  |                     objJsonResult.Message = DBUtility.ClsPub.sExeReturnInfo;  //æåï¼ | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "ä¿å失败ï¼" + DBUtility.ClsPub.sExeReturnInfo; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |             catch (Exception e) | 
 |  |  |             { | 
 |  |  |                 objJsonResult.code = "0"; | 
 |  |  |                 objJsonResult.count = 0; | 
 |  |  |                 objJsonResult.Message = "模å
·å
¶ä»åºåºåä¸ä¼ å¤±è´¥ï¼" + e.Message; | 
 |  |  |                 objJsonResult.data = null; | 
 |  |  |                 return objJsonResult; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #region æ¨¡å
·æ¥åºå
¥åºå     ä¸ä¼ çå | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// æ¨¡å
·æ¥åºå
¥åºåæ°å¢ä¸ä¼  | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("MouldController/set_SaveMouldScrapInBill_Json")] | 
 |  |  |         [HttpPost] | 
 |  |  |         public object set_SaveMouldScrapInBill_Json([FromBody] JObject oMain) | 
 |  |  |         { | 
 |  |  |             BillStatus = DBUtility.ClsPub.Enum_BillStatus.BillStatus_AddNew; | 
 |  |  |             DAL.ClsSc_MouldScrapInBill BillNew = new DAL.ClsSc_MouldScrapInBill(); | 
 |  |  |             var _value = oMain["oMain"].ToString(); | 
 |  |  |             string msg1 = _value.ToString(); | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 string sMainStr = "[" + msg1.ToString() + "]"; | 
 |  |  |                 List<Model.ClsSc_MouldScrapInBillMain> mainList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSc_MouldScrapInBillMain>>(sMainStr); | 
 |  |  |  | 
 |  |  |                 //忮巿¯å¦éå¤ | 
 |  |  |                 if (BillNew.IsExistBillNo(ref ClsPub.sExeReturnInfo, mainList[0].HBillNo, BillStatus, mainList[0].HInterID)) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "åæ®å·éå¤ï¼ä¸å
许ä¿åï¼"; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 //夿ä¼è®¡ææ¯å¦åç | 
 |  |  |                 string s = ""; | 
 |  |  |                 int sYear = 0; | 
 |  |  |                 int sPeriod = 0; | 
 |  |  |                 if (DBUtility.Xt_BaseBillFun.Fun_AllowYearPeriod(mainList[0].HDate, ref sYear, ref sPeriod, ref s) == false) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = s; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 //åºå®èµå¼================================= | 
 |  |  |                 BillNew.omodel.HYear = sYear; | 
 |  |  |                 BillNew.omodel.HPeriod = sPeriod; | 
 |  |  |                 BillNew.omodel.HBillType = "3831"; | 
 |  |  |                 BillNew.omodel.HInterID = mainList[0].HInterID; | 
 |  |  |                 BillNew.omodel.HBillNo = mainList[0].HBillNo; | 
 |  |  |                 BillNew.omodel.HDate = mainList[0].HDate; | 
 |  |  |                 BillNew.omodel.HRemark = mainList[0].HRemark; | 
 |  |  |                 BillNew.omodel.HMaker = mainList[0].HMaker; | 
 |  |  |                 BillNew.omodel.HSTOCKORGID = mainList[0].HSTOCKORGID; | 
 |  |  |                 DBUtility.ClsPub.CurUserName = mainList[0].HMaker; | 
 |  |  |                 //==================================================== | 
 |  |  |                 BillNew.omodel.HSupID = mainList[0].HSupID; | 
 |  |  |                 BillNew.omodel.HSupTypeID = 1; //ï¼1 ä¾åºåã2 å®¢æ·ã 3 è½¦é´é¨é¨ï¼ | 
 |  |  |                 BillNew.omodel.HEmpID = mainList[0].HEmpID; | 
 |  |  |                 BillNew.omodel.HManagerID = mainList[0].HManagerID; | 
 |  |  |                 BillNew.omodel.HSecManagerID = mainList[0].HSecManagerID; | 
 |  |  |                 BillNew.omodel.HKeeperID = mainList[0].HKeeperID; | 
 |  |  |                 BillNew.omodel.HDeptID = mainList[0].HDeptID; | 
 |  |  |                 BillNew.omodel.HWHID = mainList[0].HWHID; | 
 |  |  |                 BillNew.omodel.HSCWHID = mainList[0].HSCWHID; | 
 |  |  |                 BillNew.omodel.HExplanation = mainList[0].HExplanation; | 
 |  |  |                 BillNew.omodel.HInnerBillNo = mainList[0].HInnerBillNo; | 
 |  |  |                 BillNew.omodel.HRedBlueFlag = mainList[0].HRedBlueFlag; | 
 |  |  |                 //å表èµå¼ | 
 |  |  |                 ds = oCn.RunProcReturn("exec h_p_Sc_GetMouldStockBill_Temp " + BillNew.omodel.HInterID.ToString() + ",'" + BillNew.omodel.HBillType + "'", "h_p_Sc_GetMouldStockBill_Temp"); | 
 |  |  |                 if (ds == null || ds.Tables[0].Rows.Count == 0) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "æ²¡ææ«ç ä¿¡æ¯ï¼è¯·å
æ«ææ¡ç ï¼ç¡®è®¤æ è¯¯ååæäº¤ï¼"; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     for (int i = 0; i <= ds.Tables[0].Rows.Count - 1; i++) | 
 |  |  |                     { | 
 |  |  |                         Model.ClsSc_MouldStockBillSub oSub = new Model.ClsSc_MouldStockBillSub(); | 
 |  |  |                         //åºå®èµå¼======================================== | 
 |  |  |                         oSub.HEntryID = i + 1; | 
 |  |  |                         oSub.HRemark = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HRemark"]); | 
 |  |  |                         oSub.HSourceInterID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSourceInterID"]); | 
 |  |  |                         oSub.HSourceEntryID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSourceEntryID"]); | 
 |  |  |                         oSub.HSourceBillType = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HSourceBillType"]); | 
 |  |  |                         oSub.HSourceBillNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HSourceBillNo"]); | 
 |  |  |                         oSub.HRelationQty = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HRelationQty"]); | 
 |  |  |                         oSub.HRelationMoney = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HRelationMoney"]); | 
 |  |  |                         //============================= | 
 |  |  |                         oSub.HMaterID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HMaterID"]); | 
 |  |  |                         oSub.HPropertyID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HAuxPropID"]); | 
 |  |  |                         oSub.HSecUnitID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSecUnitID"]); | 
 |  |  |                         oSub.HSecUnitRate = DBUtility.ClsPub.isSingle(ds.Tables[0].Rows[i]["HSecUnitRate"]); | 
 |  |  |                         oSub.HUnitID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HUnitID"]); | 
 |  |  |                         oSub.HBatchNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HBatchNo"]); | 
 |  |  |                         oSub.HQtyMust = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HQtyMust"]); | 
 |  |  |                         oSub.HQtyRel = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HQtyRel"]); | 
 |  |  |                         oSub.HQty = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HQty"]); | 
 |  |  |                         oSub.HPrice = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HPrice"]); | 
 |  |  |                         oSub.HMoney = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HMoney"]); | 
 |  |  |                         oSub.HDesignLife = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HDesignLife"]); | 
 |  |  |                         oSub.HLeaveLife = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HLeaveLife"]); | 
 |  |  |                         oSub.HUseLife = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HUseLife"]); | 
 |  |  |                         oSub.HUseLifeQty = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HUseLifeQty"]); | 
 |  |  |                         oSub.HNewLifeQty = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HNewLifeQty"]); | 
 |  |  |                         oSub.HWHID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HWHID"]); | 
 |  |  |                         oSub.HSCWHID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSCWHID"]); | 
 |  |  |                         oSub.HSPID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSPID"]); | 
 |  |  |                         oSub.HSCSPID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSCSPID"]); | 
 |  |  |                         oSub.HSPGroupID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSPGroupID"]); | 
 |  |  |                         oSub.HBarCode = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HBarCode"]); | 
 |  |  |                         oSub.HCorrespondentTypeID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HCorrespondentTypeID"]); | 
 |  |  |                         oSub.HCorrespondentID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HCorrespondentID"]); | 
 |  |  |                         oSub.HPOOrderInterID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HPOOrderInterID"]); | 
 |  |  |                         oSub.HPOOrderEntryID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HPOOrderEntryID"]); | 
 |  |  |                         oSub.HPOOrderBillNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HPOOrderBillNo"]); | 
 |  |  |                         oSub.HSeOrderInterID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSeOrderInterID"]); | 
 |  |  |                         oSub.HSeOrderEntryID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSeOrderEntryID"]); | 
 |  |  |                         oSub.HSeOrderBillNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HSeOrderBillNo"]); | 
 |  |  |                         oSub.HStockOrgID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HStockOrgID"]); | 
 |  |  |                         oSub.HOWNERID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HOWNERID"]); | 
 |  |  |                         oSub.HOtherOrgID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HOtherOrgID"]); | 
 |  |  |                         oSub.HOWNERTYPEID = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HOWNERTYPEID"]); | 
 |  |  |                         BillNew.DetailColl.Add(oSub); | 
 |  |  |                     } | 
 |  |  |                 } | 
 |  |  |                 //ä¿å | 
 |  |  |                 bool bResult; | 
 |  |  |                 bResult = BillNew.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); | 
 |  |  |  | 
 |  |  |                 if (bResult) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 1; | 
 |  |  |                     objJsonResult.Message = DBUtility.ClsPub.sExeReturnInfo;  //æåï¼ | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "ä¿å失败ï¼" + DBUtility.ClsPub.sExeReturnInfo; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |             catch (Exception e) | 
 |  |  |             { | 
 |  |  |                 objJsonResult.code = "0"; | 
 |  |  |                 objJsonResult.count = 0; | 
 |  |  |                 objJsonResult.Message = "模å
·æ¥åºå
¥åºåä¸ä¼ å¤±è´¥ï¼" + e.Message; | 
 |  |  |                 objJsonResult.data = null; | 
 |  |  |                 return objJsonResult; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #region æ¨¡å
·æ¥åºåºåºå     ä¸ä¼ çå | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// æ¨¡å
·æ¥åºåºåºåæ°å¢ä¸ä¼  | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("MouldController/set_SaveMouldScrapOutBill_Json")] | 
 |  |  |         [HttpPost] | 
 |  |  |         public object set_SaveMouldScrapOutBill_Json([FromBody] JObject oMain) | 
 |  |  |         { | 
 |  |  |             BillStatus = DBUtility.ClsPub.Enum_BillStatus.BillStatus_AddNew; | 
 |  |  |             DAL.ClsSc_MouldScrapOutBill BillNew = new DAL.ClsSc_MouldScrapOutBill(); | 
 |  |  |             var _value = oMain["oMain"].ToString(); | 
 |  |  |             string msg1 = _value.ToString(); | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 string sMainStr = "[" + msg1.ToString() + "]"; | 
 |  |  |                 List<Model.ClsSc_MouldStockBillMain> mainList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSc_MouldStockBillMain>>(sMainStr); | 
 |  |  |  | 
 |  |  |                 //忮巿¯å¦éå¤ | 
 |  |  |                 if (BillNew.IsExistBillNo(ref ClsPub.sExeReturnInfo, mainList[0].HBillNo, BillStatus, mainList[0].HInterID)) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "åæ®å·éå¤ï¼ä¸å
许ä¿åï¼"; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 //夿ä¼è®¡ææ¯å¦åç | 
 |  |  |                 string s = ""; | 
 |  |  |                 int sYear = 0; | 
 |  |  |                 int sPeriod = 0; | 
 |  |  |                 if (DBUtility.Xt_BaseBillFun.Fun_AllowYearPeriod(mainList[0].HDate, ref sYear, ref sPeriod, ref s) == false) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = s; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 //åºå®èµå¼================================= | 
 |  |  |                 BillNew.omodel.HYear = sYear; | 
 |  |  |                 BillNew.omodel.HPeriod = sPeriod; | 
 |  |  |                 BillNew.omodel.HBillType = "3832"; | 
 |  |  |                 BillNew.omodel.HInterID = mainList[0].HInterID; | 
 |  |  |                 BillNew.omodel.HBillNo = mainList[0].HBillNo; | 
 |  |  |                 BillNew.omodel.HDate = mainList[0].HDate; | 
 |  |  |                 BillNew.omodel.HRemark = mainList[0].HRemark; | 
 |  |  |                 BillNew.omodel.HMaker = mainList[0].HMaker; | 
 |  |  |                 BillNew.omodel.HSTOCKORGID = mainList[0].HSTOCKORGID; | 
 |  |  |                 DBUtility.ClsPub.CurUserName = mainList[0].HMaker; | 
 |  |  |                 //==================================================== | 
 |  |  |                 BillNew.omodel.HSupID = mainList[0].HSupID; | 
 |  |  |                 BillNew.omodel.HSupTypeID = 1; //ï¼1 ä¾åºåã2 å®¢æ·ã 3 è½¦é´é¨é¨ï¼ | 
 |  |  |                 BillNew.omodel.HEmpID = mainList[0].HEmpID; | 
 |  |  |                 BillNew.omodel.HManagerID = mainList[0].HManagerID; | 
 |  |  |                 BillNew.omodel.HSecManagerID = mainList[0].HSecManagerID; | 
 |  |  |                 BillNew.omodel.HKeeperID = mainList[0].HKeeperID; | 
 |  |  |                 BillNew.omodel.HDeptID = mainList[0].HDeptID; | 
 |  |  |                 BillNew.omodel.HWHID = mainList[0].HWHID; | 
 |  |  |                 BillNew.omodel.HSCWHID = mainList[0].HSCWHID; | 
 |  |  |                 BillNew.omodel.HExplanation = mainList[0].HExplanation; | 
 |  |  |                 BillNew.omodel.HInnerBillNo = mainList[0].HInnerBillNo; | 
 |  |  |                 BillNew.omodel.HRedBlueFlag = mainList[0].HRedBlueFlag; | 
 |  |  |                 //å表èµå¼ | 
 |  |  |                 ds = oCn.RunProcReturn("exec h_p_Sc_GetMouldStockBill_Temp " + BillNew.omodel.HInterID.ToString() + ",'" + BillNew.omodel.HBillType + "'", "h_p_Sc_GetMouldStockBill_Temp"); | 
 |  |  |                 if (ds == null || ds.Tables[0].Rows.Count == 0) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "æ²¡ææ«ç ä¿¡æ¯ï¼è¯·å
æ«ææ¡ç ï¼ç¡®è®¤æ è¯¯ååæäº¤ï¼"; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     for (int i = 0; i <= ds.Tables[0].Rows.Count - 1; i++) | 
 |  |  |                     { | 
 |  |  |                         Model.ClsSc_MouldStockBillSub oSub = new Model.ClsSc_MouldStockBillSub(); | 
 |  |  |                         //åºå®èµå¼======================================== | 
 |  |  |                         oSub.HEntryID = i + 1; | 
 |  |  |                         oSub.HRemark = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HRemark"]); | 
 |  |  |                         oSub.HSourceInterID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSourceInterID"]); | 
 |  |  |                         oSub.HSourceEntryID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSourceEntryID"]); | 
 |  |  |                         oSub.HSourceBillType = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HSourceBillType"]); | 
 |  |  |                         oSub.HSourceBillNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HSourceBillNo"]); | 
 |  |  |                         oSub.HRelationQty = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HRelationQty"]); | 
 |  |  |                         oSub.HRelationMoney = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HRelationMoney"]); | 
 |  |  |                         //============================= | 
 |  |  |                         oSub.HMaterID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HMaterID"]); | 
 |  |  |                         oSub.HPropertyID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HAuxPropID"]); | 
 |  |  |                         oSub.HSecUnitID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSecUnitID"]); | 
 |  |  |                         oSub.HSecUnitRate = DBUtility.ClsPub.isSingle(ds.Tables[0].Rows[i]["HSecUnitRate"]); | 
 |  |  |                         oSub.HUnitID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HUnitID"]); | 
 |  |  |                         oSub.HBatchNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HBatchNo"]); | 
 |  |  |                         oSub.HQtyMust = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HQtyMust"]); | 
 |  |  |                         oSub.HQtyRel = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HQtyRel"]); | 
 |  |  |                         oSub.HQty = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HQty"]); | 
 |  |  |                         oSub.HPrice = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HPrice"]); | 
 |  |  |                         oSub.HMoney = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HMoney"]); | 
 |  |  |                         oSub.HDesignLife = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HDesignLife"]); | 
 |  |  |                         oSub.HLeaveLife = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HLeaveLife"]); | 
 |  |  |                         oSub.HUseLife = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HUseLife"]); | 
 |  |  |                         oSub.HUseLifeQty = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HUseLifeQty"]); | 
 |  |  |                         oSub.HNewLifeQty = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HNewLifeQty"]); | 
 |  |  |                         oSub.HWHID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HWHID"]); | 
 |  |  |                         oSub.HSCWHID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSCWHID"]); | 
 |  |  |                         oSub.HSPID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSPID"]); | 
 |  |  |                         oSub.HSCSPID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSCSPID"]); | 
 |  |  |                         oSub.HSPGroupID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSPGroupID"]); | 
 |  |  |                         oSub.HBarCode = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HBarCode"]); | 
 |  |  |                         oSub.HCorrespondentTypeID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HCorrespondentTypeID"]); | 
 |  |  |                         oSub.HCorrespondentID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HCorrespondentID"]); | 
 |  |  |                         oSub.HPOOrderInterID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HPOOrderInterID"]); | 
 |  |  |                         oSub.HPOOrderEntryID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HPOOrderEntryID"]); | 
 |  |  |                         oSub.HPOOrderBillNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HPOOrderBillNo"]); | 
 |  |  |                         oSub.HSeOrderInterID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSeOrderInterID"]); | 
 |  |  |                         oSub.HSeOrderEntryID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSeOrderEntryID"]); | 
 |  |  |                         oSub.HSeOrderBillNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HSeOrderBillNo"]); | 
 |  |  |                         oSub.HStockOrgID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HStockOrgID"]); | 
 |  |  |                         oSub.HOWNERID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HOWNERID"]); | 
 |  |  |                         oSub.HOtherOrgID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HOtherOrgID"]); | 
 |  |  |                         oSub.HOWNERTYPEID = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HOWNERTYPEID"]); | 
 |  |  |                         BillNew.DetailColl.Add(oSub); | 
 |  |  |                     } | 
 |  |  |                 } | 
 |  |  |                 //ä¿å | 
 |  |  |                 bool bResult; | 
 |  |  |                 bResult = BillNew.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); | 
 |  |  |  | 
 |  |  |                 if (bResult) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 1; | 
 |  |  |                     objJsonResult.Message = DBUtility.ClsPub.sExeReturnInfo;  //æåï¼ | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "ä¿å失败ï¼" + DBUtility.ClsPub.sExeReturnInfo; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |             catch (Exception e) | 
 |  |  |             { | 
 |  |  |                 objJsonResult.code = "0"; | 
 |  |  |                 objJsonResult.count = 0; | 
 |  |  |                 objJsonResult.Message = "模å
·æ¥åºåºåºåä¸ä¼ å¤±è´¥ï¼" + e.Message; | 
 |  |  |                 objJsonResult.data = null; | 
 |  |  |                 return objJsonResult; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #region æ¨¡å
·è°æ¨å     ä¸ä¼ çå | 
 |  |  |  | 
 |  |  |         /// <summary> |