| | |
| | | string subSql = "Insert into Xs_SeOrderBillSub" + |
| | | "(HInterID,HEntryID,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney,HMaterID,HUnitID,HQty,HPrice,HTaxPrice,HMoney" + |
| | | ",HDiscountRate,HRelTaxPrice,HTaxRate,HTaxMoney,HlineTotal,HlineTotalBB,HDate,HOutStockQty,HInvoiceQty,HRemark,HOrderLevID" + |
| | | ",HCusMaterNumber,HCusModel,HCusMaterName ) " + |
| | | ",HCusMaterNumber,HCusModel,HCusMaterName,HisStockGoods) " + |
| | | "values(" + |
| | | "" + omodel.HInterID + |
| | | "," + oSub.HEntryID + |
| | |
| | | "','" + oSub.HCusMaterNumber + |
| | | "','" + oSub.HCusModel + |
| | | "','" + oSub.HCusMaterName + |
| | | "')"; |
| | | "'," + (oSub.HisStockGoods?1:0) + |
| | | ")"; |
| | | oCn.RunProc(subSql); |
| | | } |
| | | // |
| | |
| | | string subSql = "Insert into Xs_SeOrderBillSub" + |
| | | "(HInterID,HEntryID,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney,HMaterID,HUnitID,HQty,HPrice,HTaxPrice,HMoney" + |
| | | ",HDiscountRate,HRelTaxPrice,HTaxRate,HTaxMoney,HlineTotal,HlineTotalBB,HDate,HOutStockQty,HInvoiceQty,HRemark,HOrderLevID" + |
| | | ",HCusMaterNumber,HCusModel,HCusMaterName) " + |
| | | ",HCusMaterNumber,HCusModel,HCusMaterName,HisStockGoods) " + |
| | | "values(" + |
| | | "" + omodel.HInterID + |
| | | "," + oSub.HEntryID + |
| | |
| | | "','" + oSub.HCusMaterNumber + |
| | | "','" + oSub.HCusModel + |
| | | "','" + oSub.HCusMaterName + |
| | | "')"; |
| | | "'," + (oSub.HisStockGoods?1:0) + |
| | | ")"; |
| | | oCn.RunProc(subSql); |
| | | } |
| | | // |
| | |
| | | oSub.HRelTaxPrice = DBUtility.ClsPub.isDoule(DsSub.Tables[0].Rows[i]["HRelTaxPrice"]); |
| | | oSub.HOutStockQty = DBUtility.ClsPub.isDoule(DsSub.Tables[0].Rows[i]["HOutStockQty"]); |
| | | oSub.HInvoiceQty = DBUtility.ClsPub.isDoule(DsSub.Tables[0].Rows[i]["HInvoiceQty"]); |
| | | |
| | | oSub.HisStockGoods = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HisStockGoods"]) == 1 ? true : false; |
| | | |
| | | DetailColl.Add(oSub); |
| | | } |
| | | sReturn = "æ¾ç¤ºåæ®æåï¼"; |