|
@ -145,7 +145,7 @@ namespace SCP.Views.锦州锦恒.SupplierData |
|
|
dpUpdateTime.SelectedDate = _Model.UpdateTime; |
|
|
dpUpdateTime.SelectedDate = _Model.UpdateTime; |
|
|
txtTax.SelectedValue = _Model.Tax != null ? _Model.Tax.Value.ToString() : "0"; |
|
|
txtTax.SelectedValue = _Model.Tax != null ? _Model.Tax.Value.ToString() : "0"; |
|
|
txtTaxAmount.Text = _Model.TaxAmount != null ? _Model.TaxAmount.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; |
|
|
txtBlancePrice1.Text = _Model.BlancePrice != null ? _Model.BlancePrice.ToString() : string.Empty; |
|
|
txtAmount.Text = _Model.Amount.ToString(); |
|
|
txtAmount.Text = _Model.Amount.ToString(); |
|
|
txtTotal.Text = _Model.Total != null ? _Model.Total.ToString() : string.Empty; |
|
|
txtTotal.Text = _Model.Total != null ? _Model.Total.ToString() : string.Empty; |
|
@ -187,9 +187,9 @@ namespace SCP.Views.锦州锦恒.SupplierData |
|
|
txtExpressNumber.Readonly = true; |
|
|
txtExpressNumber.Readonly = true; |
|
|
txtExpressNumber.Required = false; |
|
|
txtExpressNumber.Required = false; |
|
|
|
|
|
|
|
|
txtContractPrice1.Readonly = true; |
|
|
txtDiscountPrice1.Readonly = true; |
|
|
txtContractPrice1.Required = false; |
|
|
txtDiscountPrice1.Required = false; |
|
|
txtContractPrice1.Enabled = false; |
|
|
txtDiscountPrice1.Enabled = false; |
|
|
|
|
|
|
|
|
txtBlancePrice1.Readonly = true; |
|
|
txtBlancePrice1.Readonly = true; |
|
|
txtBlancePrice1.Required = false; |
|
|
txtBlancePrice1.Required = false; |
|
@ -213,9 +213,9 @@ namespace SCP.Views.锦州锦恒.SupplierData |
|
|
txtInvoiceNumber.Readonly = false; |
|
|
txtInvoiceNumber.Readonly = false; |
|
|
txtInvoiceNumber.Required = true; |
|
|
txtInvoiceNumber.Required = true; |
|
|
txtExpressNumber.Readonly = false; |
|
|
txtExpressNumber.Readonly = false; |
|
|
txtContractPrice1.Readonly = false; |
|
|
txtDiscountPrice1.Readonly = false; |
|
|
txtContractPrice1.Required = true; |
|
|
txtDiscountPrice1.Required = true; |
|
|
txtContractPrice1.Enabled = true; |
|
|
txtDiscountPrice1.Enabled = true; |
|
|
txtExtend1.Readonly = false; |
|
|
txtExtend1.Readonly = false; |
|
|
txtExtend1.Required = true; |
|
|
txtExtend1.Required = true; |
|
|
txtExtend1.Enabled = true; |
|
|
txtExtend1.Enabled = true; |
|
@ -271,7 +271,7 @@ namespace SCP.Views.锦州锦恒.SupplierData |
|
|
string InvoiceNumber = MyWebString.GetString(this.txtInvoiceNumber.Text.Trim()); |
|
|
string InvoiceNumber = MyWebString.GetString(this.txtInvoiceNumber.Text.Trim()); |
|
|
string Memo = MyWebString.GetString(this.txtMemo.Text.Trim()); |
|
|
string Memo = MyWebString.GetString(this.txtMemo.Text.Trim()); |
|
|
string ExpressNumber = MyWebString.GetString(this.txtExpressNumber.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 BlancePrice1 = MyWebString.GetString(this.txtBlancePrice1.Text.Trim());//税额调整
|
|
|
string Extend1 = MyWebString.GetString(this.txtExtend1.Text.Trim());//实际发票税前金额
|
|
|
string Extend1 = MyWebString.GetString(this.txtExtend1.Text.Trim());//实际发票税前金额
|
|
|
string Extend2 = MyWebString.GetString(this.txtExtend2.Text.Trim());//实际发票税额
|
|
|
string Extend2 = MyWebString.GetString(this.txtExtend2.Text.Trim());//实际发票税额
|
|
@ -300,9 +300,9 @@ namespace SCP.Views.锦州锦恒.SupplierData |
|
|
{ |
|
|
{ |
|
|
_invoice.Extend2 = 0; |
|
|
_invoice.Extend2 = 0; |
|
|
} |
|
|
} |
|
|
if (string.IsNullOrEmpty(ContractPrice1)) |
|
|
if (string.IsNullOrEmpty(DiscountPrice1)) |
|
|
{ |
|
|
{ |
|
|
_invoice.ContractPrice = 0; |
|
|
_invoice.DiscountPrice = 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(BlancePrice1)) |
|
|
if (string.IsNullOrEmpty(BlancePrice1)) |
|
@ -328,9 +328,9 @@ namespace SCP.Views.锦州锦恒.SupplierData |
|
|
decimal b1; |
|
|
decimal b1; |
|
|
decimal d1; |
|
|
decimal d1; |
|
|
decimal e1; |
|
|
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)) |
|
|
if (decimal.TryParse(Extend1, out d1)) |
|
|
{ |
|
|
{ |
|
@ -439,7 +439,7 @@ namespace SCP.Views.锦州锦恒.SupplierData |
|
|
string ExpressNumber = MyWebString.GetString(this.txtExpressNumber.Text.Trim());//快递单号
|
|
|
string ExpressNumber = MyWebString.GetString(this.txtExpressNumber.Text.Trim());//快递单号
|
|
|
string Extend1 = MyWebString.GetString(this.txtExtend1.Text.Trim());//折扣价格
|
|
|
string Extend1 = MyWebString.GetString(this.txtExtend1.Text.Trim());//折扣价格
|
|
|
string Extend2 = MyWebString.GetString(this.txtExtend2.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());//合同差额
|
|
|
string BlancePrice1 = MyWebString.GetString(this.txtBlancePrice1.Text.Trim());//合同差额
|
|
|
|
|
|
|
|
|
_Invoice.InvoiceNum = InvoiceNumber; |
|
|
_Invoice.InvoiceNum = InvoiceNumber; |
|
@ -453,9 +453,9 @@ namespace SCP.Views.锦州锦恒.SupplierData |
|
|
{ |
|
|
{ |
|
|
_Invoice.Extend2 = 0; |
|
|
_Invoice.Extend2 = 0; |
|
|
} |
|
|
} |
|
|
if (string.IsNullOrEmpty(ContractPrice1)) |
|
|
if (string.IsNullOrEmpty(DiscountPrice1)) |
|
|
{ |
|
|
{ |
|
|
_Invoice.ContractPrice = 0; |
|
|
_Invoice.DiscountPrice = 0; |
|
|
} |
|
|
} |
|
|
if (string.IsNullOrEmpty(BlancePrice1)) |
|
|
if (string.IsNullOrEmpty(BlancePrice1)) |
|
|
{ |
|
|
{ |
|
@ -482,9 +482,9 @@ namespace SCP.Views.锦州锦恒.SupplierData |
|
|
{ |
|
|
{ |
|
|
_Invoice.Extend2 = 0; |
|
|
_Invoice.Extend2 = 0; |
|
|
} |
|
|
} |
|
|
if (decimal.TryParse(ContractPrice1, out c1)) |
|
|
if (decimal.TryParse(DiscountPrice1, out c1)) |
|
|
{ |
|
|
{ |
|
|
_Invoice.ContractPrice = c1; |
|
|
_Invoice.DiscountPrice = c1; |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|