| | |
| | | DeleteRelation(ref sReturn, lngBillKey); |
| | | //å é¤å表 |
| | | DeleteBillSub(lngBillKey); |
| | | DeleteBillSub2(lngBillKey); |
| | | //DeleteBillSub2(lngBillKey); |
| | | //æå
¥å表 |
| | | omodel.HInterID = lngBillKey; |
| | | //æå
¥å表 |
| | |
| | | ") "); |
| | | } |
| | | |
| | | //é
ä»¶é¡¹ç® |
| | | foreach (Model.ClsSc_MouldDotCheckBillSub_Item oSub in DetailCol) |
| | | { |
| | | oCn.RunProc("Insert into Sc_MouldDotCheckBillSub_Item " + |
| | | " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ",HMaterID,HUnitID" + |
| | | ",HQty,HQtyMust" + |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + |
| | | "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | "," + oSub.HMaterID.ToString() + "," + oSub.HUnitID.ToString() + |
| | | "," + oSub.HQty.ToString() + "," + oSub.HQtyMust.ToString() + |
| | | ") "); |
| | | } |
| | | ////é
ä»¶é¡¹ç® |
| | | //foreach (Model.ClsSc_MouldDotCheckBillSub_Item oSub in DetailCol) |
| | | //{ |
| | | // oCn.RunProc("Insert into Sc_MouldDotCheckBillSub_Item " + |
| | | // " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | | // ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | // ",HMaterID,HUnitID" + |
| | | // ",HQty,HQtyMust" + |
| | | // ") values(" |
| | | // + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + |
| | | // "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | // "," + oSub.HMaterID.ToString() + "," + oSub.HUnitID.ToString() + |
| | | // "," + oSub.HQty.ToString() + "," + oSub.HQtyMust.ToString() + |
| | | // ") "); |
| | | //} |
| | | // |
| | | //foreach (Model.ClsSc_MouldDotCheckBillSub oSub in DetailColl) |
| | | //{ |
| | |
| | | ") "); |
| | | } |
| | | |
| | | //é
ä»¶é¡¹ç® |
| | | foreach (Model.ClsSc_MouldDotCheckBillSub_Item oSub in DetailCol) |
| | | { |
| | | oCn.RunProc("Insert into Sc_MouldDotCheckBillSub_Item " + |
| | | " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ",HMaterID,HUnitID" + |
| | | ",HQty,HQtyMust" + |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + |
| | | "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | "," + oSub.HMaterID.ToString() + "," + oSub.HUnitID.ToString() + |
| | | "," + oSub.HQty.ToString() + "," + oSub.HQtyMust.ToString() + |
| | | ") "); |
| | | } |
| | | ////é
ä»¶é¡¹ç® |
| | | //foreach (Model.ClsSc_MouldDotCheckBillSub_Item oSub in DetailCol) |
| | | //{ |
| | | // oCn.RunProc("Insert into Sc_MouldDotCheckBillSub_Item " + |
| | | // " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | | // ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | // ",HMaterID,HUnitID" + |
| | | // ",HQty,HQtyMust" + |
| | | // ") values(" |
| | | // + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + |
| | | // "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | // "," + oSub.HMaterID.ToString() + "," + oSub.HUnitID.ToString() + |
| | | // "," + oSub.HQty.ToString() + "," + oSub.HQtyMust.ToString() + |
| | | // ") "); |
| | | //} |
| | | // |
| | | //foreach (Model.ClsSc_MouldDotCheckBillSub oSub in DetailColl) |
| | | //{ |
| | |
| | | { |
| | | public Model.ClsSc_MouldDotCheckPlanBillMain omodel = new Model.ClsSc_MouldDotCheckPlanBillMain(); |
| | | public List<Model.ClsSc_MouldDotCheckPlanBillSub> DetailColl = new List<Model.ClsSc_MouldDotCheckPlanBillSub>(); |
| | | public List<Model.ClsSc_MouldDotCheckPlanBillSub_Item> DetailCol = new List<Model.ClsSc_MouldDotCheckPlanBillSub_Item>(); |
| | | //public List<Model.ClsSc_MouldDotCheckPlanBillSub_Item> DetailCol = new List<Model.ClsSc_MouldDotCheckPlanBillSub_Item>(); |
| | | |
| | | public ClsSc_MouldDotCheckPlanBill() |
| | | { |
| | |
| | | DeleteRelation(ref sReturn, lngBillKey); |
| | | //å é¤å表 |
| | | DeleteBillSub(lngBillKey); |
| | | oCn.RunProc("delete from Sc_MouldDotCheckPlanBillSub_Item where HInterID=" + lngBillKey); |
| | | //oCn.RunProc("delete from Sc_MouldDotCheckPlanBillSub_Item where HInterID=" + lngBillKey); |
| | | //æå
¥å表 |
| | | omodel.HInterID = lngBillKey; |
| | | foreach (Model.ClsSc_MouldDotCheckPlanBillSub oSub in DetailColl) |
| | |
| | | oCn.RunProc("Insert into Sc_MouldDotCheckPlanBillSub " + |
| | | " (HInterID,HEntryID" + |
| | | ",HManagerID"+ |
| | | ",HDotCheckItem,HDotCheckPart,HClaim"+ |
| | | ",HDotCheckItem,HDotCheckItemID,HDotCheckPart,HClaim" + |
| | | ",HCloseMan,HCloseType,HRemark" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + |
| | | "," + oSub.HManagerID.ToString() + |
| | | ",'" + oSub.HDotCheckItem + "','" + oSub.HDotCheckPart + "','" + oSub.HClaim + "'" + |
| | | ",'" + oSub.HDotCheckItem +"'," + oSub.HDotCheckItemID + ",'" + oSub.HDotCheckPart + "','" + oSub.HClaim + "'" + |
| | | ",'" + oSub.HCloseMan + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'"+ |
| | | "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | ") "); |
| | | } |
| | | |
| | | //é
ä»¶é¡¹ç® |
| | | foreach (Model.ClsSc_MouldDotCheckPlanBillSub_Item oSub in DetailCol) |
| | | { |
| | | oCn.RunProc("Insert into Sc_MouldDotCheckPlanBillSub_Item " + |
| | | " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ",HMaterID,HUnitID" + |
| | | ",HQty,HQtyMust" + |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + |
| | | "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | "," + oSub.HMaterID.ToString() + "," + oSub.HUnitID.ToString() + |
| | | "," + oSub.HQty.ToString() + "," + oSub.HQtyMust.ToString() + |
| | | ") "); |
| | | } |
| | | ////é
ä»¶é¡¹ç® |
| | | //foreach (Model.ClsSc_MouldDotCheckPlanBillSub_Item oSub in DetailCol) |
| | | //{ |
| | | // oCn.RunProc("Insert into Sc_MouldDotCheckPlanBillSub_Item " + |
| | | // " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | | // ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | // ",HMaterID,HUnitID" + |
| | | // ",HQty,HQtyMust" + |
| | | // ") values(" |
| | | // + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + |
| | | // "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | // "," + oSub.HMaterID.ToString() + "," + oSub.HUnitID.ToString() + |
| | | // "," + oSub.HQty.ToString() + "," + oSub.HQtyMust.ToString() + |
| | | // ") "); |
| | | //} |
| | | // |
| | | //foreach (Model.ClsSc_MouldDotCheckPlanBillSub oSub in DetailColl) |
| | | //{ |
| | |
| | | ") "); |
| | | } |
| | | |
| | | //é
ä»¶é¡¹ç® |
| | | foreach (Model.ClsSc_MouldDotCheckPlanBillSub_Item oSub in DetailCol) |
| | | { |
| | | oCn.RunProc("Insert into Sc_MouldDotCheckPlanBillSub_Item " + |
| | | " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ",HMaterID,HUnitID" + |
| | | ",HQty,HQtyMust" + |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + |
| | | "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | "," + oSub.HMaterID.ToString() + "," + oSub.HUnitID.ToString() + |
| | | "," + oSub.HQty.ToString() + "," + oSub.HQtyMust.ToString() + |
| | | ") "); |
| | | } |
| | | ////é
ä»¶é¡¹ç® |
| | | //foreach (Model.ClsSc_MouldDotCheckPlanBillSub_Item oSub in DetailCol) |
| | | //{ |
| | | // oCn.RunProc("Insert into Sc_MouldDotCheckPlanBillSub_Item " + |
| | | // " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | | // ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | // ",HMaterID,HUnitID" + |
| | | // ",HQty,HQtyMust" + |
| | | // ") values(" |
| | | // + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + |
| | | // "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | // "," + oSub.HMaterID.ToString() + "," + oSub.HUnitID.ToString() + |
| | | // "," + oSub.HQty.ToString() + "," + oSub.HQtyMust.ToString() + |
| | | // ") "); |
| | | //} |
| | | |
| | | // |
| | | //foreach (Model.ClsSc_MouldDotCheckPlanBillSub oSub in DetailColl) |
| | |
| | | //DeleteRelation(ref sReturn, lngBillKey); |
| | | ////å é¤å表 |
| | | DeleteBillSub(lngBillKey); |
| | | oCn.RunProc("delete from Sc_MouldDotCheckRuleBillSub_Item where HInterID=" + lngBillKey); |
| | | //oCn.RunProc("delete from Sc_MouldDotCheckRuleBillSub_Item where HInterID=" + lngBillKey); |
| | | ////æå
¥å表 |
| | | omodel.HInterID = lngBillKey; |
| | | foreach (Model.ClsSc_MouldDotCheckRuleBillSub oSub in DetailCol) |
| | |
| | | "," + oSub.HDotCheckItemID.ToString() + ",'" + oSub.HDotCheckItem + "','" + oSub.HDotCheckPart + "','" + oSub.HClaim + "'," + oSub.HManagerID.ToString() + |
| | | ") "); |
| | | } |
| | | foreach (Model.ClsSc_MouldDotCheckRuleBillSub_Item oSub in DetailColl) |
| | | { |
| | | oCn.RunProc("Insert into Sc_MouldDotCheckRuleBillSub_Item " + |
| | | " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ",HMaterID,HUnitID" + |
| | | ",HQty,HQtyMust" + |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + |
| | | "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | "," + oSub.HMaterID.ToString() + "," + oSub.HUnitID.ToString() + |
| | | "," + oSub.HQty.ToString() + "," + oSub.HQtyMust.ToString() + |
| | | ") "); |
| | | } |
| | | //foreach (Model.ClsSc_MouldDotCheckRuleBillSub_Item oSub in DetailColl) |
| | | //{ |
| | | // oCn.RunProc("Insert into Sc_MouldDotCheckRuleBillSub_Item " + |
| | | // " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | | // ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | // ",HMaterID,HUnitID" + |
| | | // ",HQty,HQtyMust" + |
| | | // ") values(" |
| | | // + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + |
| | | // "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | // "," + oSub.HMaterID.ToString() + "," + oSub.HUnitID.ToString() + |
| | | // "," + oSub.HQty.ToString() + "," + oSub.HQtyMust.ToString() + |
| | | // ") "); |
| | | //} |
| | | |
| | | sReturn = "ä¿®æ¹åæ®æåï¼"; |
| | | oCn.Commit(); |
| | |
| | | "," + oSub.HDotCheckItemID.ToString() + ",'" + oSub.HDotCheckItem + "','" + oSub.HDotCheckPart + "','" + oSub.HClaim + "'," + oSub.HManagerID.ToString() + |
| | | ") "); |
| | | } |
| | | foreach (Model.ClsSc_MouldDotCheckRuleBillSub_Item oSub in DetailColl) |
| | | { |
| | | oCn.RunProc("Insert into Sc_MouldDotCheckRuleBillSub_Item " + |
| | | " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ",HMaterID,HUnitID" + |
| | | ",HQty,HQtyMust" + |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + |
| | | "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | "," + oSub.HMaterID.ToString() + "," + oSub.HUnitID.ToString() + |
| | | "," + oSub.HQty.ToString() + "," + oSub.HQtyMust.ToString() + |
| | | ") "); |
| | | } |
| | | //foreach (Model.ClsSc_MouldDotCheckRuleBillSub_Item oSub in DetailColl) |
| | | //{ |
| | | // oCn.RunProc("Insert into Sc_MouldDotCheckRuleBillSub_Item " + |
| | | // " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | | // ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | // ",HMaterID,HUnitID" + |
| | | // ",HQty,HQtyMust" + |
| | | // ") values(" |
| | | // + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + |
| | | // "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | // "," + oSub.HMaterID.ToString() + "," + oSub.HUnitID.ToString() + |
| | | // "," + oSub.HQty.ToString() + "," + oSub.HQtyMust.ToString() + |
| | | // ") "); |
| | | //} |
| | | sReturn = "æ°å¢åæ®æåï¼"; |
| | | oCn.Commit(); |
| | | return true; |
| | |
| | | |
| | | |
| | | public string HDotCheckItem;// varchar(100) --ç¹æ£é¡¹ç® |
| | | public int HDotCheckItemID;// varchar(100) --ç¹æ£é¡¹ç®id |
| | | public string HDotCheckPart;// varchar(100) --ç¹æ£é¨ä½ |
| | | public string HClaim;// varchar(100) --å
·ä½è¦æ± |
| | | public long HManagerID;// int --è´è´£äººid(èå表) |
| | |
| | | string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); |
| | | string msg2 = sArray[0].ToString(); |
| | | string msg3 = sArray[1].ToString(); |
| | | string msg4 = sArray[2].ToString(); |
| | | string msg5 = sArray[3].ToString(); |
| | | string msg5 = sArray[2].ToString(); |
| | | |
| | | string UserName = ""; |
| | | ListModels oListModels = new ListModels(); |
| | |
| | | } |
| | | |
| | | |
| | | //é
ä»¶é¡¹è¡¨ä½æ°æ® |
| | | //æ },{æ¥æåæ°ç» //廿ãåã |
| | | msg4 = msg4.Substring(1, msg4.Length - 2); |
| | | msg4 = msg4.Replace("\\", ""); |
| | | msg4 = msg4.Replace("\n", ""); //\n |
| | | //msg2 = msg2.Replace("'", "â"); |
| | | List<Model.ClsSc_MouldDotCheckRuleBillSub_Item> ls1 = new List<Model.ClsSc_MouldDotCheckRuleBillSub_Item>(); |
| | | ls1 = oListModels.getObjectByJson_Sc_MouldDotCheckRuleBillSub_Item(msg4); |
| | | int j = 0; |
| | | foreach (Model.ClsSc_MouldDotCheckRuleBillSub_Item oItemSub in ls1) |
| | | { |
| | | ////é
ä»¶é¡¹è¡¨ä½æ°æ® |
| | | ////æ },{æ¥æåæ°ç» //廿ãåã |
| | | //msg4 = msg4.Substring(1, msg4.Length - 2); |
| | | //msg4 = msg4.Replace("\\", ""); |
| | | //msg4 = msg4.Replace("\n", ""); //\n |
| | | // //msg2 = msg2.Replace("'", "â"); |
| | | //List<Model.ClsSc_MouldDotCheckRuleBillSub_Item> ls1 = new List<Model.ClsSc_MouldDotCheckRuleBillSub_Item>(); |
| | | //ls1 = oListModels.getObjectByJson_Sc_MouldDotCheckRuleBillSub_Item(msg4); |
| | | //int j = 0; |
| | | //foreach (Model.ClsSc_MouldDotCheckRuleBillSub_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.DetailColl.Add(oItemSub); |
| | | } |
| | | // oItemSub.HRelationQty = 0; //å
³èæ°é |
| | | // oBill.DetailColl.Add(oItemSub); |
| | | //} |
| | | |
| | | |
| | | //ä¿å |
| | |
| | | //è·åç¹æ£é¡¹ç®ç¼è¾æ°æ® |
| | | string sql = "select ç¹æ£é¡¹ç®ID HDotCheckItemID,ç¹æ£é¡¹ç®ä»£ç HDotCheckItemNumber,ç¹æ£é¡¹ç® HDotCheckItem,ç¹æ£é¨ä½ HDotCheckPart,å
·ä½è¦æ± HClaim,è´è´£äººID HManagerID,è´è´£äººä»£ç HManagerNumber,è´è´£äººåç§° HManagerName,å夿³¨2 HRemark from h_v_Sc_MouldDotCheckRuleBillSub where 1 = 1 " + Swhere + ""; |
| | | ds = oCN.RunProcReturn(sql, "h_v_Sc_MouldDotCheckRuleBillSub"); |
| | | //è·åé
件项ç®ç¼è¾æ°æ® |
| | | string sql1 = "select é
ä»¶ID HMaterID,é
件代ç HMaterNumber,é
ä»¶åç§° HMaterName,åä½ID HUnitID,计éåä½ä»£ç HUnitNumber,计éåä½åç§° HUnitName,ç¨é HQty,å夿³¨1 HRemark,æ åç¨é HQtyMust from h_v_Sc_MouldDotCheckRuleBillSub_Item where 1 = 1 " + Swhere + ""; |
| | | ds1 = oCN.RunProcReturn(sql1, "h_v_Sc_MouldDotCheckRuleBillSub_Item"); |
| | | ////è·åé
件项ç®ç¼è¾æ°æ® |
| | | //string sql1 = "select é
ä»¶ID HMaterID,é
件代ç HMaterNumber,é
ä»¶åç§° HMaterName,åä½ID HUnitID,计éåä½ä»£ç HUnitNumber,计éåä½åç§° HUnitName,ç¨é HQty,å夿³¨1 HRemark,æ åç¨é HQtyMust from h_v_Sc_MouldDotCheckRuleBillSub_Item where 1 = 1 " + Swhere + ""; |
| | | //ds1 = oCN.RunProcReturn(sql1, "h_v_Sc_MouldDotCheckRuleBillSub_Item"); |
| | | |
| | | list.Add(ds.Tables[0]); |
| | | list.Add(ds1.Tables[0]); |
| | | //list.Add(ds1.Tables[0]); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "è·åä¿¡æ¯æåï¼"; |
| | |
| | | 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 = "è·åä¿¡æ¯æåï¼"; |