| | |
| | | return objjson; |
| | | } |
| | | string HBillNo, HInnerBillNo, HDate; |
| | | Int64 HInterID; |
| | | HBillNo = DBUtility.ClsPub.CreateBillCode_SRMProd("1103", ref DBUtility.ClsPub.sExeReturnInfo, true); |
| | | HInnerBillNo = DBUtility.ClsPub.CreateBillCode_SRMProd("777", ref DBUtility.ClsPub.sExeReturnInfo, true);//送货单号 |
| | | HDate = DBUtility.ClsPub.isStrNull(DateTime.Now.ToString("yyyy-MM-dd")); |
| | | HInterID = DBUtility.ClsPub.CreateBillID_SRMProd("1103", ref DBUtility.ClsPub.sExeReturnInfo); |
| | | //创建临时表 |
| | | DataTable dt = new DataTable(); |
| | | //创建表中的列 |
| | | dt.Columns.Add("HBillNo", typeof(string));//添加列 |
| | | dt.Columns.Add("HInnerBillNo", typeof(string));//添加列 |
| | | dt.Columns.Add("HDate", typeof(string));//添加列 |
| | | dt.Columns.Add("HInterID", typeof(Int64));//添加列 |
| | | DataRow row = dt.NewRow(); |
| | | //给列赋值 |
| | | row["HBillNo"] = HBillNo; |
| | | row["HInnerBillNo"] = HInnerBillNo; |
| | | row["HDate"] = HDate; |
| | | row["HInterID"] = HInterID; |
| | | //把有值的列添加到表 |
| | | dt.Rows.Add(row); |
| | | //把表添加到dataset |
| | |
| | | oItem.HCurID = 1; |
| | | oItem.HExRate = 1; |
| | | oItem.HMainSourceInterID = oItem.HInterID; |
| | | oItem.HInterID = 0; |
| | | //oItem.HInterID = 0; |
| | | //oItem.HInterID = DBUtility.ClsPub.CreateBillID_SRMProd("1103", ref DBUtility.ClsPub.sExeReturnInfo); |
| | | if (FCusName.Contains("安瑞")) //系统参数 客户定制化名称 空白为通用 |
| | | { |
| | |
| | | //保存 |
| | | //保存完毕后处理 |
| | | bool bResult; |
| | | if (oBill.omodel.HInterID == 0) |
| | | if (oBill.omodel.HInterID != 0 && oBill.omodel.HInterID.ToString() != null && oBill.omodel.HInterID.ToString() != "undefined") |
| | | { |
| | | bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); |
| | | } |