Browse Source

毛猪过磅加供应商银行卡号,打印也要加。

master
yibo 8 years ago
parent
commit
aa3ad9784b
5 changed files with 149 additions and 100 deletions
  1. +2
    -0
      BO/BO/Bill/WeightBill/PrintWeightBill.cs
  2. +2
    -0
      BO/BO/Bill/WeightBill/WeightBill.cs
  3. +6
    -0
      BO/Utils/BillRpc/WeightBillRpc.cs
  4. +123
    -98
      ButcherWeight/WeightForm.Designer.cs
  5. +16
    -2
      ButcherWeight/WeightForm.cs

+ 2
- 0
BO/BO/Bill/WeightBill/PrintWeightBill.cs View File

@ -38,6 +38,8 @@ namespace BO.BO
public decimal? DiscontMoney { get; set; } public decimal? DiscontMoney { get; set; }
public string BankAccount { get; set; }
public decimal? PayMoney public decimal? PayMoney
{ {
get get


+ 2
- 0
BO/BO/Bill/WeightBill/WeightBill.cs View File

@ -33,6 +33,8 @@ namespace BO.BO
public string Supplier_Name { get; set; } public string Supplier_Name { get; set; }
public string BankAccount { get; set; }
public long? Zone_ID { get; set; } public long? Zone_ID { get; set; }
public string Zone_Name { get; set; } public string Zone_Name { get; set; }


+ 6
- 0
BO/Utils/BillRpc/WeightBillRpc.cs View File

@ -112,5 +112,11 @@ namespace BO.Utils.BillRpc
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/WeightBillRpc/DoCheck"; const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/WeightBillRpc/DoCheck";
RpcFacade.Call<int>(method, id, ButcherAppContext.Context.UserConfig.UserName); RpcFacade.Call<int>(method, id, ButcherAppContext.Context.UserConfig.UserName);
} }
public static string GetSupplierBankAccount(long id)
{
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/WeightBillRpc/GetSupplierBankAccount";
return RpcFacade.Call<string>(method, id);
}
} }
} }

+ 123
- 98
ButcherWeight/WeightForm.Designer.cs View File

@ -30,27 +30,27 @@
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle43 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle44 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle46 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle45 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle47 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle48 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle52 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle49 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle50 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle51 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle53 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle54 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle55 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle56 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle57 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle58 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle59 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle60 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle63 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle61 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle62 = new System.Windows.Forms.DataGridViewCellStyle();
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.enableCheckBox = new System.Windows.Forms.CheckBox(); this.enableCheckBox = new System.Windows.Forms.CheckBox();
this.weightSet = new System.Windows.Forms.Button(); this.weightSet = new System.Windows.Forms.Button();
@ -162,6 +162,8 @@
this.farmerMenu = new System.Windows.Forms.ContextMenuStrip(this.components); this.farmerMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
this.farmerDelete = new System.Windows.Forms.ToolStripMenuItem(); this.farmerDelete = new System.Windows.Forms.ToolStripMenuItem();
this.viewDetailBtn = new System.Windows.Forms.Button(); this.viewDetailBtn = new System.Windows.Forms.Button();
this.label22 = new System.Windows.Forms.Label();
this.bankAccountLabel = new System.Windows.Forms.Label();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
this.panel2.SuspendLayout(); this.panel2.SuspendLayout();
this.panel3.SuspendLayout(); this.panel3.SuspendLayout();
@ -298,6 +300,8 @@
// panel2 // panel2
// //
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Controls.Add(this.bankAccountLabel);
this.panel2.Controls.Add(this.label22);
this.panel2.Controls.Add(this.discontInput); this.panel2.Controls.Add(this.discontInput);
this.panel2.Controls.Add(this.label9); this.panel2.Controls.Add(this.label9);
this.panel2.Controls.Add(this.jingjianInput); this.panel2.Controls.Add(this.jingjianInput);
@ -487,6 +491,7 @@
this.supplierSelect.Range = 10; this.supplierSelect.Range = 10;
this.supplierSelect.Size = new System.Drawing.Size(135, 30); this.supplierSelect.Size = new System.Drawing.Size(135, 30);
this.supplierSelect.TabIndex = 29; this.supplierSelect.TabIndex = 29;
this.supplierSelect.SelectedValueChanged += new System.EventHandler(this.supplierSelect_SelectedValueChanged);
// //
// testManInput // testManInput
// //
@ -764,17 +769,17 @@
this.farmerGrid.AllowUserToDeleteRows = false; this.farmerGrid.AllowUserToDeleteRows = false;
this.farmerGrid.AllowUserToResizeColumns = false; this.farmerGrid.AllowUserToResizeColumns = false;
this.farmerGrid.AllowUserToResizeRows = false; this.farmerGrid.AllowUserToResizeRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.farmerGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
dataGridViewCellStyle43.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.farmerGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle43;
this.farmerGrid.BackgroundColor = System.Drawing.Color.White; this.farmerGrid.BackgroundColor = System.Drawing.Color.White;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.farmerGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
dataGridViewCellStyle44.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle44.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle44.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle44.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle44.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle44.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle44.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.farmerGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle44;
this.farmerGrid.ColumnHeadersHeight = 24; this.farmerGrid.ColumnHeadersHeight = 24;
this.farmerGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.farmerGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.farmerGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.farmerGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@ -789,9 +794,9 @@
this.farmerGrid.MultiSelect = false; this.farmerGrid.MultiSelect = false;
this.farmerGrid.Name = "farmerGrid"; this.farmerGrid.Name = "farmerGrid";
this.farmerGrid.RowHeadersVisible = false; this.farmerGrid.RowHeadersVisible = false;
dataGridViewCellStyle4.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.farmerGrid.RowsDefaultCellStyle = dataGridViewCellStyle4;
dataGridViewCellStyle46.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle46.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.farmerGrid.RowsDefaultCellStyle = dataGridViewCellStyle46;
this.farmerGrid.RowTemplate.Height = 23; this.farmerGrid.RowTemplate.Height = 23;
this.farmerGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.farmerGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.farmerGrid.Size = new System.Drawing.Size(400, 112); this.farmerGrid.Size = new System.Drawing.Size(400, 112);
@ -845,8 +850,8 @@
// F_Weight // F_Weight
// //
this.F_Weight.DataPropertyName = "Weight"; this.F_Weight.DataPropertyName = "Weight";
dataGridViewCellStyle3.Format = "#0.######";
this.F_Weight.DefaultCellStyle = dataGridViewCellStyle3;
dataGridViewCellStyle45.Format = "#0.######";
this.F_Weight.DefaultCellStyle = dataGridViewCellStyle45;
this.F_Weight.HeaderText = "重量"; this.F_Weight.HeaderText = "重量";
this.F_Weight.Name = "F_Weight"; this.F_Weight.Name = "F_Weight";
// //
@ -877,17 +882,17 @@
this.weightGrid.AllowUserToDeleteRows = false; this.weightGrid.AllowUserToDeleteRows = false;
this.weightGrid.AllowUserToResizeColumns = false; this.weightGrid.AllowUserToResizeColumns = false;
this.weightGrid.AllowUserToResizeRows = false; this.weightGrid.AllowUserToResizeRows = false;
dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.weightGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5;
dataGridViewCellStyle47.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.weightGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle47;
this.weightGrid.BackgroundColor = System.Drawing.Color.White; this.weightGrid.BackgroundColor = System.Drawing.Color.White;
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.weightGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6;
dataGridViewCellStyle48.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle48.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle48.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle48.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle48.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle48.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle48.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.weightGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle48;
this.weightGrid.ColumnHeadersHeight = 24; this.weightGrid.ColumnHeadersHeight = 24;
this.weightGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.weightGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.weightGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.weightGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@ -902,9 +907,9 @@
this.weightGrid.MultiSelect = false; this.weightGrid.MultiSelect = false;
this.weightGrid.Name = "weightGrid"; this.weightGrid.Name = "weightGrid";
this.weightGrid.RowHeadersVisible = false; this.weightGrid.RowHeadersVisible = false;
dataGridViewCellStyle10.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.weightGrid.RowsDefaultCellStyle = dataGridViewCellStyle10;
dataGridViewCellStyle52.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle52.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.weightGrid.RowsDefaultCellStyle = dataGridViewCellStyle52;
this.weightGrid.RowTemplate.Height = 23; this.weightGrid.RowTemplate.Height = 23;
this.weightGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.weightGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.weightGrid.Size = new System.Drawing.Size(400, 90); this.weightGrid.Size = new System.Drawing.Size(400, 90);
@ -942,8 +947,8 @@
// D_MaoWeight // D_MaoWeight
// //
this.D_MaoWeight.DataPropertyName = "MaoWeight"; this.D_MaoWeight.DataPropertyName = "MaoWeight";
dataGridViewCellStyle7.Format = "#0.######";
this.D_MaoWeight.DefaultCellStyle = dataGridViewCellStyle7;
dataGridViewCellStyle49.Format = "#0.######";
this.D_MaoWeight.DefaultCellStyle = dataGridViewCellStyle49;
this.D_MaoWeight.HeaderText = "毛重"; this.D_MaoWeight.HeaderText = "毛重";
this.D_MaoWeight.Name = "D_MaoWeight"; this.D_MaoWeight.Name = "D_MaoWeight";
this.D_MaoWeight.ReadOnly = true; this.D_MaoWeight.ReadOnly = true;
@ -952,8 +957,8 @@
// D_PiWeight // D_PiWeight
// //
this.D_PiWeight.DataPropertyName = "PiWeight"; this.D_PiWeight.DataPropertyName = "PiWeight";
dataGridViewCellStyle8.Format = "#0.######";
this.D_PiWeight.DefaultCellStyle = dataGridViewCellStyle8;
dataGridViewCellStyle50.Format = "#0.######";
this.D_PiWeight.DefaultCellStyle = dataGridViewCellStyle50;
this.D_PiWeight.HeaderText = "皮重"; this.D_PiWeight.HeaderText = "皮重";
this.D_PiWeight.Name = "D_PiWeight"; this.D_PiWeight.Name = "D_PiWeight";
this.D_PiWeight.ReadOnly = true; this.D_PiWeight.ReadOnly = true;
@ -962,8 +967,8 @@
// D_Weight // D_Weight
// //
this.D_Weight.DataPropertyName = "Weight"; this.D_Weight.DataPropertyName = "Weight";
dataGridViewCellStyle9.Format = "#0.######";
this.D_Weight.DefaultCellStyle = dataGridViewCellStyle9;
dataGridViewCellStyle51.Format = "#0.######";
this.D_Weight.DefaultCellStyle = dataGridViewCellStyle51;
this.D_Weight.HeaderText = "重量"; this.D_Weight.HeaderText = "重量";
this.D_Weight.Name = "D_Weight"; this.D_Weight.Name = "D_Weight";
this.D_Weight.ReadOnly = true; this.D_Weight.ReadOnly = true;
@ -984,17 +989,17 @@
this.houseGird.AllowUserToDeleteRows = false; this.houseGird.AllowUserToDeleteRows = false;
this.houseGird.AllowUserToResizeColumns = false; this.houseGird.AllowUserToResizeColumns = false;
this.houseGird.AllowUserToResizeRows = false; this.houseGird.AllowUserToResizeRows = false;
dataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.houseGird.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11;
dataGridViewCellStyle53.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.houseGird.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle53;
this.houseGird.BackgroundColor = System.Drawing.Color.White; this.houseGird.BackgroundColor = System.Drawing.Color.White;
dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle12.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.houseGird.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle12;
dataGridViewCellStyle54.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle54.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle54.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle54.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle54.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle54.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle54.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.houseGird.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle54;
this.houseGird.ColumnHeadersHeight = 24; this.houseGird.ColumnHeadersHeight = 24;
this.houseGird.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.houseGird.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.houseGird.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.houseGird.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@ -1008,9 +1013,9 @@
this.houseGird.MultiSelect = false; this.houseGird.MultiSelect = false;
this.houseGird.Name = "houseGird"; this.houseGird.Name = "houseGird";
this.houseGird.RowHeadersVisible = false; this.houseGird.RowHeadersVisible = false;
dataGridViewCellStyle13.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle13.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.houseGird.RowsDefaultCellStyle = dataGridViewCellStyle13;
dataGridViewCellStyle55.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle55.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.houseGird.RowsDefaultCellStyle = dataGridViewCellStyle55;
this.houseGird.RowTemplate.Height = 23; this.houseGird.RowTemplate.Height = 23;
this.houseGird.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.houseGird.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.houseGird.Size = new System.Drawing.Size(400, 90); this.houseGird.Size = new System.Drawing.Size(400, 90);
@ -1066,17 +1071,17 @@
this.abnormalGrid.AllowUserToDeleteRows = false; this.abnormalGrid.AllowUserToDeleteRows = false;
this.abnormalGrid.AllowUserToResizeColumns = false; this.abnormalGrid.AllowUserToResizeColumns = false;
this.abnormalGrid.AllowUserToResizeRows = false; this.abnormalGrid.AllowUserToResizeRows = false;
dataGridViewCellStyle14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.abnormalGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle14;
dataGridViewCellStyle56.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.abnormalGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle56;
this.abnormalGrid.BackgroundColor = System.Drawing.Color.White; this.abnormalGrid.BackgroundColor = System.Drawing.Color.White;
dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle15.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle15.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle15.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle15.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle15.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.abnormalGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle15;
dataGridViewCellStyle57.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle57.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle57.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle57.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle57.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle57.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle57.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.abnormalGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle57;
this.abnormalGrid.ColumnHeadersHeight = 24; this.abnormalGrid.ColumnHeadersHeight = 24;
this.abnormalGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.abnormalGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.abnormalGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.abnormalGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@ -1091,9 +1096,9 @@
this.abnormalGrid.MultiSelect = false; this.abnormalGrid.MultiSelect = false;
this.abnormalGrid.Name = "abnormalGrid"; this.abnormalGrid.Name = "abnormalGrid";
this.abnormalGrid.RowHeadersVisible = false; this.abnormalGrid.RowHeadersVisible = false;
dataGridViewCellStyle16.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle16.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.abnormalGrid.RowsDefaultCellStyle = dataGridViewCellStyle16;
dataGridViewCellStyle58.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle58.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.abnormalGrid.RowsDefaultCellStyle = dataGridViewCellStyle58;
this.abnormalGrid.RowTemplate.Height = 23; this.abnormalGrid.RowTemplate.Height = 23;
this.abnormalGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.abnormalGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.abnormalGrid.Size = new System.Drawing.Size(400, 237); this.abnormalGrid.Size = new System.Drawing.Size(400, 237);
@ -1155,17 +1160,17 @@
this.billGrid.AllowUserToDeleteRows = false; this.billGrid.AllowUserToDeleteRows = false;
this.billGrid.AllowUserToResizeColumns = false; this.billGrid.AllowUserToResizeColumns = false;
this.billGrid.AllowUserToResizeRows = false; this.billGrid.AllowUserToResizeRows = false;
dataGridViewCellStyle17.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.billGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle17;
dataGridViewCellStyle59.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.billGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle59;
this.billGrid.BackgroundColor = System.Drawing.Color.White; this.billGrid.BackgroundColor = System.Drawing.Color.White;
dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle18.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle18.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle18.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle18.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle18.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle18.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.billGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle18;
dataGridViewCellStyle60.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle60.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle60.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle60.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle60.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle60.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle60.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.billGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle60;
this.billGrid.ColumnHeadersHeight = 24; this.billGrid.ColumnHeadersHeight = 24;
this.billGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.billGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.billGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.billGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@ -1187,9 +1192,9 @@
this.billGrid.Name = "billGrid"; this.billGrid.Name = "billGrid";
this.billGrid.ReadOnly = true; this.billGrid.ReadOnly = true;
this.billGrid.RowHeadersVisible = false; this.billGrid.RowHeadersVisible = false;
dataGridViewCellStyle21.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle21.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.billGrid.RowsDefaultCellStyle = dataGridViewCellStyle21;
dataGridViewCellStyle63.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle63.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.billGrid.RowsDefaultCellStyle = dataGridViewCellStyle63;
this.billGrid.RowTemplate.Height = 23; this.billGrid.RowTemplate.Height = 23;
this.billGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.billGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.billGrid.Size = new System.Drawing.Size(1250, 230); this.billGrid.Size = new System.Drawing.Size(1250, 230);
@ -1270,8 +1275,8 @@
// M_Weight // M_Weight
// //
this.M_Weight.DataPropertyName = "Weight"; this.M_Weight.DataPropertyName = "Weight";
dataGridViewCellStyle19.Format = "#0.######";
this.M_Weight.DefaultCellStyle = dataGridViewCellStyle19;
dataGridViewCellStyle61.Format = "#0.######";
this.M_Weight.DefaultCellStyle = dataGridViewCellStyle61;
this.M_Weight.HeaderText = "收购重量"; this.M_Weight.HeaderText = "收购重量";
this.M_Weight.Name = "M_Weight"; this.M_Weight.Name = "M_Weight";
this.M_Weight.ReadOnly = true; this.M_Weight.ReadOnly = true;
@ -1288,8 +1293,8 @@
// M_SanctionMoney // M_SanctionMoney
// //
this.M_SanctionMoney.DataPropertyName = "SanctionMoney"; this.M_SanctionMoney.DataPropertyName = "SanctionMoney";
dataGridViewCellStyle20.Format = "#0.######";
this.M_SanctionMoney.DefaultCellStyle = dataGridViewCellStyle20;
dataGridViewCellStyle62.Format = "#0.######";
this.M_SanctionMoney.DefaultCellStyle = dataGridViewCellStyle62;
this.M_SanctionMoney.HeaderText = "异常明细"; this.M_SanctionMoney.HeaderText = "异常明细";
this.M_SanctionMoney.Name = "M_SanctionMoney"; this.M_SanctionMoney.Name = "M_SanctionMoney";
this.M_SanctionMoney.ReadOnly = true; this.M_SanctionMoney.ReadOnly = true;
@ -1437,6 +1442,24 @@
this.viewDetailBtn.UseVisualStyleBackColor = true; this.viewDetailBtn.UseVisualStyleBackColor = true;
this.viewDetailBtn.Click += new System.EventHandler(this.viewDetailBtn_Click); this.viewDetailBtn.Click += new System.EventHandler(this.viewDetailBtn_Click);
// //
// label22
//
this.label22.AutoSize = true;
this.label22.Font = new System.Drawing.Font("宋体", 14F);
this.label22.Location = new System.Drawing.Point(501, 92);
this.label22.Name = "label22";
this.label22.Size = new System.Drawing.Size(85, 19);
this.label22.TabIndex = 42;
this.label22.Text = "银行卡号";
//
// bankAccountLabel
//
this.bankAccountLabel.Font = new System.Drawing.Font("宋体", 14F);
this.bankAccountLabel.Location = new System.Drawing.Point(501, 129);
this.bankAccountLabel.Name = "bankAccountLabel";
this.bankAccountLabel.Size = new System.Drawing.Size(233, 23);
this.bankAccountLabel.TabIndex = 43;
//
// WeightForm // WeightForm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@ -1597,5 +1620,7 @@
private System.Windows.Forms.DataGridViewTextBoxColumn M_HouseNames; private System.Windows.Forms.DataGridViewTextBoxColumn M_HouseNames;
private System.Windows.Forms.DataGridViewTextBoxColumn M_SanctionMoney; private System.Windows.Forms.DataGridViewTextBoxColumn M_SanctionMoney;
private System.Windows.Forms.DataGridViewTextBoxColumn M_Remark; private System.Windows.Forms.DataGridViewTextBoxColumn M_Remark;
private System.Windows.Forms.Label bankAccountLabel;
private System.Windows.Forms.Label label22;
} }
} }

+ 16
- 2
ButcherWeight/WeightForm.cs View File

@ -253,6 +253,7 @@ namespace ButcherWeight
Dmo.WeighTime = weightTimeSelect.Date; Dmo.WeighTime = weightTimeSelect.Date;
Dmo.Supplier_ID = supplierSelect.LongValue; Dmo.Supplier_ID = supplierSelect.LongValue;
Dmo.Supplier_Name = supplierSelect.DisplayValue; Dmo.Supplier_Name = supplierSelect.DisplayValue;
Dmo.BankAccount = bankAccountLabel.Text;
Dmo.Zone_ID = zoneSelect.LongValue; Dmo.Zone_ID = zoneSelect.LongValue;
Dmo.Zone_Name = zoneSelect.DisplayValue; Dmo.Zone_Name = zoneSelect.DisplayValue;
Dmo.PurchaseType_ID = null; Dmo.PurchaseType_ID = null;
@ -346,6 +347,9 @@ namespace ButcherWeight
if (Dmo.Supplier_ID.HasValue) if (Dmo.Supplier_ID.HasValue)
supplierSelect.Fill(Dmo.Supplier_Name, Dmo.Supplier_ID.ToString()); supplierSelect.Fill(Dmo.Supplier_Name, Dmo.Supplier_ID.ToString());
if (!string.IsNullOrEmpty(Dmo.BankAccount))
bankAccountLabel.Text = Dmo.BankAccount;
if (Dmo.Zone_ID.HasValue) if (Dmo.Zone_ID.HasValue)
zoneSelect.Fill(Dmo.Zone_Name, Dmo.Zone_ID.ToString()); zoneSelect.Fill(Dmo.Zone_Name, Dmo.Zone_ID.ToString());
@ -410,6 +414,7 @@ namespace ButcherWeight
liveVarietiesSelect.Clear(); liveVarietiesSelect.Clear();
hogGradeSelect.Clear(); hogGradeSelect.Clear();
penWeightInput.Text = null; penWeightInput.Text = null;
bankAccountLabel.Text = null;
penPriceInput.Text = null; penPriceInput.Text = null;
penMoneyInput.Text = null; penMoneyInput.Text = null;
jingjianInput.Text = null; jingjianInput.Text = null;
@ -528,7 +533,7 @@ namespace ButcherWeight
{ {
//得到单价 //得到单价
decimal money = 0; decimal money = 0;
decimal tryOut=0;
decimal tryOut = 0;
if (!string.IsNullOrEmpty(penMoneyInput.Text) && decimal.TryParse(penMoneyInput.Text, out tryOut)) if (!string.IsNullOrEmpty(penMoneyInput.Text) && decimal.TryParse(penMoneyInput.Text, out tryOut))
money += tryOut; money += tryOut;
if (!string.IsNullOrEmpty(jingjianInput.Text) && decimal.TryParse(jingjianInput.Text, out tryOut)) if (!string.IsNullOrEmpty(jingjianInput.Text) && decimal.TryParse(jingjianInput.Text, out tryOut))
@ -541,7 +546,7 @@ namespace ButcherWeight
if (weight == 0) if (weight == 0)
penPriceInput.Text = "0"; penPriceInput.Text = "0";
else else
penPriceInput.Text = decimal.Round((money / weight),2).ToString();
penPriceInput.Text = decimal.Round((money / weight), 2).ToString();
} }
private void printBtn_Click(object sender, EventArgs e) private void printBtn_Click(object sender, EventArgs e)
@ -569,5 +574,14 @@ namespace ButcherWeight
billGrid.Refresh(); billGrid.Refresh();
} }
} }
private void supplierSelect_SelectedValueChanged(object sender, EventArgs e)
{
if (supplierSelect.LongValue == null)
bankAccountLabel.Text = string.Empty;
else
bankAccountLabel.Text = WeightBillRpc.GetSupplierBankAccount(supplierSelect.LongValue.Value);
bankAccountLabel.Refresh();
}
} }
} }

Loading…
Cancel
Save