| | |
| | | public string HInnerBillNo;// varchar(50) --å
é¨åæ®å· |
| | | public string HRemark; //å å·¥è¦æ± |
| | | public bool HRedBlueFlag;// bit --红èå |
| | | public string HStockStyle;// |
| | | } |
| | | } |
| | |
| | | |
| | | public static DataSet Sc_GetMouldProdMoveBill(string sWhere, string Organization) |
| | | { |
| | | string sql1 = string.Format(@"select * from h_v_Sc_MouldProdMoveBillList where åºåç»ç»='" + Organization + "'"); |
| | | string sql1 = string.Format(@"select * from h_v_Sc_MouldProdMoveBillList where (è°å
¥ç»ç»='" + Organization + "' or è°åºç»ç»='" + Organization + "')"); |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | return new SQLHelper.ClsCN().RunProcReturn(sql1+ "order by æ¥æ desc", "h_v_Sc_MouldProdMoveBillList"); |
| | |
| | | { |
| | | ds = oCN.RunProcReturn(string.Format(@"SELECT HMaterID,模å
·ä»£ç HMaterCode,模å
·åç§° HMaterName,è§æ ¼åå· HMaterSpec,æ¹æ¬¡ HBatchNo, |
| | | è®¾è®¡å¯¿å½ HDesignLife, å©ä½å¯¿å½ HLeaveLife, 累积使ç¨å¯¿å½ HUseLife, åºåæ°é HQtyMust, å®åæ°é HQty, |
| | | åä»· HPrice, éé¢ HMoney,HWHSonID HWHID, åæä»åºä»£ç HWHCode, åæä»åº HWHName,HSPID, |
| | | ä»ä½ä»£ç HSPCode, ä»ä½ HSPName,表ä½å¤æ³¨ HRemark FROM h_v_Sc_MouldProdMoveBillList"), "h_v_Sc_MouldProdMoveBillList"); |
| | | åä»· HPrice, éé¢ HMoney,HStockOrgID,è°å
¥ç»ç»ä»£ç HStockOrgCode,è°å
¥ç»ç» HStockOrgName, HOtherOrgID ,è°åºç»ç»ä»£ç HOtherOrgCode,è°åºç»ç» HOtherOrgName, HWHID, è°å
¥ä»åºä»£ç HWHCode, è°å
¥ä»åº HWHName,HSPID, |
| | | è°å
¥ä»ä½ä»£ç HSPCode, è°å
¥ä»ä½ HSPName,HSCWHID, è°åºä»åºä»£ç HSCWHCode, è°åºä»åº HSCWHName,HSCSPID, |
| | | è°åºä»ä½ä»£ç HSCSPCode, è°åºä»ä½ HSCSPName,表ä½å¤æ³¨ HRemark FROM h_v_Sc_MouldProdMoveBillList"), "h_v_Sc_MouldProdMoveBillList"); |
| | | |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | |
| | | //string sql1 = "select HRepairCheckID,HRepairCheckContent,HManagerID,HRemark from Sc_MouldRepairCheckBillSub where 1 = 1 "; |
| | | string sql1 = string.Format(@"SELECT HMaterID,模å
·ä»£ç HMaterCode,模å
·åç§° HMaterName,è§æ ¼åå· HMaterSpec,æ¹æ¬¡ HBatchNo, |
| | | è®¾è®¡å¯¿å½ HDesignLife, å©ä½å¯¿å½ HLeaveLife, 累积使ç¨å¯¿å½ HUseLife, åºåæ°é HQtyMust, å®åæ°é HQty, |
| | | åä»· HPrice, éé¢ HMoney,HWHSonID HWHID, åæä»åºä»£ç HWHCode, åæä»åº HWHName,HSPID, |
| | | ä»ä½ä»£ç HSPCode, ä»ä½ HSPName,表ä½å¤æ³¨ HRemark FROM h_v_Sc_MouldProdMoveBillList where 1 = 1 "); |
| | | åä»· HPrice, éé¢ HMoney,HStockOrgID,è°å
¥ç»ç»ä»£ç HStockOrgCode,è°å
¥ç»ç» HStockOrgName, HOtherOrgID ,è°åºç»ç»ä»£ç HOtherOrgCode,è°åºç»ç» HOtherOrgName, HWHID, è°å
¥ä»åºä»£ç HWHCode, è°å
¥ä»åº HWHName,HSPID, |
| | | è°å
¥ä»ä½ä»£ç HSPCode, è°å
¥ä»ä½ HSPName,HSCWHID, è°åºä»åºä»£ç HSCWHCode, è°åºä»åº HSCWHName,HSCSPID, |
| | | è°åºä»ä½ä»£ç HSCSPCode, è°åºä»ä½ HSCSPName,表ä½å¤æ³¨ HRemark FROM h_v_Sc_MouldProdMoveBillList where 1 = 1 "); |
| | | string sql = sql1 + sqlWhere; |
| | | ds = oCN.RunProcReturn(sql, "h_v_Sc_MouldProdMoveBillList"); |
| | | |
| | |
| | | ",HYear='" + omodel.HYear.ToString() + "'" + |
| | | ",HPeriod='" + omodel.HPeriod.ToString() + "'" + |
| | | ",HRemark='" + omodel.HRemark + "'" + |
| | | ",HStockStyle='" + omodel.HStockStyle + "'" + |
| | | ",HUpDater='" + omodel.HMaker+ "'" + |
| | | ",HUpDateDate=getdate()" + |
| | | //======================================== |
| | |
| | | " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ",HMaterID,HPropertyID,HSecUnitID,HSecUnitRate,HUnitID,HQtyMust" + |
| | | ",HQty,HPrice,HMoney,HWHID,HSCWHID,HSPID" + |
| | | ",HQty,HPrice,HMoney,HStockOrgID,HOtherOrgID,HWHID,HSCWHID,HSPID" + |
| | | ",HDesignLife,HLeaveLife,HUseLife" + |
| | | ",HSCSPID,HSPGroupID,HBatchNo,HPOOrderInterID,HPOOrderEntryID,HPOOrderBillNo" + |
| | | ",HSeOrderInterID,HSeOrderEntryID,HSeOrderBillNo" + |
| | |
| | | + 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.HPropertyID.ToString() + "," + oSub.HSecUnitID.ToString() + "," + oSub.HSecUnitRate.ToString() + "," + oSub.HUnitID.ToString() + "," + oSub.HQtyMust.ToString() + |
| | | "," + oSub.HQty.ToString() + "," + oSub.HPrice.ToString() + "," + oSub.HMoney.ToString() + "," + oSub.HWHID.ToString() + "," + oSub.HSCWHID.ToString() + "," + oSub.HSPID.ToString() + |
| | | "," + oSub.HQty.ToString() + "," + oSub.HPrice.ToString() + "," + oSub.HMoney.ToString() + "," + oSub.HStockOrgID.ToString() + "," + oSub.HOtherOrgID.ToString() + "," + oSub.HWHID.ToString() + "," + oSub.HSCWHID.ToString() + "," + oSub.HSPID.ToString() + |
| | | "," + oSub.HDesignLife.ToString() + "," + oSub.HLeaveLife.ToString() + "," + oSub.HUseLife.ToString() + |
| | | "," + oSub.HSCSPID.ToString() + "," + oSub.HSPGroupID.ToString() + ",'" + oSub.HBatchNo + "'," + oSub.HPOOrderInterID.ToString() + "," + oSub.HPOOrderEntryID.ToString() + ",'" + oSub.HPOOrderBillNo + "'" + |
| | | "," + oSub.HSeOrderInterID.ToString() + "," + oSub.HSeOrderEntryID.ToString() + ",'" + oSub.HSeOrderBillNo + "'" + |
| | |
| | | //主表 |
| | | oCn.RunProc("Insert Into Sc_MouldStockBillMain " + |
| | | "(HBillType,HBillSubType,HInterID,HBillNo,HDate" + |
| | | ",HYear,HPeriod,HRemark,HMaker,HMakeDate" + |
| | | ",HYear,HPeriod,HRemark,HStockStyle,HMaker,HMakeDate" + |
| | | ",HSupID,HWHID,HSCWHID,HEmpID,HManagerID,HSecManagerID" + |
| | | ",HKeeperID,HDeptID,HExplanation,HInnerBillNo,HRedBlueFlag" + |
| | | ",HProcID"+ |
| | | ") " + |
| | | " values('" + this.BillType + "','" + this.HBillSubType + "'," +omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + |
| | | ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + omodel.HMaker + "',getdate()" + |
| | | ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + omodel.HStockStyle + "','" + omodel.HMaker + "',getdate()" + |
| | | ", " + omodel.HSupID.ToString() + "," + omodel.HWHID.ToString() + "," + omodel.HSCWHID.ToString() + "," + omodel.HEmpID.ToString() + "," + omodel.HManagerID.ToString() + "," + omodel.HSecManagerID.ToString() + |
| | | ", " + omodel.HKeeperID.ToString() + "," + omodel.HDeptID.ToString() + ",'" + omodel.HExplanation + "','" + omodel.HInnerBillNo + "'," + DBUtility.ClsPub.BoolToString(omodel.HRedBlueFlag) + |
| | | "," + '0' + |
| | |
| | | " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ",HMaterID,HPropertyID,HSecUnitID,HSecUnitRate,HUnitID,HQtyMust" + |
| | | ",HQty,HPrice,HMoney,HWHID,HSCWHID,HSPID" + |
| | | ",HQty,HPrice,HMoney,HStockOrgID,HOtherOrgID,HWHID,HSCWHID,HSPID" + |
| | | ",HDesignLife,HLeaveLife,HUseLife" + |
| | | ",HSCSPID,HSPGroupID,HBatchNo,HPOOrderInterID,HPOOrderEntryID,HPOOrderBillNo" + |
| | | ",HSeOrderInterID,HSeOrderEntryID,HSeOrderBillNo" + |
| | |
| | | + 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.HPropertyID.ToString() + "," + oSub.HSecUnitID.ToString() + "," + oSub.HSecUnitRate.ToString() + "," + oSub.HUnitID.ToString() + "," + oSub.HQtyMust.ToString() + |
| | | "," + oSub.HQty.ToString() + "," + oSub.HPrice.ToString() + "," + oSub.HMoney.ToString() + "," + oSub.HWHID.ToString() + "," + oSub.HSCWHID.ToString() + "," + oSub.HSPID.ToString() + |
| | | "," + oSub.HQty.ToString() + "," + oSub.HPrice.ToString() + "," + oSub.HMoney.ToString() + "," + oSub.HStockOrgID.ToString() + "," + oSub.HOtherOrgID.ToString() + "," + oSub.HWHID.ToString() + "," + oSub.HSCWHID.ToString() + "," + oSub.HSPID.ToString() + |
| | | "," + oSub.HDesignLife.ToString() + "," + oSub.HLeaveLife.ToString() + "," + oSub.HUseLife.ToString() + |
| | | "," + oSub.HSCSPID.ToString() + "," + oSub.HSPGroupID.ToString() + ",'" + oSub.HBatchNo + "'," + oSub.HPOOrderInterID.ToString() + "," + oSub.HPOOrderEntryID.ToString() + ",'" + oSub.HPOOrderBillNo + "'" + |
| | | "," + oSub.HSeOrderInterID.ToString() + "," + oSub.HSeOrderEntryID.ToString() + ",'" + oSub.HSeOrderBillNo + "'" + |