Browse Source

过磅单加日期查询条件。

master
yibo 8 years ago
parent
commit
d5e241ebb4
3 changed files with 155 additions and 124 deletions
  1. +4
    -4
      BO/Utils/BillRpc/WeightBillRpc.cs
  2. +148
    -118
      ButcherWeight/WeightForm.Designer.cs
  3. +3
    -2
      ButcherWeight/WeightForm.cs

+ 4
- 4
BO/Utils/BillRpc/WeightBillRpc.cs View File

@ -13,10 +13,10 @@ namespace BO.Utils.BillRpc
public static class WeightBillRpc public static class WeightBillRpc
{ {
static JavaScriptSerializer serializer = new JavaScriptSerializer(); static JavaScriptSerializer serializer = new JavaScriptSerializer();
public static List<WeightBillList> GetWeightBillList(long? carID, long? supplierID)
public static List<WeightBillList> GetWeightBillList(long? carID, long? supplierID,DateTime date)
{ {
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/WeightBillRpc/GetWeightBillList"; const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/WeightBillRpc/GetWeightBillList";
var obj = RpcFacade.Call<string>(method, DateTime.Today, carID, supplierID);
var obj = RpcFacade.Call<string>(method, date, carID, supplierID);
return serializer.Deserialize<List<WeightBillList>>(obj); return serializer.Deserialize<List<WeightBillList>>(obj);
} }
@ -92,10 +92,10 @@ namespace BO.Utils.BillRpc
return serializer.Deserialize<List<CTuple<long, long>>>(json); return serializer.Deserialize<List<CTuple<long, long>>>(json);
} }
public static List<CTuple<long, long?, decimal?, string>> SyncBillB3IdsAndSanctionMoney()
public static List<CTuple<long, long?, decimal?, string>> SyncBillB3IdsAndSanctionMoney(DateTime date)
{ {
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/WeightBillRpc/SyncBillB3IdsAndSanctionMoney"; const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/WeightBillRpc/SyncBillB3IdsAndSanctionMoney";
var json = RpcFacade.Call<string>(method, DateTime.Today);
var json = RpcFacade.Call<string>(method, date);
return serializer.Deserialize<List<CTuple<long, long?, decimal?, string>>>(json); return serializer.Deserialize<List<CTuple<long, long?, decimal?, string>>>(json);
} }


+ 148
- 118
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 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();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle31 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle33 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle34 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle35 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle36 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle37 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle38 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle39 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle42 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle40 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle41 = 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();
@ -62,6 +62,8 @@
this.readPiBtn = new System.Windows.Forms.Button(); this.readPiBtn = new System.Windows.Forms.Button();
this.readMaoBtn = new System.Windows.Forms.Button(); this.readMaoBtn = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel();
this.bankAccountLabel = new System.Windows.Forms.Label();
this.label22 = new System.Windows.Forms.Label();
this.discontInput = new System.Windows.Forms.TextBox(); this.discontInput = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label(); this.label9 = new System.Windows.Forms.Label();
this.jingjianInput = new System.Windows.Forms.TextBox(); this.jingjianInput = new System.Windows.Forms.TextBox();
@ -162,8 +164,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.uDatePicker1 = new BWP.WinFormControl.UDatePicker();
this.label26 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
this.panel2.SuspendLayout(); this.panel2.SuspendLayout();
this.panel3.SuspendLayout(); this.panel3.SuspendLayout();
@ -343,6 +345,24 @@
this.panel2.Size = new System.Drawing.Size(1251, 170); this.panel2.Size = new System.Drawing.Size(1251, 170);
this.panel2.TabIndex = 2; this.panel2.TabIndex = 2;
// //
// 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;
//
// 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 = "银行卡号";
//
// discontInput // discontInput
// //
this.discontInput.Font = new System.Drawing.Font("宋体", 14F); this.discontInput.Font = new System.Drawing.Font("宋体", 14F);
@ -769,17 +789,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;
dataGridViewCellStyle43.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.farmerGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle43;
dataGridViewCellStyle22.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.farmerGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle22;
this.farmerGrid.BackgroundColor = System.Drawing.Color.White; this.farmerGrid.BackgroundColor = System.Drawing.Color.White;
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;
dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle23.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle23.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle23.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle23.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle23.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle23.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.farmerGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle23;
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[] {
@ -794,9 +814,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;
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;
dataGridViewCellStyle25.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle25.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.farmerGrid.RowsDefaultCellStyle = dataGridViewCellStyle25;
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);
@ -850,8 +870,8 @@
// F_Weight // F_Weight
// //
this.F_Weight.DataPropertyName = "Weight"; this.F_Weight.DataPropertyName = "Weight";
dataGridViewCellStyle45.Format = "#0.######";
this.F_Weight.DefaultCellStyle = dataGridViewCellStyle45;
dataGridViewCellStyle24.Format = "#0.######";
this.F_Weight.DefaultCellStyle = dataGridViewCellStyle24;
this.F_Weight.HeaderText = "重量"; this.F_Weight.HeaderText = "重量";
this.F_Weight.Name = "F_Weight"; this.F_Weight.Name = "F_Weight";
// //
@ -882,17 +902,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;
dataGridViewCellStyle47.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.weightGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle47;
dataGridViewCellStyle26.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.weightGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle26;
this.weightGrid.BackgroundColor = System.Drawing.Color.White; this.weightGrid.BackgroundColor = System.Drawing.Color.White;
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;
dataGridViewCellStyle27.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle27.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle27.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle27.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle27.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle27.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle27.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.weightGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle27;
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[] {
@ -907,9 +927,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;
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;
dataGridViewCellStyle31.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle31.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.weightGrid.RowsDefaultCellStyle = dataGridViewCellStyle31;
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);
@ -947,8 +967,8 @@
// D_MaoWeight // D_MaoWeight
// //
this.D_MaoWeight.DataPropertyName = "MaoWeight"; this.D_MaoWeight.DataPropertyName = "MaoWeight";
dataGridViewCellStyle49.Format = "#0.######";
this.D_MaoWeight.DefaultCellStyle = dataGridViewCellStyle49;
dataGridViewCellStyle28.Format = "#0.######";
this.D_MaoWeight.DefaultCellStyle = dataGridViewCellStyle28;
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;
@ -957,8 +977,8 @@
// D_PiWeight // D_PiWeight
// //
this.D_PiWeight.DataPropertyName = "PiWeight"; this.D_PiWeight.DataPropertyName = "PiWeight";
dataGridViewCellStyle50.Format = "#0.######";
this.D_PiWeight.DefaultCellStyle = dataGridViewCellStyle50;
dataGridViewCellStyle29.Format = "#0.######";
this.D_PiWeight.DefaultCellStyle = dataGridViewCellStyle29;
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;
@ -967,8 +987,8 @@
// D_Weight // D_Weight
// //
this.D_Weight.DataPropertyName = "Weight"; this.D_Weight.DataPropertyName = "Weight";
dataGridViewCellStyle51.Format = "#0.######";
this.D_Weight.DefaultCellStyle = dataGridViewCellStyle51;
dataGridViewCellStyle30.Format = "#0.######";
this.D_Weight.DefaultCellStyle = dataGridViewCellStyle30;
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;
@ -989,17 +1009,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;
dataGridViewCellStyle53.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.houseGird.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle53;
dataGridViewCellStyle32.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.houseGird.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle32;
this.houseGird.BackgroundColor = System.Drawing.Color.White; this.houseGird.BackgroundColor = System.Drawing.Color.White;
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;
dataGridViewCellStyle33.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle33.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle33.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle33.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle33.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle33.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle33.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.houseGird.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle33;
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[] {
@ -1013,9 +1033,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;
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;
dataGridViewCellStyle34.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle34.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.houseGird.RowsDefaultCellStyle = dataGridViewCellStyle34;
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);
@ -1071,17 +1091,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;
dataGridViewCellStyle56.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.abnormalGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle56;
dataGridViewCellStyle35.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.abnormalGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle35;
this.abnormalGrid.BackgroundColor = System.Drawing.Color.White; this.abnormalGrid.BackgroundColor = System.Drawing.Color.White;
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;
dataGridViewCellStyle36.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle36.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle36.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle36.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle36.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle36.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle36.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.abnormalGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle36;
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[] {
@ -1096,9 +1116,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;
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;
dataGridViewCellStyle37.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle37.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.abnormalGrid.RowsDefaultCellStyle = dataGridViewCellStyle37;
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);
@ -1160,17 +1180,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;
dataGridViewCellStyle59.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.billGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle59;
dataGridViewCellStyle38.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.billGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle38;
this.billGrid.BackgroundColor = System.Drawing.Color.White; this.billGrid.BackgroundColor = System.Drawing.Color.White;
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;
dataGridViewCellStyle39.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle39.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle39.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle39.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle39.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle39.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle39.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.billGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle39;
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[] {
@ -1192,9 +1212,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;
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;
dataGridViewCellStyle42.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle42.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.billGrid.RowsDefaultCellStyle = dataGridViewCellStyle42;
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);
@ -1275,8 +1295,8 @@
// M_Weight // M_Weight
// //
this.M_Weight.DataPropertyName = "Weight"; this.M_Weight.DataPropertyName = "Weight";
dataGridViewCellStyle61.Format = "#0.######";
this.M_Weight.DefaultCellStyle = dataGridViewCellStyle61;
dataGridViewCellStyle40.Format = "#0.######";
this.M_Weight.DefaultCellStyle = dataGridViewCellStyle40;
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;
@ -1293,8 +1313,8 @@
// M_SanctionMoney // M_SanctionMoney
// //
this.M_SanctionMoney.DataPropertyName = "SanctionMoney"; this.M_SanctionMoney.DataPropertyName = "SanctionMoney";
dataGridViewCellStyle62.Format = "#0.######";
this.M_SanctionMoney.DefaultCellStyle = dataGridViewCellStyle62;
dataGridViewCellStyle41.Format = "#0.######";
this.M_SanctionMoney.DefaultCellStyle = dataGridViewCellStyle41;
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;
@ -1383,7 +1403,7 @@
// queryBtn // queryBtn
// //
this.queryBtn.Font = new System.Drawing.Font("宋体", 13F); this.queryBtn.Font = new System.Drawing.Font("宋体", 13F);
this.queryBtn.Location = new System.Drawing.Point(437, 557);
this.queryBtn.Location = new System.Drawing.Point(711, 559);
this.queryBtn.Name = "queryBtn"; this.queryBtn.Name = "queryBtn";
this.queryBtn.Size = new System.Drawing.Size(80, 35); this.queryBtn.Size = new System.Drawing.Size(80, 35);
this.queryBtn.TabIndex = 43; this.queryBtn.TabIndex = 43;
@ -1442,29 +1462,37 @@
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;
// uDatePicker1
//
this.uDatePicker1.BackColor = System.Drawing.Color.White;
this.uDatePicker1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.uDatePicker1.Date = new System.DateTime(2017, 9, 5, 0, 0, 0, 0);
this.uDatePicker1.Font = new System.Drawing.Font("宋体", 15F);
this.uDatePicker1.Location = new System.Drawing.Point(539, 561);
this.uDatePicker1.Name = "uDatePicker1";
this.uDatePicker1.Size = new System.Drawing.Size(150, 30);
this.uDatePicker1.TabIndex = 46;
this.uDatePicker1.Text = "2017/09/05";
this.uDatePicker1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.uDatePicker1.Type = BWP.WinFormControl.DateTimeType.Date;
//
// label26
//
this.label26.AutoSize = true;
this.label26.Font = new System.Drawing.Font("宋体", 15F);
this.label26.Location = new System.Drawing.Point(431, 566);
this.label26.Name = "label26";
this.label26.Size = new System.Drawing.Size(109, 20);
this.label26.TabIndex = 45;
this.label26.Text = "宰杀日期:";
// //
// WeightForm // WeightForm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1276, 831); this.ClientSize = new System.Drawing.Size(1276, 831);
this.Controls.Add(this.uDatePicker1);
this.Controls.Add(this.label26);
this.Controls.Add(this.viewDetailBtn); this.Controls.Add(this.viewDetailBtn);
this.Controls.Add(this.queryBtn); this.Controls.Add(this.queryBtn);
this.Controls.Add(this.qSupplierSelect); this.Controls.Add(this.qSupplierSelect);
@ -1622,5 +1650,7 @@
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 bankAccountLabel;
private System.Windows.Forms.Label label22; private System.Windows.Forms.Label label22;
private BWP.WinFormControl.UDatePicker uDatePicker1;
private System.Windows.Forms.Label label26;
} }
} }

+ 3
- 2
ButcherWeight/WeightForm.cs View File

@ -43,6 +43,7 @@ namespace ButcherWeight
public WeightForm() public WeightForm()
{ {
InitializeComponent(); InitializeComponent();
uDatePicker1.Date = DateTime.Today;
supplierSelect.Init("BaseInfoRpc/GetSupplierList"); supplierSelect.Init("BaseInfoRpc/GetSupplierList");
purchaseTypeSelect.Init("BaseInfoRpc/GetPurchaseTypeList"); purchaseTypeSelect.Init("BaseInfoRpc/GetPurchaseTypeList");
carSelect.Init("BaseInfoRpc/GetCarList"); carSelect.Init("BaseInfoRpc/GetCarList");
@ -86,7 +87,7 @@ namespace ButcherWeight
{ {
Thread.Sleep(5000); Thread.Sleep(5000);
bool changed = false; bool changed = false;
var result = WeightBillRpc.SyncBillB3IdsAndSanctionMoney();
var result = WeightBillRpc.SyncBillB3IdsAndSanctionMoney(uDatePicker1.Date.Value);
foreach (var item in result) foreach (var item in result)
{ {
var first = dmoList.FirstOrDefault(x => x.ID == item.Item1); var first = dmoList.FirstOrDefault(x => x.ID == item.Item1);
@ -457,7 +458,7 @@ namespace ButcherWeight
private void queryBtn_Click(object sender, EventArgs e) private void queryBtn_Click(object sender, EventArgs e)
{ {
dmoList = WeightBillRpc.GetWeightBillList(qCarSelect.LongValue, qSupplierSelect.LongValue);
dmoList = WeightBillRpc.GetWeightBillList(qCarSelect.LongValue, qSupplierSelect.LongValue,uDatePicker1.Date.Value);
BindWeightBill(); BindWeightBill();
} }


Loading…
Cancel
Save