Browse Source

修改。

master
yibo 8 years ago
parent
commit
71abb11dc4
14 changed files with 420 additions and 341 deletions
  1. +2
    -0
      BO/BO/Bill/OrderDetail/HurryRecord.cs
  2. +11
    -2
      BO/Utils/BillRpc/OrderDetailRpc.cs
  3. +1
    -0
      BWP.WinFormControl/BWP.WinFormControl.csproj
  4. +43
    -0
      BWP.WinFormControl/PrintAPI.cs
  5. +32
    -0
      QualityAndOrder/HurryRecordPrint.cs
  6. +17
    -10
      QualityAndOrder/HurryRecordView.cs
  7. +1
    -0
      QualityAndOrder/QualityAndOrder.csproj
  8. +214
    -200
      QualityAndOrder/QualityOrderForm.Designer.cs
  9. +33
    -33
      QualityAndOrder/QualityOrderForm.resx
  10. +3
    -1
      QualityAndOrder/QualityOrderFormForTab3.cs
  11. +1
    -1
      WeighAndGrading/GradeFrom.cs
  12. +0
    -93
      WeighAndGrading/PrintAPI.cs
  13. +1
    -1
      WeighAndGrading/WeighAndGrading.csproj
  14. +61
    -0
      WeighAndGrading/WeightGradePrint.cs

+ 2
- 0
BO/BO/Bill/OrderDetail/HurryRecord.cs View File

@ -12,6 +12,8 @@ namespace BO.BO.Bill
public long FromOrderDetail_ID { get; set; }
public string Supplier_Name { get; set; }
public long? B3WeighBill_ID { get; set; }
public int? Order { get; set; }


+ 11
- 2
BO/Utils/BillRpc/OrderDetailRpc.cs View File

@ -87,14 +87,23 @@ namespace BO.Utils.BillRpc
RpcFacade.Call<int>(method, id);
}
public static int InsertHurryRecord(OrderDetail entity)
public static HurryRecord InsertHurryRecord(OrderDetail entity)
{
var detail = new HurryRecord();
detail.HurryNumber = entity.HurryNumber;
detail.Time = DateTime.Now;
detail.FromOrderDetail_ID = entity.ID;
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/OrderDetailRpc/InsertHurryRecord";
return RpcFacade.Call<int>(method, serializer.Serialize(detail));
detail.ID= RpcFacade.Call<long>(method, serializer.Serialize(detail));
detail.Supplier_Name = entity.Supplier_Name;
detail.B3WeighBill_ID = entity.B3WeighBill_ID;
return detail;
}
public static int GetHurryRecordNumber(long fromOrderID)
{
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/OrderDetailRpc/GetHurryRecordNumber";
return RpcFacade.Call<int>(method, fromOrderID);
}
}
}

+ 1
- 0
BWP.WinFormControl/BWP.WinFormControl.csproj View File

@ -55,6 +55,7 @@
</Compile>
<Compile Include="ComboBoxHelper.cs" />
<Compile Include="ComponentUtil.cs" />
<Compile Include="PrintAPI.cs" />
<Compile Include="UMessageBox.cs">
<SubType>Form</SubType>
</Compile>


+ 43
- 0
BWP.WinFormControl/PrintAPI.cs View File

@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace BWP.WinFormControl
{
public static class PrintAPI
{
[DllImport("Winpplb.dll")]
public static extern int B_GetUSBBufferLen();
[DllImport("Winpplb.dll")]
public static extern int B_EnumUSB(byte[] buf);
[DllImport("Winpplb.dll")]
public static extern int B_CreateUSBPort(int nPort);
[DllImport("Winpplb.dll")]
public static extern int B_Set_Direction(char direction);
[DllImport("Winpplb.dll")]
public static extern int B_Prn_Text_TrueType(int x, int y, int FSize, string FType,
int Fspin, int FWeight, int FItalic, int FUnline, int FStrikeOut, string id_name,
string data);
[DllImport("Winpplb.dll")]
public static extern int B_Prn_Barcode(int x, int y, int ori, string type, int narrow,
int width, int height, char human, string data);
[DllImport("Winpplb.dll")]
public static extern int B_Bar2d_QR(int x, int y, int model, int scl, char error,
char dinput, int c, int d, int p, string data);
[DllImport("Winpplb.dll")]
public static extern int B_Print_Out(int labset);
[DllImport("Winpplb.dll")]
public static extern void B_ClosePrn();
}
}

+ 32
- 0
QualityAndOrder/HurryRecordPrint.cs View File

@ -0,0 +1,32 @@
using BO.BO.Bill;
using BWP.WinFormControl;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QualityAndOrder
{
public static class HurryRecordPrint
{
public static void Print(HurryRecord entity)
{
PrintAPI.B_GetUSBBufferLen();
PrintAPI.B_EnumUSB(new byte[128]);
PrintAPI.B_CreateUSBPort(1);
PrintAPI.B_Prn_Text_TrueType(250, 15, 38, "宋体", 1, 700, 0, 0, 0, "C1", "急宰扫码");
PrintAPI.B_Bar2d_QR(45, 75, 2, 13, 'M', 'A', 0, 0, 0, entity.ID.ToString());
PrintAPI.B_Prn_Text_TrueType(335, 90, 32, "宋体", 1, 600, 0, 0, 0, "C2", string.Format("磅单号:{0}", entity.B3WeighBill_ID));
PrintAPI.B_Prn_Text_TrueType(335, 150, 32, "宋体", 1, 600, 0, 0, 0, "C3", string.Format("供应商:{0}", entity.Supplier_Name));
PrintAPI.B_Prn_Text_TrueType(335, 210, 32, "宋体", 1, 600, 0, 0, 0, "C4", string.Format("头 数:{0}", entity.HurryNumber));
PrintAPI.B_Prn_Text_TrueType(335, 270, 32, "宋体", 1, 600, 0, 0, 0, "C5", string.Format("时 间:{0}", entity.Time.ToString("MM/dd HH:mm")));
PrintAPI.B_Set_Direction('B');
PrintAPI.B_Print_Out(1);
PrintAPI.B_ClosePrn();
}
}
}

+ 17
- 10
QualityAndOrder/HurryRecordView.cs View File

@ -37,18 +37,25 @@ namespace QualityAndOrder
{
if (e.RowIndex == -1)
return;
if (e.ColumnIndex != recordGridView.ColumnCount - 1)
if (e.ColumnIndex <= recordGridView.ColumnCount - 2)
return;
var entity = recordGridView.CurrentRow.DataBoundItem as HurryRecord;
OrderDetailRpc.DeleteHurryRecord(entity.ID);
_result += entity.HurryNumber;
mRecords.Remove(entity);
if (!changed)
changed = true;
recordGridView.DataSource = null;
if (mRecords.Any())
recordGridView.DataSource = mRecords;
recordGridView.Refresh();
if (e.ColumnIndex == recordGridView.ColumnCount - 2)
{
OrderDetailRpc.DeleteHurryRecord(entity.ID);
_result += entity.HurryNumber;
mRecords.Remove(entity);
if (!changed)
changed = true;
recordGridView.DataSource = null;
if (mRecords.Any())
recordGridView.DataSource = mRecords;
recordGridView.Refresh();
}
else
{
HurryRecordPrint.Print(entity);
}
}
private int _result = 0;


+ 1
- 0
QualityAndOrder/QualityAndOrder.csproj View File

@ -45,6 +45,7 @@
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<Compile Include="HurryRecordPrint.cs" />
<Compile Include="HurryRecordView.cs">
<SubType>Form</SubType>
</Compile>


+ 214
- 200
QualityAndOrder/QualityOrderForm.Designer.cs View File

@ -28,27 +28,27 @@
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = 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 dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = 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 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 dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = 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 dataGridViewCellStyle31 = 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 dataGridViewCellStyle38 = 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 dataGridViewCellStyle39 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle40 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle42 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle41 = 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 dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle();
this.uTabControl1 = new BWP.WinFormControl.UTabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.vScrollBar1 = new System.Windows.Forms.VScrollBar();
@ -117,6 +117,16 @@
this.P_OKBtn = new System.Windows.Forms.DataGridViewButtonColumn();
this.P_Hidden = new System.Windows.Forms.DataGridViewButtonColumn();
this.orderGrid = new BWP.WinFormControl.UDataGridView();
this.O_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.O_IsHurryButcher = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.O_WeightBill_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.O_SecondarySplit = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.O_Order = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.O_B3WeighBill_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.O_Supplier_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.O_LiveColonyHouse_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.O_PlanNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.O_OKBtn = new System.Windows.Forms.DataGridViewButtonColumn();
this.tab2SyncBtn = new System.Windows.Forms.Button();
this.tab2DateSelect = new BWP.WinFormControl.UDatePicker();
this.label4 = new System.Windows.Forms.Label();
@ -140,16 +150,7 @@
this.H_HurryNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewButtonColumn1 = new System.Windows.Forms.DataGridViewButtonColumn();
this.H_View = new System.Windows.Forms.DataGridViewButtonColumn();
this.O_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.O_IsHurryButcher = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.O_WeightBill_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.O_SecondarySplit = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.O_Order = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.O_B3WeighBill_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.O_Supplier_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.O_LiveColonyHouse_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.O_PlanNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.O_OKBtn = new System.Windows.Forms.DataGridViewButtonColumn();
this.tb3CloseBtn = new System.Windows.Forms.Button();
this.uTabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.panel1.SuspendLayout();
@ -254,17 +255,17 @@
this.sanctionGrid.AllowUserToDeleteRows = false;
this.sanctionGrid.AllowUserToResizeColumns = false;
this.sanctionGrid.AllowUserToResizeRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.sanctionGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
dataGridViewCellStyle27.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.sanctionGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle27;
this.sanctionGrid.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.sanctionGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
dataGridViewCellStyle28.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle28.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle28.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle28.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle28.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle28.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle28.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.sanctionGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle28;
this.sanctionGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.sanctionGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.S_AbnormalItem_Name1,
@ -285,9 +286,9 @@
this.sanctionGrid.Name = "sanctionGrid";
this.sanctionGrid.ReadOnly = true;
this.sanctionGrid.RowHeadersVisible = false;
dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.sanctionGrid.RowsDefaultCellStyle = dataGridViewCellStyle3;
dataGridViewCellStyle29.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle29.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
this.sanctionGrid.RowsDefaultCellStyle = dataGridViewCellStyle29;
this.sanctionGrid.RowTemplate.DefaultCellStyle.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.sanctionGrid.RowTemplate.Height = 50;
this.sanctionGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
@ -496,17 +497,17 @@
this.weightBillGrid.AllowUserToDeleteRows = false;
this.weightBillGrid.AllowUserToResizeColumns = false;
this.weightBillGrid.AllowUserToResizeRows = false;
dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.weightBillGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4;
dataGridViewCellStyle30.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.weightBillGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle30;
this.weightBillGrid.BackgroundColor = System.Drawing.Color.White;
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.weightBillGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
dataGridViewCellStyle31.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle31.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle31.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle31.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle31.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle31.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle31.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.weightBillGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle31;
this.weightBillGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.weightBillGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.W_ID,
@ -521,11 +522,11 @@
this.weightBillGrid.Name = "weightBillGrid";
this.weightBillGrid.ReadOnly = true;
this.weightBillGrid.RowHeadersVisible = false;
dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle6.ForeColor = System.Drawing.Color.Black;
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.Color.Black;
this.weightBillGrid.RowsDefaultCellStyle = dataGridViewCellStyle6;
dataGridViewCellStyle32.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle32.ForeColor = System.Drawing.Color.Black;
dataGridViewCellStyle32.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
dataGridViewCellStyle32.SelectionForeColor = System.Drawing.Color.Black;
this.weightBillGrid.RowsDefaultCellStyle = dataGridViewCellStyle32;
this.weightBillGrid.RowTemplate.Height = 40;
this.weightBillGrid.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.weightBillGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
@ -801,17 +802,17 @@
this.preOrderGrid.AllowUserToDeleteRows = false;
this.preOrderGrid.AllowUserToResizeColumns = false;
this.preOrderGrid.AllowUserToResizeRows = false;
dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.preOrderGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle7;
dataGridViewCellStyle33.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.preOrderGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle33;
this.preOrderGrid.BackgroundColor = System.Drawing.Color.White;
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle8.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.preOrderGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8;
dataGridViewCellStyle34.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle34.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle34.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle34.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle34.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle34.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle34.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.preOrderGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle34;
this.preOrderGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.preOrderGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.P_WeightBill_ID,
@ -830,11 +831,11 @@
this.preOrderGrid.Name = "preOrderGrid";
this.preOrderGrid.ReadOnly = true;
this.preOrderGrid.RowHeadersVisible = false;
dataGridViewCellStyle12.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle12.ForeColor = System.Drawing.Color.Black;
dataGridViewCellStyle12.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
dataGridViewCellStyle12.SelectionForeColor = System.Drawing.Color.Black;
this.preOrderGrid.RowsDefaultCellStyle = dataGridViewCellStyle12;
dataGridViewCellStyle38.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle38.ForeColor = System.Drawing.Color.Black;
dataGridViewCellStyle38.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
dataGridViewCellStyle38.SelectionForeColor = System.Drawing.Color.Black;
this.preOrderGrid.RowsDefaultCellStyle = dataGridViewCellStyle38;
this.preOrderGrid.RowTemplate.Height = 60;
this.preOrderGrid.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.preOrderGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
@ -910,9 +911,9 @@
// P_WeighTime
//
this.P_WeighTime.DataPropertyName = "WeighTime";
dataGridViewCellStyle9.Format = "MM/dd HH:mm";
dataGridViewCellStyle9.NullValue = null;
this.P_WeighTime.DefaultCellStyle = dataGridViewCellStyle9;
dataGridViewCellStyle35.Format = "MM/dd HH:mm";
dataGridViewCellStyle35.NullValue = null;
this.P_WeighTime.DefaultCellStyle = dataGridViewCellStyle35;
this.P_WeighTime.HeaderText = "过磅时间";
this.P_WeighTime.Name = "P_WeighTime";
this.P_WeighTime.ReadOnly = true;
@ -920,9 +921,9 @@
//
// P_OKBtn
//
dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle10.Padding = new System.Windows.Forms.Padding(7, 10, 7, 10);
this.P_OKBtn.DefaultCellStyle = dataGridViewCellStyle10;
dataGridViewCellStyle36.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle36.Padding = new System.Windows.Forms.Padding(7, 10, 7, 10);
this.P_OKBtn.DefaultCellStyle = dataGridViewCellStyle36;
this.P_OKBtn.HeaderText = "排宰";
this.P_OKBtn.Name = "P_OKBtn";
this.P_OKBtn.ReadOnly = true;
@ -934,9 +935,9 @@
//
// P_Hidden
//
dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle11.Padding = new System.Windows.Forms.Padding(7, 10, 7, 10);
this.P_Hidden.DefaultCellStyle = dataGridViewCellStyle11;
dataGridViewCellStyle37.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle37.Padding = new System.Windows.Forms.Padding(7, 10, 7, 10);
this.P_Hidden.DefaultCellStyle = dataGridViewCellStyle37;
this.P_Hidden.HeaderText = "隐藏";
this.P_Hidden.Name = "P_Hidden";
this.P_Hidden.ReadOnly = true;
@ -949,17 +950,17 @@
this.orderGrid.AllowUserToDeleteRows = false;
this.orderGrid.AllowUserToResizeColumns = false;
this.orderGrid.AllowUserToResizeRows = false;
dataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.orderGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle13;
dataGridViewCellStyle39.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.orderGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle39;
this.orderGrid.BackgroundColor = System.Drawing.Color.White;
dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle14.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle14.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle14.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle14.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle14.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.orderGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle14;
dataGridViewCellStyle40.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle40.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle40.Font = new System.Drawing.Font("宋体", 12F);
dataGridViewCellStyle40.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle40.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle40.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle40.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.orderGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle40;
this.orderGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.orderGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.O_ID,
@ -977,11 +978,11 @@
this.orderGrid.Name = "orderGrid";
this.orderGrid.ReadOnly = true;
this.orderGrid.RowHeadersVisible = false;
dataGridViewCellStyle16.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle16.ForeColor = System.Drawing.Color.Black;
dataGridViewCellStyle16.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
dataGridViewCellStyle16.SelectionForeColor = System.Drawing.Color.Black;
this.orderGrid.RowsDefaultCellStyle = dataGridViewCellStyle16;
dataGridViewCellStyle42.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle42.ForeColor = System.Drawing.Color.Black;
dataGridViewCellStyle42.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
dataGridViewCellStyle42.SelectionForeColor = System.Drawing.Color.Black;
this.orderGrid.RowsDefaultCellStyle = dataGridViewCellStyle42;
this.orderGrid.RowTemplate.Height = 60;
this.orderGrid.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.orderGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
@ -990,6 +991,89 @@
this.orderGrid.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.orderGrid_CellClick);
this.orderGrid.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.orderGrid_CellContentClick);
//
// O_ID
//
this.O_ID.DataPropertyName = "ID";
this.O_ID.HeaderText = "ID";
this.O_ID.Name = "O_ID";
this.O_ID.ReadOnly = true;
this.O_ID.Visible = false;
//
// O_IsHurryButcher
//
this.O_IsHurryButcher.DataPropertyName = "IsHurryButcher";
this.O_IsHurryButcher.HeaderText = "IsHurryButcher";
this.O_IsHurryButcher.Name = "O_IsHurryButcher";
this.O_IsHurryButcher.ReadOnly = true;
this.O_IsHurryButcher.Visible = false;
//
// O_WeightBill_ID
//
this.O_WeightBill_ID.DataPropertyName = "WeightBill_ID";
this.O_WeightBill_ID.HeaderText = "WeightBill_ID";
this.O_WeightBill_ID.Name = "O_WeightBill_ID";
this.O_WeightBill_ID.ReadOnly = true;
this.O_WeightBill_ID.Visible = false;
//
// O_SecondarySplit
//
this.O_SecondarySplit.DataPropertyName = "SecondarySplit";
this.O_SecondarySplit.HeaderText = "SecondarySplit";
this.O_SecondarySplit.Name = "O_SecondarySplit";
this.O_SecondarySplit.ReadOnly = true;
this.O_SecondarySplit.Visible = false;
//
// O_Order
//
this.O_Order.DataPropertyName = "Order";
this.O_Order.HeaderText = "序号";
this.O_Order.Name = "O_Order";
this.O_Order.ReadOnly = true;
this.O_Order.Width = 70;
//
// O_B3WeighBill_ID
//
this.O_B3WeighBill_ID.DataPropertyName = "B3WeighBill_ID";
this.O_B3WeighBill_ID.HeaderText = "磅单号";
this.O_B3WeighBill_ID.Name = "O_B3WeighBill_ID";
this.O_B3WeighBill_ID.ReadOnly = true;
this.O_B3WeighBill_ID.Width = 80;
//
// O_Supplier_Name
//
this.O_Supplier_Name.DataPropertyName = "Supplier_Name";
this.O_Supplier_Name.HeaderText = "供应商";
this.O_Supplier_Name.Name = "O_Supplier_Name";
this.O_Supplier_Name.ReadOnly = true;
this.O_Supplier_Name.Width = 95;
//
// O_LiveColonyHouse_Name
//
this.O_LiveColonyHouse_Name.DataPropertyName = "LiveColonyHouse_Name";
this.O_LiveColonyHouse_Name.HeaderText = "圈舍";
this.O_LiveColonyHouse_Name.Name = "O_LiveColonyHouse_Name";
this.O_LiveColonyHouse_Name.ReadOnly = true;
//
// O_PlanNumber
//
this.O_PlanNumber.DataPropertyName = "PlanNumber";
this.O_PlanNumber.HeaderText = "头数";
this.O_PlanNumber.Name = "O_PlanNumber";
this.O_PlanNumber.ReadOnly = true;
this.O_PlanNumber.Width = 70;
//
// O_OKBtn
//
dataGridViewCellStyle41.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle41.Padding = new System.Windows.Forms.Padding(7, 10, 7, 10);
this.O_OKBtn.DefaultCellStyle = dataGridViewCellStyle41;
this.O_OKBtn.HeaderText = "确定";
this.O_OKBtn.Name = "O_OKBtn";
this.O_OKBtn.ReadOnly = true;
this.O_OKBtn.Text = "确定";
this.O_OKBtn.UseColumnTextForButtonValue = true;
this.O_OKBtn.Width = 95;
//
// tab2SyncBtn
//
this.tab2SyncBtn.Font = new System.Drawing.Font("宋体", 15F);
@ -1027,6 +1111,7 @@
//
// tabPage5
//
this.tabPage5.Controls.Add(this.tb3CloseBtn);
this.tabPage5.Controls.Add(this.vScrollBar4);
this.tabPage5.Controls.Add(this.tab3SearchBtn);
this.tabPage5.Controls.Add(this.tab3DateSelect);
@ -1118,17 +1203,17 @@
this.orderGrid3.AllowUserToDeleteRows = false;
this.orderGrid3.AllowUserToResizeColumns = false;
this.orderGrid3.AllowUserToResizeRows = false;
dataGridViewCellStyle17.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.orderGrid3.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle17;
dataGridViewCellStyle22.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.orderGrid3.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle22;
this.orderGrid3.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.orderGrid3.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle18;
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.orderGrid3.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle23;
this.orderGrid3.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.orderGrid3.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.H_ID,
@ -1147,11 +1232,11 @@
this.orderGrid3.Name = "orderGrid3";
this.orderGrid3.ReadOnly = true;
this.orderGrid3.RowHeadersVisible = false;
dataGridViewCellStyle21.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle21.ForeColor = System.Drawing.Color.Black;
dataGridViewCellStyle21.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
dataGridViewCellStyle21.SelectionForeColor = System.Drawing.Color.Black;
this.orderGrid3.RowsDefaultCellStyle = dataGridViewCellStyle21;
dataGridViewCellStyle26.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle26.ForeColor = System.Drawing.Color.Black;
dataGridViewCellStyle26.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
dataGridViewCellStyle26.SelectionForeColor = System.Drawing.Color.Black;
this.orderGrid3.RowsDefaultCellStyle = dataGridViewCellStyle26;
this.orderGrid3.RowTemplate.Height = 60;
this.orderGrid3.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.orderGrid3.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
@ -1232,9 +1317,9 @@
//
// dataGridViewButtonColumn1
//
dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle19.Padding = new System.Windows.Forms.Padding(7, 10, 7, 10);
this.dataGridViewButtonColumn1.DefaultCellStyle = dataGridViewCellStyle19;
dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle24.Padding = new System.Windows.Forms.Padding(7, 10, 7, 10);
this.dataGridViewButtonColumn1.DefaultCellStyle = dataGridViewCellStyle24;
this.dataGridViewButtonColumn1.HeaderText = "确定";
this.dataGridViewButtonColumn1.Name = "dataGridViewButtonColumn1";
this.dataGridViewButtonColumn1.ReadOnly = true;
@ -1244,9 +1329,9 @@
//
// H_View
//
dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle20.Padding = new System.Windows.Forms.Padding(7, 10, 7, 10);
this.H_View.DefaultCellStyle = dataGridViewCellStyle20;
dataGridViewCellStyle25.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle25.Padding = new System.Windows.Forms.Padding(7, 10, 7, 10);
this.H_View.DefaultCellStyle = dataGridViewCellStyle25;
this.H_View.HeaderText = "查看";
this.H_View.Name = "H_View";
this.H_View.ReadOnly = true;
@ -1254,88 +1339,16 @@
this.H_View.UseColumnTextForButtonValue = true;
this.H_View.Width = 110;
//
// O_ID
// tb3CloseBtn
//
this.O_ID.DataPropertyName = "ID";
this.O_ID.HeaderText = "ID";
this.O_ID.Name = "O_ID";
this.O_ID.ReadOnly = true;
this.O_ID.Visible = false;
//
// O_IsHurryButcher
//
this.O_IsHurryButcher.DataPropertyName = "IsHurryButcher";
this.O_IsHurryButcher.HeaderText = "IsHurryButcher";
this.O_IsHurryButcher.Name = "O_IsHurryButcher";
this.O_IsHurryButcher.ReadOnly = true;
this.O_IsHurryButcher.Visible = false;
//
// O_WeightBill_ID
//
this.O_WeightBill_ID.DataPropertyName = "WeightBill_ID";
this.O_WeightBill_ID.HeaderText = "WeightBill_ID";
this.O_WeightBill_ID.Name = "O_WeightBill_ID";
this.O_WeightBill_ID.ReadOnly = true;
this.O_WeightBill_ID.Visible = false;
//
// O_SecondarySplit
//
this.O_SecondarySplit.DataPropertyName = "SecondarySplit";
this.O_SecondarySplit.HeaderText = "SecondarySplit";
this.O_SecondarySplit.Name = "O_SecondarySplit";
this.O_SecondarySplit.ReadOnly = true;
this.O_SecondarySplit.Visible = false;
//
// O_Order
//
this.O_Order.DataPropertyName = "Order";
this.O_Order.HeaderText = "序号";
this.O_Order.Name = "O_Order";
this.O_Order.ReadOnly = true;
this.O_Order.Width = 70;
//
// O_B3WeighBill_ID
//
this.O_B3WeighBill_ID.DataPropertyName = "B3WeighBill_ID";
this.O_B3WeighBill_ID.HeaderText = "磅单号";
this.O_B3WeighBill_ID.Name = "O_B3WeighBill_ID";
this.O_B3WeighBill_ID.ReadOnly = true;
this.O_B3WeighBill_ID.Width = 80;
//
// O_Supplier_Name
//
this.O_Supplier_Name.DataPropertyName = "Supplier_Name";
this.O_Supplier_Name.HeaderText = "供应商";
this.O_Supplier_Name.Name = "O_Supplier_Name";
this.O_Supplier_Name.ReadOnly = true;
this.O_Supplier_Name.Width = 95;
//
// O_LiveColonyHouse_Name
//
this.O_LiveColonyHouse_Name.DataPropertyName = "LiveColonyHouse_Name";
this.O_LiveColonyHouse_Name.HeaderText = "圈舍";
this.O_LiveColonyHouse_Name.Name = "O_LiveColonyHouse_Name";
this.O_LiveColonyHouse_Name.ReadOnly = true;
//
// O_PlanNumber
//
this.O_PlanNumber.DataPropertyName = "PlanNumber";
this.O_PlanNumber.HeaderText = "头数";
this.O_PlanNumber.Name = "O_PlanNumber";
this.O_PlanNumber.ReadOnly = true;
this.O_PlanNumber.Width = 70;
//
// O_OKBtn
//
dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle15.Padding = new System.Windows.Forms.Padding(7, 10, 7, 10);
this.O_OKBtn.DefaultCellStyle = dataGridViewCellStyle15;
this.O_OKBtn.HeaderText = "确定";
this.O_OKBtn.Name = "O_OKBtn";
this.O_OKBtn.ReadOnly = true;
this.O_OKBtn.Text = "确定";
this.O_OKBtn.UseColumnTextForButtonValue = true;
this.O_OKBtn.Width = 95;
this.tb3CloseBtn.Font = new System.Drawing.Font("宋体", 15F);
this.tb3CloseBtn.Location = new System.Drawing.Point(1254, 9);
this.tb3CloseBtn.Name = "tb3CloseBtn";
this.tb3CloseBtn.Size = new System.Drawing.Size(94, 56);
this.tb3CloseBtn.TabIndex = 65;
this.tb3CloseBtn.Text = "关闭";
this.tb3CloseBtn.UseVisualStyleBackColor = true;
this.tb3CloseBtn.Click += new System.EventHandler(this.closeBtn_Click);
//
// QualityOrderForm
//
@ -1475,6 +1488,7 @@
private System.Windows.Forms.DataGridViewTextBoxColumn O_LiveColonyHouse_Name;
private System.Windows.Forms.DataGridViewTextBoxColumn O_PlanNumber;
private System.Windows.Forms.DataGridViewButtonColumn O_OKBtn;
private System.Windows.Forms.Button tb3CloseBtn;


+ 33
- 33
QualityAndOrder/QualityOrderForm.resx View File

@ -117,6 +117,39 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="H_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="H_WeightBill_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="H_SecondarySplit.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="H_Order.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="H_B3WeighBill_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="H_Supplier_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="H_LiveColonyHouse_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="H_PlanNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="H_HurryNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewButtonColumn1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="H_View.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="S_AbnormalItem_Name1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@ -237,37 +270,4 @@
<metadata name="O_OKBtn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="H_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="H_WeightBill_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="H_SecondarySplit.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="H_Order.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="H_B3WeighBill_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="H_Supplier_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="H_LiveColonyHouse_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="H_PlanNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="H_HurryNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewButtonColumn1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="H_View.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

+ 3
- 1
QualityAndOrder/QualityOrderFormForTab3.cs View File

@ -141,8 +141,10 @@ namespace QualityAndOrder
return;
if (lastOrder3Detail.HurryNumber > lastOrder3Detail.PlanNumber)
throw new Exception("急宰头数多余排宰头数");
lastOrder3Detail.HurryNumber = OrderDetailRpc.InsertHurryRecord(lastOrder3Detail);
var record = OrderDetailRpc.InsertHurryRecord(lastOrder3Detail);
lastOrder3Detail.HurryNumber = OrderDetailRpc.GetHurryRecordNumber(lastOrder3Detail.ID);
orderGrid3.Refresh();
HurryRecordPrint.Print(record);
}
else//查看
{


+ 1
- 1
WeighAndGrading/GradeFrom.cs View File

@ -241,7 +241,7 @@ namespace WeighAndGrading
entity.Address = "北京市北京市海淀区知春路49号";
entity.BarCode = string.Format("BWP{0}{1:00000}", DateTime.Today.ToString("yyyyMMdd"), new Random().Next(1, 1000));
entity._2DQRCode = string.Format("http://www.bwpsoft.com?code={0}", entity.BarCode);
PrintAPI.Print(entity);
WeightGradePrint.Print(entity);
}
private void configBtn_Click(object sender, EventArgs e)


+ 0
- 93
WeighAndGrading/PrintAPI.cs View File

@ -1,93 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace WeighAndGrading
{
public static class PrintAPI
{
[DllImport("Winpplb.dll")]
private static extern int B_GetUSBBufferLen();
[DllImport("Winpplb.dll")]
private static extern int B_EnumUSB(byte[] buf);
[DllImport("Winpplb.dll")]
private static extern int B_CreateUSBPort(int nPort);
[DllImport("Winpplb.dll")]
private static extern int B_Set_Direction(char direction);
[DllImport("Winpplb.dll")]
private static extern int B_Prn_Text_TrueType(int x, int y, int FSize, string FType,
int Fspin, int FWeight, int FItalic, int FUnline, int FStrikeOut, string id_name,
string data);
[DllImport("Winpplb.dll")]
private static extern int B_Prn_Barcode(int x, int y, int ori, string type, int narrow,
int width, int height, char human, string data);
[DllImport("Winpplb.dll")]
private static extern int B_Bar2d_QR(int x, int y, int model, int scl, char error,
char dinput, int c, int d, int p, string data);
[DllImport("Winpplb.dll")]
private static extern int B_Print_Out(int labset);
[DllImport("Winpplb.dll")]
private static extern void B_ClosePrn();
public static void Print(PrintEntity entity)
{
B_GetUSBBufferLen();
B_EnumUSB(new byte[128]);
B_CreateUSBPort(1);
B_Prn_Text_TrueType(110, 31, 31, "宋体", 1, 700, 0, 0, 0, "C1", entity.AccountingUnit_Name);
B_Prn_Text_TrueType(42, 75, 31, "宋体", 1, 700, 0, 0, 0, "C2", "合格证");
B_Prn_Text_TrueType(440, 75, 31, "宋体", 1, 700, 0, 0, 0, "C3", entity.Goods_Name);
B_Prn_Text_TrueType(42, 125, 27, "宋体", 1, 400, 0, 0, 0, "C4", string.Format("生产日期:{0}", entity.Date.ToString("yyyy/MM/dd")));
B_Prn_Text_TrueType(42, 165, 27, "宋体", 1, 400, 0, 0, 0, "C5", string.Format("检 验 员:{0}", entity.Checker));
B_Prn_Text_TrueType(42, 205, 27, "宋体", 1, 400, 0, 0, 0, "C6", string.Format("保 质 期:{0}", entity.StoreCondition));
B_Prn_Text_TrueType(42, 255, 23, "宋体", 1, 400, 0, 0, 0, "C7", string.Format("产地:{0} 电话:{1}", entity.Place, entity.TelNumber));
B_Prn_Text_TrueType(42, 290, 23, "宋体", 1, 400, 0, 0, 0, "C8", string.Format("地址:{0}", entity.Address));
B_Prn_Barcode(42, 330, 0, "1", 3, 22, 35, 'N', entity.BarCode);
B_Prn_Text_TrueType(175, 370, 25, "宋体", 1, 500, 0, 0, 0, "C9", entity.BarCode);
B_Bar2d_QR(430, 120, 2, 7, 'M', 'A', 0, 0, 0, entity._2DQRCode);
B_Set_Direction('B');
B_Print_Out(1);
B_ClosePrn();
}
}
public class PrintEntity
{
public string AccountingUnit_Name { get; set; }
public string Goods_Name { get; set; }
public DateTime Date { get; set; }
public string Checker { get; set; }
public string StoreCondition { get; set; }
public string Place { get; set; }
public string TelNumber { get; set; }
public string Address { get; set; }
public string BarCode { get; set; }
public string _2DQRCode { get; set; }
}
}

+ 1
- 1
WeighAndGrading/WeighAndGrading.csproj View File

@ -69,8 +69,8 @@
<Compile Include="GradeSettingFrom.Designer.cs">
<DependentUpon>GradeSettingFrom.cs</DependentUpon>
</Compile>
<Compile Include="PrintAPI.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="WeightGradePrint.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="BodyDiscontSetting.resx">


+ 61
- 0
WeighAndGrading/WeightGradePrint.cs View File

@ -0,0 +1,61 @@
using BWP.WinFormControl;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WeighAndGrading
{
public static class WeightGradePrint
{
public static void Print(PrintEntity entity)
{
PrintAPI.B_GetUSBBufferLen();
PrintAPI.B_EnumUSB(new byte[128]);
PrintAPI.B_CreateUSBPort(1);
PrintAPI.B_Prn_Text_TrueType(110, 31, 31, "宋体", 1, 700, 0, 0, 0, "C1", entity.AccountingUnit_Name);
PrintAPI.B_Prn_Text_TrueType(42, 75, 31, "宋体", 1, 700, 0, 0, 0, "C2", "合格证");
PrintAPI.B_Prn_Text_TrueType(440, 75, 31, "宋体", 1, 700, 0, 0, 0, "C3", entity.Goods_Name);
PrintAPI.B_Prn_Text_TrueType(42, 125, 27, "宋体", 1, 400, 0, 0, 0, "C4", string.Format("生产日期:{0}", entity.Date.ToString("yyyy/MM/dd")));
PrintAPI.B_Prn_Text_TrueType(42, 165, 27, "宋体", 1, 400, 0, 0, 0, "C5", string.Format("检 验 员:{0}", entity.Checker));
PrintAPI.B_Prn_Text_TrueType(42, 205, 27, "宋体", 1, 400, 0, 0, 0, "C6", string.Format("保 质 期:{0}", entity.StoreCondition));
PrintAPI.B_Prn_Text_TrueType(42, 255, 23, "宋体", 1, 400, 0, 0, 0, "C7", string.Format("产地:{0} 电话:{1}", entity.Place, entity.TelNumber));
PrintAPI.B_Prn_Text_TrueType(42, 290, 23, "宋体", 1, 400, 0, 0, 0, "C8", string.Format("地址:{0}", entity.Address));
PrintAPI.B_Prn_Barcode(42, 330, 0, "1", 3, 22, 35, 'N', entity.BarCode);
PrintAPI.B_Prn_Text_TrueType(175, 370, 25, "宋体", 1, 500, 0, 0, 0, "C9", entity.BarCode);
PrintAPI.B_Bar2d_QR(430, 120, 2, 7, 'M', 'A', 0, 0, 0, entity._2DQRCode);
PrintAPI.B_Set_Direction('B');
PrintAPI.B_Print_Out(1);
PrintAPI.B_ClosePrn();
}
}
public class PrintEntity
{
public string AccountingUnit_Name { get; set; }
public string Goods_Name { get; set; }
public DateTime Date { get; set; }
public string Checker { get; set; }
public string StoreCondition { get; set; }
public string Place { get; set; }
public string TelNumber { get; set; }
public string Address { get; set; }
public string BarCode { get; set; }
public string _2DQRCode { get; set; }
}
}

Loading…
Cancel
Save