From 6bbe618f8c4fbedca083287e2a84f547ea83eb9f Mon Sep 17 00:00:00 2001 From: TML <1448969505@qq.com> Date: Wed, 14 Oct 2020 09:18:43 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E9=94=A6=E5=B7=9E=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Controller/SCP_RECEIVE_CONTROLLER.cs | 2 +- SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx.cs | 2 +- SCP/Views/WarehouseData/SCP_RECEIVE_VIEW.aspx | 2 +- SCP/Views/WarehouseData/SCP_RECEIVE_VIEW.aspx.cs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Controller/SCP_RECEIVE_CONTROLLER.cs b/Controller/SCP_RECEIVE_CONTROLLER.cs index 0ea3505..55afc5d 100644 --- a/Controller/SCP_RECEIVE_CONTROLLER.cs +++ b/Controller/SCP_RECEIVE_CONTROLLER.cs @@ -1028,7 +1028,7 @@ namespace CK.SCP.Controller if (p_entity.UIDList != null && p_entity.UIDList.Count > 0) { q = q.Where(p => p_entity.UIDList.Contains(p.UID)); - } + } _ret.State = ReturnStatus.Succeed; _ret.Result = q; p_action(_ret); diff --git a/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx.cs b/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx.cs index f4024e1..4a7a9d0 100644 --- a/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx.cs +++ b/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx.cs @@ -141,7 +141,7 @@ namespace SCP.SupplierData var _vender = SCP_TB_VENDER_CONTROLLER.GetVender(_venderId, _ls.Site); if (_vender.Tax != null) { - lbTaxRate.SelectedValue = _vender.Tax.ToString(); + lbTaxRate.Text = _vender.Tax.ToString(); } else { diff --git a/SCP/Views/WarehouseData/SCP_RECEIVE_VIEW.aspx b/SCP/Views/WarehouseData/SCP_RECEIVE_VIEW.aspx index 5ddee81..fc6ff7d 100644 --- a/SCP/Views/WarehouseData/SCP_RECEIVE_VIEW.aspx +++ b/SCP/Views/WarehouseData/SCP_RECEIVE_VIEW.aspx @@ -90,7 +90,7 @@ diff --git a/SCP/Views/WarehouseData/SCP_RECEIVE_VIEW.aspx.cs b/SCP/Views/WarehouseData/SCP_RECEIVE_VIEW.aspx.cs index 9e892dd..177d2bd 100644 --- a/SCP/Views/WarehouseData/SCP_RECEIVE_VIEW.aspx.cs +++ b/SCP/Views/WarehouseData/SCP_RECEIVE_VIEW.aspx.cs @@ -162,8 +162,8 @@ namespace SCP.WarehouseData STATE = "0"; } - string roleID = GetSelectedDataKey(Grid_V_TB_RECEIVE, 1); - string url = String.Format("../WarehouseData/SCP_RECEIVE_DETAIL.aspx?ID={0}&STATE={1}", roleID, STATE); + string ErpRecvBillNum = GetSelectedDataKey(Grid_V_TB_RECEIVE,4); + string url = String.Format("../WarehouseData/SCP_RECEIVE_DETAIL.aspx?ID={0}&STATE={1}", ErpRecvBillNum, STATE); PageContext.RegisterStartupScript(Window1.GetShowReference(url)); } //查询 From eccc14920eec1b413aa9e0f9f91c71b51969cd97 Mon Sep 17 00:00:00 2001 From: lvzb <35200379@qq.com> Date: Wed, 14 Oct 2020 09:50:43 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E9=94=A6=E5=B7=9E=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SupplierData/SCP_INVOICE_EDIT.aspx | 2 +- .../SupplierData/SCP_INVOICE_EDIT.aspx.cs | 34 +++++++++---------- .../SCP_INVOICE_EDIT.aspx.designer.cs | 4 +-- .../SCP_INVOICE_CONFIRM_DETAIL.aspx | 4 +-- .../SCP_INVOICE_CONFIRM_DETAIL.aspx.cs | 4 ++- ...CP_INVOICE_CONFIRM_DETAIL.aspx.designer.cs | 4 +-- .../WarehouseData/SCP_INVOICE_DELTAIL.aspx | 2 +- .../WarehouseData/SCP_INVOICE_DELTAIL.aspx.cs | 4 +-- .../SCP_INVOICE_DELTAIL.aspx.designer.cs | 4 +-- .../Controller/OdbcApiScpController.cs | 10 +++--- 10 files changed, 37 insertions(+), 35 deletions(-) diff --git a/SCP/Views/锦州锦恒/SupplierData/SCP_INVOICE_EDIT.aspx b/SCP/Views/锦州锦恒/SupplierData/SCP_INVOICE_EDIT.aspx index b992ebc..7d46f94 100644 --- a/SCP/Views/锦州锦恒/SupplierData/SCP_INVOICE_EDIT.aspx +++ b/SCP/Views/锦州锦恒/SupplierData/SCP_INVOICE_EDIT.aspx @@ -68,7 +68,7 @@ - + diff --git a/SCP/Views/锦州锦恒/SupplierData/SCP_INVOICE_EDIT.aspx.cs b/SCP/Views/锦州锦恒/SupplierData/SCP_INVOICE_EDIT.aspx.cs index 1be817f..4da108a 100644 --- a/SCP/Views/锦州锦恒/SupplierData/SCP_INVOICE_EDIT.aspx.cs +++ b/SCP/Views/锦州锦恒/SupplierData/SCP_INVOICE_EDIT.aspx.cs @@ -145,7 +145,7 @@ namespace SCP.Views.锦州锦恒.SupplierData dpUpdateTime.SelectedDate = _Model.UpdateTime; txtTax.SelectedValue = _Model.Tax != null ? _Model.Tax.Value.ToString() : "0"; txtTaxAmount.Text = _Model.TaxAmount != null ? _Model.TaxAmount.Value.ToString() : "0"; - txtContractPrice1.Text = _Model.ContractPrice != null ? _Model.ContractPrice.ToString() : string.Empty; + txtDiscountPrice1.Text = _Model.DiscountPrice != null ? _Model.DiscountPrice.ToString() : string.Empty; txtBlancePrice1.Text = _Model.BlancePrice != null ? _Model.BlancePrice.ToString() : string.Empty; txtAmount.Text = _Model.Amount.ToString(); txtTotal.Text = _Model.Total != null ? _Model.Total.ToString() : string.Empty; @@ -187,9 +187,9 @@ namespace SCP.Views.锦州锦恒.SupplierData txtExpressNumber.Readonly = true; txtExpressNumber.Required = false; - txtContractPrice1.Readonly = true; - txtContractPrice1.Required = false; - txtContractPrice1.Enabled = false; + txtDiscountPrice1.Readonly = true; + txtDiscountPrice1.Required = false; + txtDiscountPrice1.Enabled = false; txtBlancePrice1.Readonly = true; txtBlancePrice1.Required = false; @@ -213,9 +213,9 @@ namespace SCP.Views.锦州锦恒.SupplierData txtInvoiceNumber.Readonly = false; txtInvoiceNumber.Required = true; txtExpressNumber.Readonly = false; - txtContractPrice1.Readonly = false; - txtContractPrice1.Required = true; - txtContractPrice1.Enabled = true; + txtDiscountPrice1.Readonly = false; + txtDiscountPrice1.Required = true; + txtDiscountPrice1.Enabled = true; txtExtend1.Readonly = false; txtExtend1.Required = true; txtExtend1.Enabled = true; @@ -271,7 +271,7 @@ namespace SCP.Views.锦州锦恒.SupplierData string InvoiceNumber = MyWebString.GetString(this.txtInvoiceNumber.Text.Trim()); string Memo = MyWebString.GetString(this.txtMemo.Text.Trim()); string ExpressNumber = MyWebString.GetString(this.txtExpressNumber.Text.Trim()); - string ContractPrice1 = MyWebString.GetString(this.txtContractPrice1.Text.Trim());//折扣 + string DiscountPrice1 = MyWebString.GetString(this.txtDiscountPrice1.Text.Trim());//折扣 string BlancePrice1 = MyWebString.GetString(this.txtBlancePrice1.Text.Trim());//税额调整 string Extend1 = MyWebString.GetString(this.txtExtend1.Text.Trim());//实际发票税前金额 string Extend2 = MyWebString.GetString(this.txtExtend2.Text.Trim());//实际发票税额 @@ -300,9 +300,9 @@ namespace SCP.Views.锦州锦恒.SupplierData { _invoice.Extend2 = 0; } - if (string.IsNullOrEmpty(ContractPrice1)) + if (string.IsNullOrEmpty(DiscountPrice1)) { - _invoice.ContractPrice = 0; + _invoice.DiscountPrice = 0; } if (string.IsNullOrEmpty(BlancePrice1)) @@ -328,9 +328,9 @@ namespace SCP.Views.锦州锦恒.SupplierData decimal b1; decimal d1; decimal e1; - if (decimal.TryParse(ContractPrice1, out c1)) + if (decimal.TryParse(DiscountPrice1, out c1)) { - _invoice.ContractPrice = c1; + _invoice.DiscountPrice = c1; } if (decimal.TryParse(Extend1, out d1)) { @@ -439,7 +439,7 @@ namespace SCP.Views.锦州锦恒.SupplierData string ExpressNumber = MyWebString.GetString(this.txtExpressNumber.Text.Trim());//快递单号 string Extend1 = MyWebString.GetString(this.txtExtend1.Text.Trim());//折扣价格 string Extend2 = MyWebString.GetString(this.txtExtend2.Text.Trim());//折扣价格 - string ContractPrice1 = MyWebString.GetString(this.txtContractPrice1.Text.Trim());//折扣价格 + string DiscountPrice1 = MyWebString.GetString(this.txtDiscountPrice1.Text.Trim());//折扣价格 string BlancePrice1 = MyWebString.GetString(this.txtBlancePrice1.Text.Trim());//合同差额 _Invoice.InvoiceNum = InvoiceNumber; @@ -453,9 +453,9 @@ namespace SCP.Views.锦州锦恒.SupplierData { _Invoice.Extend2 = 0; } - if (string.IsNullOrEmpty(ContractPrice1)) + if (string.IsNullOrEmpty(DiscountPrice1)) { - _Invoice.ContractPrice = 0; + _Invoice.DiscountPrice = 0; } if (string.IsNullOrEmpty(BlancePrice1)) { @@ -482,9 +482,9 @@ namespace SCP.Views.锦州锦恒.SupplierData { _Invoice.Extend2 = 0; } - if (decimal.TryParse(ContractPrice1, out c1)) + if (decimal.TryParse(DiscountPrice1, out c1)) { - _Invoice.ContractPrice = c1; + _Invoice.DiscountPrice = c1; } else { diff --git a/SCP/Views/锦州锦恒/SupplierData/SCP_INVOICE_EDIT.aspx.designer.cs b/SCP/Views/锦州锦恒/SupplierData/SCP_INVOICE_EDIT.aspx.designer.cs index 861d5c5..8538b1d 100644 --- a/SCP/Views/锦州锦恒/SupplierData/SCP_INVOICE_EDIT.aspx.designer.cs +++ b/SCP/Views/锦州锦恒/SupplierData/SCP_INVOICE_EDIT.aspx.designer.cs @@ -231,13 +231,13 @@ namespace SCP.Views.锦州锦恒.SupplierData protected global::FineUI.NumberBox txtExtend2; /// - /// txtContractPrice1 控件。 + /// txtDiscountPrice1 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUI.NumberBox txtContractPrice1; + protected global::FineUI.NumberBox txtDiscountPrice1; /// /// txtBlancePrice1 控件。 diff --git a/SCP/Views/锦州锦恒/WarehouseData/SCP_INVOICE_CONFIRM_DETAIL.aspx b/SCP/Views/锦州锦恒/WarehouseData/SCP_INVOICE_CONFIRM_DETAIL.aspx index 0478d44..30e0a4e 100644 --- a/SCP/Views/锦州锦恒/WarehouseData/SCP_INVOICE_CONFIRM_DETAIL.aspx +++ b/SCP/Views/锦州锦恒/WarehouseData/SCP_INVOICE_CONFIRM_DETAIL.aspx @@ -63,7 +63,7 @@ - + @@ -92,7 +92,7 @@ diff --git a/SCP/Views/锦州锦恒/WarehouseData/SCP_INVOICE_CONFIRM_DETAIL.aspx.cs b/SCP/Views/锦州锦恒/WarehouseData/SCP_INVOICE_CONFIRM_DETAIL.aspx.cs index f28654a..a03d133 100644 --- a/SCP/Views/锦州锦恒/WarehouseData/SCP_INVOICE_CONFIRM_DETAIL.aspx.cs +++ b/SCP/Views/锦州锦恒/WarehouseData/SCP_INVOICE_CONFIRM_DETAIL.aspx.cs @@ -67,7 +67,7 @@ namespace SCP.Views.锦州锦恒.WarehouseData txtExpressNumber.Text = _Model.ExpressNum; txtAmount.Text = _Model.Amount.ToString(); txtTotal.Text = _Model.Total != null ? _Model.Total.ToString() : string.Empty; - txtContractPrice1.Text = _Model.ContractPrice != null ? _Model.ContractPrice.ToString() : string.Empty; + txtDiscountPrice1.Text = _Model.DiscountPrice != null ? _Model.DiscountPrice.ToString() : string.Empty; txtExtend1.Text = _Model.Extend1 != null ? _Model.Extend1.ToString() : string.Empty; txtExtend2.Text = _Model.Extend2 != null ? _Model.Extend2.ToString() : string.Empty; txtRealTotal.Text = _Model.RealTotal != null ? _Model.RealTotal.ToString() : string.Empty; @@ -208,6 +208,7 @@ namespace SCP.Views.锦州锦恒.WarehouseData var txtLineMemo = (System.Web.UI.WebControls.TextBox)row.FindControl("txtLineMemo"); _entity.ContractPrice = ConvertHelper.To(rowDataKeys[6]); _entity.BlancePrice = ConvertHelper.To(rowDataKeys[7]); + _entity.DiscountPrice = ConvertHelper.To(rowDataKeys[8]); _entity.Remark = txtLineMemo.Text; //把备注添加到TB_INVOICE、TB_INVOICE_DETAIL _ls.Add(_entity); @@ -266,6 +267,7 @@ namespace SCP.Views.锦州锦恒.WarehouseData _entity.Price = ConvertHelper.To(rowDataKeys[5]); _entity.ContractPrice = ConvertHelper.To(rowDataKeys[6]); _entity.BlancePrice = ConvertHelper.To(rowDataKeys[7]); + _entity.DiscountPrice = ConvertHelper.To(rowDataKeys[8]); var txtLineMemo = (System.Web.UI.WebControls.TextBox)row.FindControl("txtLineMemo"); _entity.Remark = txtLineMemo.Text; diff --git a/SCP/Views/锦州锦恒/WarehouseData/SCP_INVOICE_CONFIRM_DETAIL.aspx.designer.cs b/SCP/Views/锦州锦恒/WarehouseData/SCP_INVOICE_CONFIRM_DETAIL.aspx.designer.cs index 649e0c2..be785c2 100644 --- a/SCP/Views/锦州锦恒/WarehouseData/SCP_INVOICE_CONFIRM_DETAIL.aspx.designer.cs +++ b/SCP/Views/锦州锦恒/WarehouseData/SCP_INVOICE_CONFIRM_DETAIL.aspx.designer.cs @@ -186,13 +186,13 @@ namespace SCP.Views.锦州锦恒.WarehouseData protected global::FineUI.TextBox txtExtend2; /// - /// txtContractPrice1 控件。 + /// txtDiscountPrice1 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUI.TextBox txtContractPrice1; + protected global::FineUI.TextBox txtDiscountPrice1; /// /// txtBlancePrice1 控件。 diff --git a/SCP/Views/锦州锦恒/WarehouseData/SCP_INVOICE_DELTAIL.aspx b/SCP/Views/锦州锦恒/WarehouseData/SCP_INVOICE_DELTAIL.aspx index 77e33ba..1b39a10 100644 --- a/SCP/Views/锦州锦恒/WarehouseData/SCP_INVOICE_DELTAIL.aspx +++ b/SCP/Views/锦州锦恒/WarehouseData/SCP_INVOICE_DELTAIL.aspx @@ -56,7 +56,7 @@ - + diff --git a/SCP/Views/锦州锦恒/WarehouseData/SCP_INVOICE_DELTAIL.aspx.cs b/SCP/Views/锦州锦恒/WarehouseData/SCP_INVOICE_DELTAIL.aspx.cs index d54ef77..78a1088 100644 --- a/SCP/Views/锦州锦恒/WarehouseData/SCP_INVOICE_DELTAIL.aspx.cs +++ b/SCP/Views/锦州锦恒/WarehouseData/SCP_INVOICE_DELTAIL.aspx.cs @@ -163,8 +163,8 @@ namespace SCP.Views.锦州锦恒.WarehouseData txtExtend1.Text = _Model.Extend1 != null ? _Model.Extend1.ToString() : string.Empty; txtExtend2.Text = _Model.Extend2 != null ? _Model.Extend2.ToString() : string.Empty; - txtContractPrice1.Text = _Model.ContractPrice != null ? _Model.ContractPrice.ToString() : string.Empty; - txtContractPrice1.Text = _Model.ContractPrice != null ? _Model.ContractPrice.ToString() : string.Empty; + txtDiscountPrice1.Text = _Model.DiscountPrice != null ? _Model.DiscountPrice.ToString() : string.Empty; + txtDiscountPrice1.Text = _Model.DiscountPrice != null ? _Model.DiscountPrice.ToString() : string.Empty; txtBlancePrice1.Text = _Model.BlancePrice != null ? _Model.BlancePrice.ToString() : string.Empty; txtAmount.Text = _Model.Amount.ToString(); txtTotal.Text = _Model.Total != null ? _Model.Total.ToString() : string.Empty; diff --git a/SCP/Views/锦州锦恒/WarehouseData/SCP_INVOICE_DELTAIL.aspx.designer.cs b/SCP/Views/锦州锦恒/WarehouseData/SCP_INVOICE_DELTAIL.aspx.designer.cs index a4759ec..3e4d415 100644 --- a/SCP/Views/锦州锦恒/WarehouseData/SCP_INVOICE_DELTAIL.aspx.designer.cs +++ b/SCP/Views/锦州锦恒/WarehouseData/SCP_INVOICE_DELTAIL.aspx.designer.cs @@ -168,13 +168,13 @@ namespace SCP.Views.锦州锦恒.WarehouseData protected global::FineUI.NumberBox txtExtend2; /// - /// txtContractPrice1 控件。 + /// txtDiscountPrice1 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUI.NumberBox txtContractPrice1; + protected global::FineUI.NumberBox txtDiscountPrice1; /// /// txtRealTotal 控件。 diff --git a/UniApiGroup/Controller/OdbcApiScpController.cs b/UniApiGroup/Controller/OdbcApiScpController.cs index 90a5a94..8f75c12 100644 --- a/UniApiGroup/Controller/OdbcApiScpController.cs +++ b/UniApiGroup/Controller/OdbcApiScpController.cs @@ -326,11 +326,11 @@ namespace CK.SCP.GrupUniApi.Controller qadData.xxscm_inv_date = _invoice.UpdateTime == null ? _invoice.CreateTime.Value.AddDays(1) : _invoice.UpdateTime.Value; qadData.xxscm_inv_totamt = _invoice.Amount.Value; qadData.xxscm_inv_tottax = _invoice.Total.Value; - qadData.xxscm_inv_totdiscount = _invoice.DiscountPrice == null ? 0 : _invoice.DiscountPrice.Value; - qadData.xxscm_inv_tottaxvar = _invoice.BlancePrice == null ? 0 : _invoice.BlancePrice.Value; - qadData.xxscm_inv_totclaim= _invoice.ContractPrice == null ? 0 : _invoice.ContractPrice.Value; - qadData.xxscm_inv_extend1 = _invoice.Extend1 == null ? 0 : _invoice.Extend1.Value; - qadData.xxscm_inv_extend2 = _invoice.Extend2 == null ? 0 : _invoice.Extend2.Value; + qadData.xxscm_inv_totdiscount = _invoice.DiscountPrice == null ? 0 : _invoice.DiscountPrice.Value;//折扣金额 + qadData.xxscm_inv_tottaxvar = _invoice.BlancePrice == null ? 0 : _invoice.BlancePrice.Value;//调整税额 + qadData.xxscm_inv_totclaim= _invoice.ContractPrice == null ? 0 : _invoice.ContractPrice.Value;//索赔金额 + qadData.xxscm_inv_extend1 = _invoice.Extend1 == null ? 0 : _invoice.Extend1.Value;//纸质发票税前金额 + qadData.xxscm_inv_extend2 = _invoice.Extend2 == null ? 0 : _invoice.Extend2.Value;//纸质发票税额 qadDataList.Add(qadData); p.State = (int)BillState.Finish; p.PutTime = DateTime.Now; From e045fc98fbd320ad4cd68e4b25f01c9760dd5122 Mon Sep 17 00:00:00 2001 From: TML <1448969505@qq.com> Date: Thu, 15 Oct 2020 11:36:28 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E9=94=A6=E5=B7=9E=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx.cs b/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx.cs index 4a7a9d0..d6a1a66 100644 --- a/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx.cs +++ b/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx.cs @@ -120,7 +120,7 @@ namespace SCP.SupplierData if (!string.IsNullOrEmpty(_ls.Site) && !string.IsNullOrEmpty(_venderId)) { var _vender = SCP_TB_VENDER_CONTROLLER.GetVender(_venderId, _ls.Site); - if (_vender.Tax != null) + if (_vender.Tax > 0 && _vender.Tax != null) { lbTaxRate.SelectedValue = _vender.Tax.ToString(); } @@ -139,13 +139,13 @@ namespace SCP.SupplierData if (!string.IsNullOrEmpty(_ls.Site) && !string.IsNullOrEmpty(_venderId)) { var _vender = SCP_TB_VENDER_CONTROLLER.GetVender(_venderId, _ls.Site); - if (_vender.Tax != null) + if (_vender.Tax >0&&_vender.Tax!=null) { - lbTaxRate.Text = _vender.Tax.ToString(); + lbTaxRate.SelectedValue = _vender.Tax.ToString(); } else { - lbTaxRate.SelectedValue = _vender.Tax.ToString(); + lbTaxRate.SelectedValue = "0"; } } } @@ -420,7 +420,7 @@ namespace SCP.SupplierData if (!string.IsNullOrEmpty(_ls.Site) && !string.IsNullOrEmpty(_venderId)) { var _vender = SCP_TB_VENDER_CONTROLLER.GetVender(_venderId, _ls.Site); - if (_vender.Tax != null) + if (_vender.Tax > 0 && _vender.Tax != null) { lbTaxRate.SelectedValue = _vender.Tax.ToString(); } From eedb38f43fdc7626b5f0cf902dc375d67819166e Mon Sep 17 00:00:00 2001 From: TML <1448969505@qq.com> Date: Fri, 16 Oct 2020 08:41:24 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E9=94=A6=E5=B7=9E=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WarehouseData/SCP_INVOICE_RECVICE.aspx.cs | 30 +++++++++++++++---- SCP/Views/WarehouseData/SCP_RECEIVE.aspx.cs | 2 +- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/SCP/Views/WarehouseData/SCP_INVOICE_RECVICE.aspx.cs b/SCP/Views/WarehouseData/SCP_INVOICE_RECVICE.aspx.cs index 89bfcb3..0a6cfb4 100644 --- a/SCP/Views/WarehouseData/SCP_INVOICE_RECVICE.aspx.cs +++ b/SCP/Views/WarehouseData/SCP_INVOICE_RECVICE.aspx.cs @@ -108,10 +108,22 @@ namespace SCP.WarehouseData { inv.PoLineNum = int.Parse(rowDataKeys[2].ToString());//订单行 } - inv.AsnBillNum = rowDataKeys[3].ToString();//发货单 + // inv.AsnBillNum = rowDataKeys[3].ToString();//发货单 + if (rowDataKeys[3] != null) + { + inv.AsnBillNum = rowDataKeys[3].ToString();//发货单 + } inv.PartCode = rowDataKeys[4].ToString();//零件号 - inv.PartDesc1 = rowDataKeys[5].ToString();//零件名称 - inv.Currency = rowDataKeys[6].ToString();//币种 + //inv.PartDesc1 = rowDataKeys[5].ToString();//零件名称 + if (rowDataKeys[5] != null) + { + inv.PartDesc1 = rowDataKeys[5].ToString();//发货单 + } + //inv.Currency = rowDataKeys[6].ToString();//币种 + if (rowDataKeys[6] != null) + { + inv.Currency = rowDataKeys[6].ToString();//发货单 + } if (rowDataKeys[7] != null) { inv.Price = decimal.Parse(rowDataKeys[7].ToString());//单价 @@ -208,8 +220,16 @@ namespace SCP.WarehouseData inv.AsnBillNum = rowDataKeys[3].ToString();//发货单 } inv.PartCode = rowDataKeys[4].ToString();//零件号 - inv.PartDesc1 = rowDataKeys[5].ToString();//零件名称 - inv.Currency = rowDataKeys[6].ToString();//币种 + //inv.PartDesc1 = rowDataKeys[5].ToString();//零件名称 + if (rowDataKeys[5] != null) + { + inv.PartDesc1 = rowDataKeys[5].ToString(); + } + //inv.Currency = rowDataKeys[6].ToString();//币种 + if (rowDataKeys[6] != null) + { + inv.Currency = rowDataKeys[6].ToString(); + } if (rowDataKeys[7] != null) { inv.Price = decimal.Parse(rowDataKeys[7].ToString());//单价 diff --git a/SCP/Views/WarehouseData/SCP_RECEIVE.aspx.cs b/SCP/Views/WarehouseData/SCP_RECEIVE.aspx.cs index 44d2d62..cea4133 100644 --- a/SCP/Views/WarehouseData/SCP_RECEIVE.aspx.cs +++ b/SCP/Views/WarehouseData/SCP_RECEIVE.aspx.cs @@ -171,7 +171,7 @@ namespace SCP.WarehouseData } string roleID = GetSelectedDataKey(Grid_V_TB_RECEIVE, 1); - string url = String.Format("../WarehouseData/SCP_RECEIVE_DETAIL.aspx?ID={0}&STATE={1}", roleID, STATE); + string url = String.Format("../WarehouseData/SCP_RECEIVE.aspx?ID={0}&STATE={1}", roleID, STATE); PageContext.RegisterStartupScript(Window1.GetShowReference(url)); } //查询 From 4c7629c8adaca0a1dd1c6d14cd5f6dfddbe31a8e Mon Sep 17 00:00:00 2001 From: TML <1448969505@qq.com> Date: Fri, 16 Oct 2020 10:02:46 +0800 Subject: [PATCH 5/7] =?UTF-8?q?=E9=94=A6=E5=B7=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SCP/Views/WarehouseData/SCP_INVOICE_RECVICE.aspx.cs | 2 +- SCP/Views/WarehouseData/SCP_RECEIVE.aspx.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SCP/Views/WarehouseData/SCP_INVOICE_RECVICE.aspx.cs b/SCP/Views/WarehouseData/SCP_INVOICE_RECVICE.aspx.cs index 0a6cfb4..11dbee2 100644 --- a/SCP/Views/WarehouseData/SCP_INVOICE_RECVICE.aspx.cs +++ b/SCP/Views/WarehouseData/SCP_INVOICE_RECVICE.aspx.cs @@ -108,7 +108,7 @@ namespace SCP.WarehouseData { inv.PoLineNum = int.Parse(rowDataKeys[2].ToString());//订单行 } - // inv.AsnBillNum = rowDataKeys[3].ToString();//发货单 + //inv.AsnBillNum = rowDataKeys[3].ToString();//发货单 if (rowDataKeys[3] != null) { inv.AsnBillNum = rowDataKeys[3].ToString();//发货单 diff --git a/SCP/Views/WarehouseData/SCP_RECEIVE.aspx.cs b/SCP/Views/WarehouseData/SCP_RECEIVE.aspx.cs index cea4133..44d2d62 100644 --- a/SCP/Views/WarehouseData/SCP_RECEIVE.aspx.cs +++ b/SCP/Views/WarehouseData/SCP_RECEIVE.aspx.cs @@ -171,7 +171,7 @@ namespace SCP.WarehouseData } string roleID = GetSelectedDataKey(Grid_V_TB_RECEIVE, 1); - string url = String.Format("../WarehouseData/SCP_RECEIVE.aspx?ID={0}&STATE={1}", roleID, STATE); + string url = String.Format("../WarehouseData/SCP_RECEIVE_DETAIL.aspx?ID={0}&STATE={1}", roleID, STATE); PageContext.RegisterStartupScript(Window1.GetShowReference(url)); } //查询 From 042d32e1b070b4367de010ec2a02a13f608c6422 Mon Sep 17 00:00:00 2001 From: lvzb <35200379@qq.com> Date: Fri, 16 Oct 2020 10:04:27 +0800 Subject: [PATCH 6/7] =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SCP/Views/WarehouseData/SCP_RECEIVE.aspx.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SCP/Views/WarehouseData/SCP_RECEIVE.aspx.cs b/SCP/Views/WarehouseData/SCP_RECEIVE.aspx.cs index 44d2d62..4105aed 100644 --- a/SCP/Views/WarehouseData/SCP_RECEIVE.aspx.cs +++ b/SCP/Views/WarehouseData/SCP_RECEIVE.aspx.cs @@ -170,7 +170,7 @@ namespace SCP.WarehouseData STATE = "0"; } - string roleID = GetSelectedDataKey(Grid_V_TB_RECEIVE, 1); + string roleID = GetSelectedDataKey(Grid_V_TB_RECEIVE, 2); string url = String.Format("../WarehouseData/SCP_RECEIVE_DETAIL.aspx?ID={0}&STATE={1}", roleID, STATE); PageContext.RegisterStartupScript(Window1.GetShowReference(url)); } From 0c31fd296f5215b36863a0760de6d727ac573119 Mon Sep 17 00:00:00 2001 From: TML <1448969505@qq.com> Date: Mon, 19 Oct 2020 08:28:27 +0800 Subject: [PATCH 7/7] =?UTF-8?q?=E9=94=A6=E5=B7=9E=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SCP/Views/锦州锦恒/SupplierData/SCP_INVOICE.aspx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SCP/Views/锦州锦恒/SupplierData/SCP_INVOICE.aspx b/SCP/Views/锦州锦恒/SupplierData/SCP_INVOICE.aspx index a96b085..e9125c4 100644 --- a/SCP/Views/锦州锦恒/SupplierData/SCP_INVOICE.aspx +++ b/SCP/Views/锦州锦恒/SupplierData/SCP_INVOICE.aspx @@ -124,7 +124,7 @@ - +