| @ -1,457 +0,0 @@ | |||
| using ButcherFactory.BO; | |||
| using ButcherFactory.BO.LocalBL; | |||
| using ButcherFactory.BO.Utils; | |||
| using ButcherFactory.Dialogs; | |||
| using System; | |||
| using System.Collections.Generic; | |||
| using System.ComponentModel; | |||
| using System.Data; | |||
| using System.Drawing; | |||
| using System.Linq; | |||
| using System.Text; | |||
| using System.Threading; | |||
| using System.Threading.Tasks; | |||
| using System.Windows.Forms; | |||
| using WinFormControl; | |||
| namespace ButcherFactory.CarcassSaleOut_ | |||
| { | |||
| public partial class CarcassSaleOutForm : Form, IWithRoleForm | |||
| { | |||
| #region IWithRoleForm | |||
| public List<short> RoleName | |||
| { | |||
| // get { return new List<short> { (short)设备类别.白条发货 }; } | |||
| get { return new List<short> { 150 }; } | |||
| } | |||
| public Form Generate() | |||
| { | |||
| return this; | |||
| } | |||
| #endregion | |||
| BindingList<SaleOutStore> saleOutStoreList; | |||
| BindingList<SaleOutStore_Detail> details; | |||
| BindingList<CarcassSaleOut_Detail> weightRecord; | |||
| Thread checkWeight; | |||
| string strErrorWeight = ""; | |||
| List<int> errorWeight = new List<int>(); | |||
| internal DateTime sendTime = DateTime.Today; | |||
| internal long? deliverGoodsLineID; | |||
| internal long? customerID; | |||
| internal int billState; | |||
| internal long? storeID; | |||
| long? batchID; | |||
| bool already = false; | |||
| public CarcassSaleOutForm() | |||
| { | |||
| InitializeComponent(); | |||
| this.Resize += CarcassSaleOutForm_Resize; | |||
| this.FormClosing += delegate | |||
| { | |||
| if (checkWeight != null && checkWeight.IsAlive) | |||
| checkWeight.Abort(); | |||
| }; | |||
| uWeightControl1.ReceivedValue += uWeightControl1_ReceivedValue; | |||
| uScanPanel1.AfterScan += uScanPanel1_AfterScan; | |||
| productBatchSelect.SelectedIndexChanged += delegate | |||
| { | |||
| if (productBatchSelect.SelectedValue == null) | |||
| batchID = null; | |||
| else | |||
| batchID = (long)productBatchSelect.SelectedValue; | |||
| }; | |||
| sendGridView.CellFormatting += sendGridView_CellFormatting; | |||
| } | |||
| static Image CheckImg = System.Drawing.Image.FromFile("Images\\check.png"); | |||
| static Image UnCheckImg = System.Drawing.Image.FromFile("Images\\uCheck.png"); | |||
| void sendGridView_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) | |||
| { | |||
| if (e.RowIndex < 0 || e.ColumnIndex != 2) | |||
| return; | |||
| var v = (bool)sendGridView.Rows[e.RowIndex].Cells[1].Value; | |||
| e.Value = v ? CheckImg : UnCheckImg; | |||
| } | |||
| protected override void OnLoad(EventArgs e) | |||
| { | |||
| base.OnLoad(e); | |||
| billState = 0; | |||
| billStateBox.Text = "未审核"; | |||
| sendDateBox.Text = sendTime.ToString("yyyy-MM-dd"); | |||
| var config = XmlUtil.DeserializeFromFile<CarcassSaleOutFormConfig>(); | |||
| if (config.Store_ID.HasValue) | |||
| { | |||
| storeBox.Text = config.Store_Name; | |||
| storeID = config.Store_ID; | |||
| } | |||
| if (!string.IsNullOrEmpty(config.Weight)) | |||
| { | |||
| strErrorWeight = config.Weight; | |||
| var arr = strErrorWeight.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Select(x => int.Parse(x)).OrderBy(x => x); | |||
| errorWeight.AddRange(arr); | |||
| } | |||
| this.mainGridView.BorderStyle = BorderStyle.FixedSingle; | |||
| BindWeightRecord(); | |||
| BindProductBatch(); | |||
| } | |||
| void BindWeightRecord() | |||
| { | |||
| weightRecord = CarcassSaleOutBL.GetUnSubmitWeightRecord(); | |||
| sendGridView.DataSource = weightRecord; | |||
| sendGridView.Refresh(); | |||
| } | |||
| private void BindProductBatch() | |||
| { | |||
| var batchs = CarcassSaleOutBL.GetBatchFromEMS(0); | |||
| productBatchSelect.DisplayMember = "Name"; | |||
| productBatchSelect.ValueMember = "ID"; | |||
| productBatchSelect.DataSource = batchs; | |||
| var idx = batchs.FindIndex(x => x.Date == DateTime.Today); | |||
| if (idx > 0) | |||
| productBatchSelect.SelectedIndex = idx; | |||
| productBatchSelect.Refresh(); | |||
| } | |||
| void CarcassSaleOutForm_Resize(object sender, EventArgs e) | |||
| { | |||
| if (this.Height < this.MinimumSize.Height) | |||
| return; | |||
| groupBox1.Height = (this.Height - 200) / 2; | |||
| groupBox2.Height = groupBox1.Height; | |||
| groupBox2.Location = new Point(groupBox2.Location.X, groupBox1.Height + 100); | |||
| } | |||
| static object _lock = new object(); | |||
| void uWeightControl1_ReceivedValue(decimal weight) | |||
| { | |||
| lock (_lock) | |||
| { | |||
| this.Invoke(new Action(() => | |||
| { | |||
| var detail = CarcassSaleOutBL.Insert(weight); | |||
| if (weightRecord.Any()) | |||
| detail.Idx = weightRecord.Max(x => x.Idx) + 1; | |||
| else | |||
| detail.Idx = 1; | |||
| weightRecord.Insert(0, detail); | |||
| sendGridView.FirstDisplayedScrollingRowIndex = 0; | |||
| if (!checkBox1.Checked) | |||
| AfterScan("G8536"); | |||
| else | |||
| sendGridView.Refresh(); | |||
| checkWeight = new Thread(new ParameterizedThreadStart(CheckWeight)); | |||
| checkWeight.Start(weight); | |||
| })); | |||
| } | |||
| } | |||
| void CheckWeight(object objWeight) | |||
| { | |||
| decimal weight = (decimal)objWeight; | |||
| var first = errorWeight.FirstOrDefault(x => x > weight); | |||
| if (first != 0) | |||
| SoundPalyUtil.PlaySound(string.Format("Sounds\\l{0}.wav", first)); | |||
| } | |||
| void uScanPanel1_AfterScan() | |||
| { | |||
| var barCode = uScanPanel1.TextBox.Text.Trim(); | |||
| if (!barCode.StartsWith("G") && weightRecord.Any(x => x.BarCode == barCode)) | |||
| return; | |||
| AfterScan(barCode); | |||
| } | |||
| void AfterScan(string barCode) | |||
| { | |||
| if (string.IsNullOrEmpty(barCode)) | |||
| throw new Exception("条码错误"); | |||
| var first = weightRecord.LastOrDefault(x => !x.Filled); | |||
| if (first == null) | |||
| return; | |||
| //throw new Exception("请先过磅"); | |||
| CarcassSaleOutBL.FillDetail(first, barCode, batchID); | |||
| SoundPalyUtil.PlaySound(SoundType.Click); | |||
| sendGridView.Refresh(); | |||
| } | |||
| private void refreshBtn_Click(object sender, EventArgs e) | |||
| { | |||
| already = false; | |||
| Refersh(); | |||
| } | |||
| private void weightRecordBtn_Click(object sender, EventArgs e) | |||
| { | |||
| if (orderGridView.CurrentRow == null) | |||
| throw new Exception("请选择配货明细"); | |||
| var detail = orderGridView.CurrentRow.DataBoundItem as SaleOutStore_Detail; | |||
| var dg = new WeightRecordDialog(details.First(x => x.ID == detail.ID), already, batchID, null); | |||
| dg.ShowDialog(); | |||
| if (dg.Changed) | |||
| BindOrderGrid(detail.SaleOutStore_ID); | |||
| if (dg.rolBack) | |||
| BindWeightRecord(); | |||
| } | |||
| private void goodsFinishBtn_Click(object sender, EventArgs e) | |||
| { | |||
| if (mainGridView.CurrentRow == null) | |||
| throw new Exception("请选择要配货完成的发货单"); | |||
| var id = (long)mainGridView.CurrentRow.Cells[0].Value; | |||
| var ds = CarcassSaleOutBL.GetSaleOutStoreDetailList(id); | |||
| if (ds.Any(x => x.SSecondNumber == null || x.SSecondNumber == 0)) | |||
| { | |||
| if (MessageBox.Show("有未配货的明细,确认配货完成?", "配货完成确认", MessageBoxButtons.OKCancel) != DialogResult.OK) | |||
| return; | |||
| } | |||
| CarcassSaleOutBL.SetGoodsFinish(id); | |||
| AfterChangeFinishGoods(id); | |||
| UMessageBox.Show("配货完成!"); | |||
| } | |||
| private void unFinishBtn_Click(object sender, EventArgs e) | |||
| { | |||
| if (mainGridView.CurrentRow == null) | |||
| throw new Exception("请选择要配货完成的发货单"); | |||
| var id = (long)mainGridView.CurrentRow.Cells[0].Value; | |||
| CarcassSaleOutBL.SetGoodsUnFinish(id); | |||
| AfterChangeFinishGoods(id); | |||
| UMessageBox.Show("撤销成功!"); | |||
| } | |||
| private void AfterChangeFinishGoods(long id) | |||
| { | |||
| saleOutStoreList.Remove(saleOutStoreList.First(x => x.ID == id)); | |||
| mainGridView.Refresh(); | |||
| if (details != null) | |||
| details.Clear(); | |||
| orderGridView.Refresh(); | |||
| billIDLabel.Text = string.Empty; | |||
| customerLabel.Text = string.Empty; | |||
| addressLabel.Text = string.Empty; | |||
| carNumberLabel.Text = string.Empty; | |||
| } | |||
| private void commitBtn_Click(object sender, EventArgs e) | |||
| { | |||
| if (orderGridView.CurrentRow == null) | |||
| throw new Exception("请选择配货明细"); | |||
| var subList = weightRecord.Where(x => x.Selected).ToList(); | |||
| if (subList.Count() == 0) | |||
| throw new Exception("没有发货明细"); | |||
| if (subList.Any(x => !x.Filled)) | |||
| throw new Exception("有未扫码的明细"); | |||
| var detailID = (long)orderGridView.CurrentRow.Cells[0].Value; | |||
| var detail = details.First(x => x.ID == detailID); | |||
| CarcassSaleOutBL.SubmitDetails(subList, detail, null); | |||
| foreach (var item in subList) | |||
| weightRecord.Remove(item); | |||
| var idx = weightRecord.Count; | |||
| foreach (var item in weightRecord) | |||
| { | |||
| item.Idx = idx; | |||
| idx--; | |||
| } | |||
| sendGridView.Refresh(); | |||
| orderGridView.Refresh(); | |||
| UMessageBox.Show("提交成功!"); | |||
| } | |||
| private void closeBtn_Click(object sender, EventArgs e) | |||
| { | |||
| Close(); | |||
| } | |||
| private void queryControl_MouseDown(object sender, MouseEventArgs e) | |||
| { | |||
| var textBox = sender as TextBox; | |||
| switch (textBox.Name) | |||
| { | |||
| case "sendDateBox": | |||
| var cs = new CalendarSelecter(); | |||
| if (cs.ShowDialog() == true) | |||
| { | |||
| sendTime = cs.Result; | |||
| sendDateBox.Text = sendTime.ToString("yyyy-MM-dd"); | |||
| } | |||
| break; | |||
| case "deliverGoodsLineBox": | |||
| var dgl = new SelectDeliverGoodsLineDialog(); | |||
| if (dgl.ShowDialog() == DialogResult.OK) | |||
| { | |||
| textBox.Text = dgl.Result.Item1; | |||
| deliverGoodsLineID = dgl.Result.Item2; | |||
| } | |||
| break; | |||
| case "customerBox": | |||
| var cb = new SelectCustomerDialog(); | |||
| if (cb.ShowDialog() == DialogResult.OK) | |||
| { | |||
| textBox.Text = cb.Result.Item1; | |||
| customerID = cb.Result.Item2; | |||
| } | |||
| break; | |||
| case "billStateBox": | |||
| var bs = new SelectBillStateDialog(); | |||
| if (bs.ShowDialog() == DialogResult.OK) | |||
| { | |||
| textBox.Text = bs.Result.Item1; | |||
| billState = bs.Result.Item2; | |||
| } | |||
| break; | |||
| case "storeBox": | |||
| var sb = new SelectStoreDialog(); | |||
| if (sb.ShowDialog() == DialogResult.OK) | |||
| { | |||
| textBox.Text = sb.Result.Item1; | |||
| storeID = sb.Result.Item2; | |||
| XmlUtil.SerializerObjToFile(new CarcassSaleOutFormConfig { Weight = strErrorWeight, Store_ID = storeID, Store_Name = textBox.Text }); | |||
| } | |||
| break; | |||
| } | |||
| } | |||
| private void clearBtn_Click(object sender, EventArgs e) | |||
| { | |||
| billState = 0; | |||
| billStateBox.Text = "未审核"; | |||
| sendTime = DateTime.Today; | |||
| sendDateBox.Text = sendTime.ToString("yyyy-MM-dd"); | |||
| deliverGoodsLineBox.Clear(); | |||
| deliverGoodsLineID = null; | |||
| customerBox.Clear(); | |||
| customerID = null; | |||
| storeBox.Clear(); | |||
| storeID = null; | |||
| } | |||
| private void mainGridView_CellClick(object sender, DataGridViewCellEventArgs e) | |||
| { | |||
| var id = (long)mainGridView.CurrentRow.Cells[0].Value; | |||
| var first = saleOutStoreList.First(x => x.ID == id); | |||
| billIDLabel.Text = id.ToString(); | |||
| customerLabel.Text = first.Customer_Name; | |||
| addressLabel.Text = first.Address; | |||
| carNumberLabel.Text = first.CarNumber; | |||
| BindOrderGrid(null); | |||
| } | |||
| void BindOrderGrid(long? detailID) | |||
| { | |||
| var id = long.Parse(billIDLabel.Text); | |||
| details = CarcassSaleOutBL.GetSaleOutStoreDetailList(id); | |||
| foreach (var item in details) | |||
| { | |||
| item.SaleOutStore_ID = id; | |||
| item.Customer_Name = customerLabel.Text; | |||
| } | |||
| orderGridView.DataSource = details; | |||
| if (detailID.HasValue) | |||
| { | |||
| foreach (DataGridViewRow row in orderGridView.Rows) | |||
| { | |||
| if ((long)row.Cells[0].Value == detailID) | |||
| { | |||
| row.Selected = true; | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| else | |||
| { | |||
| if (details.Any()) | |||
| orderGridView.FirstDisplayedScrollingRowIndex = 0; | |||
| } | |||
| orderGridView.Refresh(); | |||
| } | |||
| private void alreadyViewBtn_Click(object sender, EventArgs e) | |||
| { | |||
| already = true; | |||
| Refersh(); | |||
| } | |||
| void Refersh() | |||
| { | |||
| commitBtn.Enabled = !already; | |||
| goodsFinishBtn.Enabled = !already; | |||
| unFinishBtn.Enabled = already; | |||
| if (details != null) | |||
| { | |||
| details.Clear(); | |||
| orderGridView.Refresh(); | |||
| } | |||
| saleOutStoreList = CarcassSaleOutBL.GetSaleOutStoreList(sendTime, deliverGoodsLineID, customerID, billState, storeID, already); | |||
| mainGridView.DataSource = saleOutStoreList; | |||
| mainGridView.Refresh(); | |||
| } | |||
| private void deleteBtn_Click(object sender, EventArgs e) | |||
| { | |||
| if (sendGridView.CurrentRow == null) | |||
| return; | |||
| var id = (long)sendGridView.CurrentRow.Cells[0].Value; | |||
| CarcassSaleOutBL.Delete(id); | |||
| var tag = weightRecord.First(x => x.ID == id); | |||
| weightRecord.Remove(tag); | |||
| foreach (var item in weightRecord.Where(x => x.Idx > tag.Idx)) | |||
| item.Idx -= 1; | |||
| sendGridView.Refresh(); | |||
| } | |||
| private void orderGridView_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e) | |||
| { | |||
| DataGridViewRow dgrSingle = orderGridView.Rows[e.RowIndex]; | |||
| var v = (decimal?)dgrSingle.Cells["D_SNumber"].Value; | |||
| if (v.HasValue && v > 0) | |||
| { | |||
| dgrSingle.DefaultCellStyle.BackColor = Color.YellowGreen; | |||
| } | |||
| } | |||
| private void halfBtn_Click(object sender, EventArgs e) | |||
| { | |||
| SetWeightNumber(0.5m); | |||
| } | |||
| private void fullBtn_Click(object sender, EventArgs e) | |||
| { | |||
| SetWeightNumber(1); | |||
| } | |||
| private void SetWeightNumber(decimal number) | |||
| { | |||
| if (sendGridView.CurrentRow == null) | |||
| return; | |||
| var id = (long)sendGridView.CurrentRow.Cells[0].Value; | |||
| CarcassSaleOutBL.UpdateWeightNumber(id, number); | |||
| var first = weightRecord.First(x => x.ID == id); | |||
| first.Selected = true; | |||
| first.Number = number; | |||
| sendGridView.Refresh(); | |||
| } | |||
| private void sendGridView_CellClick(object sender, DataGridViewCellEventArgs e) | |||
| { | |||
| } | |||
| } | |||
| } | |||
| @ -1,287 +0,0 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | |||
| <root> | |||
| <!-- | |||
| Microsoft ResX Schema | |||
| Version 2.0 | |||
| The primary goals of this format is to allow a simple XML format | |||
| that is mostly human readable. The generation and parsing of the | |||
| various data types are done through the TypeConverter classes | |||
| associated with the data types. | |||
| Example: | |||
| ... ado.net/XML headers & schema ... | |||
| <resheader name="resmimetype">text/microsoft-resx</resheader> | |||
| <resheader name="version">2.0</resheader> | |||
| <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||
| <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||
| <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||
| <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||
| <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||
| <value>[base64 mime encoded serialized .NET Framework object]</value> | |||
| </data> | |||
| <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||
| <comment>This is a comment</comment> | |||
| </data> | |||
| There are any number of "resheader" rows that contain simple | |||
| name/value pairs. | |||
| Each data row contains a name, and value. The row also contains a | |||
| type or mimetype. Type corresponds to a .NET class that support | |||
| text/value conversion through the TypeConverter architecture. | |||
| Classes that don't support this are serialized and stored with the | |||
| mimetype set. | |||
| The mimetype is used for serialized objects, and tells the | |||
| ResXResourceReader how to depersist the object. This is currently not | |||
| extensible. For a given mimetype the value must be set accordingly: | |||
| Note - application/x-microsoft.net.object.binary.base64 is the format | |||
| that the ResXResourceWriter will generate, however the reader can | |||
| read any of the formats listed below. | |||
| mimetype: application/x-microsoft.net.object.binary.base64 | |||
| value : The object must be serialized with | |||
| : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |||
| : and then encoded with base64 encoding. | |||
| mimetype: application/x-microsoft.net.object.soap.base64 | |||
| value : The object must be serialized with | |||
| : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||
| : and then encoded with base64 encoding. | |||
| mimetype: application/x-microsoft.net.object.bytearray.base64 | |||
| value : The object must be serialized into a byte array | |||
| : using a System.ComponentModel.TypeConverter | |||
| : and then encoded with base64 encoding. | |||
| --> | |||
| <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||
| <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |||
| <xsd:element name="root" msdata:IsDataSet="true"> | |||
| <xsd:complexType> | |||
| <xsd:choice maxOccurs="unbounded"> | |||
| <xsd:element name="metadata"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" use="required" type="xsd:string" /> | |||
| <xsd:attribute name="type" type="xsd:string" /> | |||
| <xsd:attribute name="mimetype" type="xsd:string" /> | |||
| <xsd:attribute ref="xml:space" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="assembly"> | |||
| <xsd:complexType> | |||
| <xsd:attribute name="alias" type="xsd:string" /> | |||
| <xsd:attribute name="name" type="xsd:string" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="data"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
| <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |||
| <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||
| <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||
| <xsd:attribute ref="xml:space" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="resheader"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" type="xsd:string" use="required" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| </xsd:choice> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| </xsd:schema> | |||
| <resheader name="resmimetype"> | |||
| <value>text/microsoft-resx</value> | |||
| </resheader> | |||
| <resheader name="version"> | |||
| <value>2.0</value> | |||
| </resheader> | |||
| <resheader name="reader"> | |||
| <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
| </resheader> | |||
| <resheader name="writer"> | |||
| <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
| </resheader> | |||
| <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | |||
| <data name="closeBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value> | |||
| iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | |||
| wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK | |||
| goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg | |||
| KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= | |||
| </value> | |||
| </data> | |||
| <data name="clearBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value> | |||
| iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | |||
| wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK | |||
| goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg | |||
| KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= | |||
| </value> | |||
| </data> | |||
| <data name="refreshBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value> | |||
| iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | |||
| wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK | |||
| goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg | |||
| KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= | |||
| </value> | |||
| </data> | |||
| <data name="goodsFinishBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value> | |||
| iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | |||
| wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK | |||
| goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg | |||
| KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= | |||
| </value> | |||
| </data> | |||
| <data name="unFinishBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value> | |||
| iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | |||
| wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK | |||
| goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg | |||
| KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= | |||
| </value> | |||
| </data> | |||
| <data name="alreadyViewBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value> | |||
| iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | |||
| wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK | |||
| goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg | |||
| KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= | |||
| </value> | |||
| </data> | |||
| <data name="weightRecordBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value> | |||
| iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | |||
| wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK | |||
| goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg | |||
| KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= | |||
| </value> | |||
| </data> | |||
| <metadata name="M_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="M_Customer_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="M_SendTime.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="M_DeliverGoodsLine_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_SaleOutStore_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_Customer_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_Goods_Code.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_Goods_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_SecondNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_Number.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_SSecondNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_SNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_DiffNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_Selected.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_Image.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_Idx.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_BarCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_GoodsCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_Goods_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_Number.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_InStoreWeight.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_Weight.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_DiffWeight.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_Time.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <data name="commitBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value> | |||
| iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | |||
| wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK | |||
| goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg | |||
| KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= | |||
| </value> | |||
| </data> | |||
| <data name="deleteBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value> | |||
| iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | |||
| wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK | |||
| goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg | |||
| KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= | |||
| </value> | |||
| </data> | |||
| <data name="halfBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value> | |||
| iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | |||
| wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK | |||
| goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg | |||
| KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= | |||
| </value> | |||
| </data> | |||
| <data name="fullBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value> | |||
| iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | |||
| wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK | |||
| goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg | |||
| KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= | |||
| </value> | |||
| </data> | |||
| </root> | |||
| @ -1,698 +0,0 @@ | |||
| namespace ButcherFactory.CarcassTakeOut_ | |||
| { | |||
| partial class CarcassTakeOutForm | |||
| { | |||
| /// <summary> | |||
| /// Required designer variable. | |||
| /// </summary> | |||
| private System.ComponentModel.IContainer components = null; | |||
| /// <summary> | |||
| /// Clean up any resources being used. | |||
| /// </summary> | |||
| /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | |||
| protected override void Dispose(bool disposing) | |||
| { | |||
| if (disposing && (components != null)) | |||
| { | |||
| components.Dispose(); | |||
| } | |||
| base.Dispose(disposing); | |||
| } | |||
| #region Windows Form Designer generated code | |||
| /// <summary> | |||
| /// Required method for Designer support - do not modify | |||
| /// the contents of this method with the code editor. | |||
| /// </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 dataGridViewCellStyle5 = 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 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 dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); | |||
| System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); | |||
| System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); | |||
| System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); | |||
| System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CarcassTakeOutForm)); | |||
| this.workUnitSelect = new System.Windows.Forms.ComboBox(); | |||
| this.splitContainer1 = new System.Windows.Forms.SplitContainer(); | |||
| this.productBatchSelect = new System.Windows.Forms.ComboBox(); | |||
| this.uLabel2 = new WinFormControl.ULabel(); | |||
| this.closeBtn = new WinFormControl.UButton(); | |||
| this.uTimerLabel1 = new WinFormControl.UTimerLabel(); | |||
| this.uScanPanel1 = new WinFormControl.UScanPanel(); | |||
| this.netStateWatch1 = new WinFormControl.NetStateWatch(); | |||
| this.uWeightControl1 = new WinFormControl.UWeightControl(); | |||
| this.uLabel1 = new WinFormControl.ULabel(); | |||
| this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); | |||
| this.groupBox2 = new System.Windows.Forms.GroupBox(); | |||
| this.historyDataGrid = new WinFormControl.UDataGridView(); | |||
| this.H_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.H_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.H_BarCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.H_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.H_BeforeWeight = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.H_Number = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.H_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.uLabel4 = new WinFormControl.ULabel(); | |||
| this.groupBox1 = new System.Windows.Forms.GroupBox(); | |||
| this.splitContainer2 = new System.Windows.Forms.SplitContainer(); | |||
| this.weightGrid = new WinFormControl.UDataGridView(); | |||
| this.W_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.W_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.needSubmitGrid = new WinFormControl.UDataGridView(); | |||
| this.U_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.U_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.U_BarCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.U_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.U_BeforeWeight = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.U_Number = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.U_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.readBtn = new WinFormControl.UButton(); | |||
| this.submitBtn = new WinFormControl.UButton(); | |||
| this.uLabel3 = new WinFormControl.ULabel(); | |||
| this.uLabel5 = new WinFormControl.ULabel(); | |||
| this.storeSelect = new System.Windows.Forms.ComboBox(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); | |||
| this.splitContainer1.Panel1.SuspendLayout(); | |||
| this.splitContainer1.Panel2.SuspendLayout(); | |||
| this.splitContainer1.SuspendLayout(); | |||
| this.groupBox2.SuspendLayout(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.historyDataGrid)).BeginInit(); | |||
| this.groupBox1.SuspendLayout(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); | |||
| this.splitContainer2.Panel1.SuspendLayout(); | |||
| this.splitContainer2.Panel2.SuspendLayout(); | |||
| this.splitContainer2.SuspendLayout(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.weightGrid)).BeginInit(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.needSubmitGrid)).BeginInit(); | |||
| this.SuspendLayout(); | |||
| // | |||
| // workUnitSelect | |||
| // | |||
| this.workUnitSelect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.workUnitSelect.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.workUnitSelect.FormattingEnabled = true; | |||
| this.workUnitSelect.Location = new System.Drawing.Point(984, 11); | |||
| this.workUnitSelect.Name = "workUnitSelect"; | |||
| this.workUnitSelect.Size = new System.Drawing.Size(170, 28); | |||
| this.workUnitSelect.TabIndex = 7; | |||
| // | |||
| // splitContainer1 | |||
| // | |||
| this.splitContainer1.BackColor = System.Drawing.Color.Transparent; | |||
| this.splitContainer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; | |||
| this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; | |||
| this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; | |||
| this.splitContainer1.IsSplitterFixed = true; | |||
| this.splitContainer1.Location = new System.Drawing.Point(0, 0); | |||
| this.splitContainer1.Name = "splitContainer1"; | |||
| this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; | |||
| // | |||
| // splitContainer1.Panel1 | |||
| // | |||
| this.splitContainer1.Panel1.BackColor = System.Drawing.Color.Transparent; | |||
| this.splitContainer1.Panel1.Controls.Add(this.storeSelect); | |||
| this.splitContainer1.Panel1.Controls.Add(this.productBatchSelect); | |||
| this.splitContainer1.Panel1.Controls.Add(this.uLabel5); | |||
| this.splitContainer1.Panel1.Controls.Add(this.uLabel2); | |||
| this.splitContainer1.Panel1.Controls.Add(this.closeBtn); | |||
| this.splitContainer1.Panel1.Controls.Add(this.uTimerLabel1); | |||
| this.splitContainer1.Panel1.Controls.Add(this.workUnitSelect); | |||
| this.splitContainer1.Panel1.Controls.Add(this.uScanPanel1); | |||
| this.splitContainer1.Panel1.Controls.Add(this.netStateWatch1); | |||
| this.splitContainer1.Panel1.Controls.Add(this.uWeightControl1); | |||
| this.splitContainer1.Panel1.Controls.Add(this.uLabel1); | |||
| // | |||
| // splitContainer1.Panel2 | |||
| // | |||
| this.splitContainer1.Panel2.Controls.Add(this.flowLayoutPanel1); | |||
| this.splitContainer1.Panel2.Controls.Add(this.groupBox2); | |||
| this.splitContainer1.Panel2.Controls.Add(this.groupBox1); | |||
| this.splitContainer1.Size = new System.Drawing.Size(1305, 611); | |||
| this.splitContainer1.SplitterDistance = 86; | |||
| this.splitContainer1.TabIndex = 1; | |||
| // | |||
| // productBatchSelect | |||
| // | |||
| this.productBatchSelect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.productBatchSelect.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.productBatchSelect.FormattingEnabled = true; | |||
| this.productBatchSelect.Location = new System.Drawing.Point(984, 50); | |||
| this.productBatchSelect.Name = "productBatchSelect"; | |||
| this.productBatchSelect.Size = new System.Drawing.Size(170, 28); | |||
| this.productBatchSelect.TabIndex = 18; | |||
| // | |||
| // uLabel2 | |||
| // | |||
| this.uLabel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.uLabel2.AutoSize = true; | |||
| this.uLabel2.BackColor = System.Drawing.Color.Transparent; | |||
| this.uLabel2.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.uLabel2.Location = new System.Drawing.Point(883, 53); | |||
| this.uLabel2.Name = "uLabel2"; | |||
| this.uLabel2.Size = new System.Drawing.Size(109, 20); | |||
| this.uLabel2.TabIndex = 16; | |||
| this.uLabel2.Text = "生产批次:"; | |||
| // | |||
| // closeBtn | |||
| // | |||
| this.closeBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.closeBtn.AsClicked = false; | |||
| this.closeBtn.EnableGroup = false; | |||
| this.closeBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); | |||
| this.closeBtn.FlatAppearance.BorderSize = 0; | |||
| this.closeBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; | |||
| this.closeBtn.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.closeBtn.ForeColor = System.Drawing.Color.Black; | |||
| this.closeBtn.Location = new System.Drawing.Point(1187, 7); | |||
| this.closeBtn.Name = "closeBtn"; | |||
| this.closeBtn.PlaySound = false; | |||
| this.closeBtn.SelfControlEnable = false; | |||
| this.closeBtn.Size = new System.Drawing.Size(111, 34); | |||
| this.closeBtn.SoundType = WinFormControl.SoundType.Click; | |||
| this.closeBtn.TabIndex = 10; | |||
| this.closeBtn.Text = "关 闭"; | |||
| this.closeBtn.UseVisualStyleBackColor = true; | |||
| this.closeBtn.WithStataHode = false; | |||
| this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click); | |||
| // | |||
| // uTimerLabel1 | |||
| // | |||
| this.uTimerLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.uTimerLabel1.AutoSize = true; | |||
| this.uTimerLabel1.BackColor = System.Drawing.Color.Transparent; | |||
| this.uTimerLabel1.Font = new System.Drawing.Font("黑体", 12F); | |||
| this.uTimerLabel1.Format = "M月d日 H:mm:ss"; | |||
| this.uTimerLabel1.Location = new System.Drawing.Point(1165, 53); | |||
| this.uTimerLabel1.Name = "uTimerLabel1"; | |||
| this.uTimerLabel1.Size = new System.Drawing.Size(128, 16); | |||
| this.uTimerLabel1.TabIndex = 8; | |||
| this.uTimerLabel1.Text = "3月30日 8:54:07"; | |||
| // | |||
| // uScanPanel1 | |||
| // | |||
| this.uScanPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.uScanPanel1.BackColor = System.Drawing.Color.Transparent; | |||
| this.uScanPanel1.Location = new System.Drawing.Point(580, 9); | |||
| this.uScanPanel1.Name = "uScanPanel1"; | |||
| this.uScanPanel1.Size = new System.Drawing.Size(303, 32); | |||
| this.uScanPanel1.TabIndex = 3; | |||
| // | |||
| // netStateWatch1 | |||
| // | |||
| this.netStateWatch1.BackColor = System.Drawing.Color.Transparent; | |||
| this.netStateWatch1.Location = new System.Drawing.Point(354, 4); | |||
| this.netStateWatch1.Name = "netStateWatch1"; | |||
| this.netStateWatch1.Size = new System.Drawing.Size(90, 39); | |||
| this.netStateWatch1.TabIndex = 1; | |||
| // | |||
| // uWeightControl1 | |||
| // | |||
| this.uWeightControl1.BackColor = System.Drawing.Color.Transparent; | |||
| this.uWeightControl1.Location = new System.Drawing.Point(3, 3); | |||
| this.uWeightControl1.Name = "uWeightControl1"; | |||
| this.uWeightControl1.Size = new System.Drawing.Size(349, 78); | |||
| this.uWeightControl1.TabIndex = 0; | |||
| this.uWeightControl1.WeightFalg = null; | |||
| // | |||
| // uLabel1 | |||
| // | |||
| this.uLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.uLabel1.AutoSize = true; | |||
| this.uLabel1.BackColor = System.Drawing.Color.Transparent; | |||
| this.uLabel1.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.uLabel1.Location = new System.Drawing.Point(883, 14); | |||
| this.uLabel1.Name = "uLabel1"; | |||
| this.uLabel1.Size = new System.Drawing.Size(109, 20); | |||
| this.uLabel1.TabIndex = 5; | |||
| this.uLabel1.Text = "工作单元:"; | |||
| // | |||
| // flowLayoutPanel1 | |||
| // | |||
| this.flowLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.flowLayoutPanel1.AutoScroll = true; | |||
| this.flowLayoutPanel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; | |||
| this.flowLayoutPanel1.Location = new System.Drawing.Point(793, -1); | |||
| this.flowLayoutPanel1.Name = "flowLayoutPanel1"; | |||
| this.flowLayoutPanel1.Size = new System.Drawing.Size(514, 521); | |||
| this.flowLayoutPanel1.TabIndex = 4; | |||
| // | |||
| // groupBox2 | |||
| // | |||
| this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| | System.Windows.Forms.AnchorStyles.Left) | |||
| | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.groupBox2.Controls.Add(this.historyDataGrid); | |||
| this.groupBox2.Controls.Add(this.uLabel4); | |||
| this.groupBox2.Location = new System.Drawing.Point(11, 284); | |||
| this.groupBox2.Name = "groupBox2"; | |||
| this.groupBox2.Padding = new System.Windows.Forms.Padding(5); | |||
| this.groupBox2.Size = new System.Drawing.Size(776, 222); | |||
| this.groupBox2.TabIndex = 3; | |||
| this.groupBox2.TabStop = false; | |||
| // | |||
| // historyDataGrid | |||
| // | |||
| this.historyDataGrid.AllowUserToAddRows = false; | |||
| this.historyDataGrid.AllowUserToDeleteRows = false; | |||
| this.historyDataGrid.AllowUserToResizeColumns = false; | |||
| this.historyDataGrid.AllowUserToResizeRows = false; | |||
| dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); | |||
| this.historyDataGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; | |||
| this.historyDataGrid.BackgroundColor = System.Drawing.Color.White; | |||
| this.historyDataGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; | |||
| dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; | |||
| dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 12F); | |||
| dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; | |||
| dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | |||
| this.historyDataGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; | |||
| this.historyDataGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; | |||
| this.historyDataGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | |||
| this.H_ID, | |||
| this.H_RowIndex, | |||
| this.H_BarCode, | |||
| this.H_Goods_Name, | |||
| this.H_BeforeWeight, | |||
| this.H_Number, | |||
| this.H_Weight}); | |||
| this.historyDataGrid.Dock = System.Windows.Forms.DockStyle.Fill; | |||
| this.historyDataGrid.Location = new System.Drawing.Point(5, 19); | |||
| this.historyDataGrid.MultiSelect = false; | |||
| this.historyDataGrid.Name = "historyDataGrid"; | |||
| this.historyDataGrid.ReadOnly = true; | |||
| this.historyDataGrid.RowHeadersVisible = false; | |||
| dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); | |||
| dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); | |||
| this.historyDataGrid.RowsDefaultCellStyle = dataGridViewCellStyle5; | |||
| this.historyDataGrid.RowTemplate.Height = 23; | |||
| this.historyDataGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; | |||
| this.historyDataGrid.Size = new System.Drawing.Size(766, 198); | |||
| this.historyDataGrid.TabIndex = 2; | |||
| // | |||
| // H_ID | |||
| // | |||
| this.H_ID.DataPropertyName = "ID"; | |||
| this.H_ID.HeaderText = "ID"; | |||
| this.H_ID.Name = "H_ID"; | |||
| this.H_ID.ReadOnly = true; | |||
| this.H_ID.Visible = false; | |||
| // | |||
| // H_RowIndex | |||
| // | |||
| this.H_RowIndex.DataPropertyName = "RowIndex"; | |||
| this.H_RowIndex.HeaderText = "序号"; | |||
| this.H_RowIndex.Name = "H_RowIndex"; | |||
| this.H_RowIndex.ReadOnly = true; | |||
| // | |||
| // H_BarCode | |||
| // | |||
| this.H_BarCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.H_BarCode.DataPropertyName = "BarCode"; | |||
| this.H_BarCode.HeaderText = "条码"; | |||
| this.H_BarCode.Name = "H_BarCode"; | |||
| this.H_BarCode.ReadOnly = true; | |||
| // | |||
| // H_Goods_Name | |||
| // | |||
| this.H_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.H_Goods_Name.DataPropertyName = "Goods_Name"; | |||
| this.H_Goods_Name.HeaderText = "产品名称"; | |||
| this.H_Goods_Name.Name = "H_Goods_Name"; | |||
| this.H_Goods_Name.ReadOnly = true; | |||
| // | |||
| // H_BeforeWeight | |||
| // | |||
| this.H_BeforeWeight.DataPropertyName = "BeforeWeight"; | |||
| dataGridViewCellStyle3.Format = "#0.######"; | |||
| this.H_BeforeWeight.DefaultCellStyle = dataGridViewCellStyle3; | |||
| this.H_BeforeWeight.HeaderText = "入库重量"; | |||
| this.H_BeforeWeight.Name = "H_BeforeWeight"; | |||
| this.H_BeforeWeight.ReadOnly = true; | |||
| this.H_BeforeWeight.Width = 150; | |||
| // | |||
| // H_Number | |||
| // | |||
| this.H_Number.DataPropertyName = "Number"; | |||
| this.H_Number.HeaderText = "头数"; | |||
| this.H_Number.Name = "H_Number"; | |||
| this.H_Number.ReadOnly = true; | |||
| this.H_Number.Width = 65; | |||
| // | |||
| // H_Weight | |||
| // | |||
| this.H_Weight.DataPropertyName = "Weight"; | |||
| dataGridViewCellStyle4.Format = "#0.######"; | |||
| this.H_Weight.DefaultCellStyle = dataGridViewCellStyle4; | |||
| this.H_Weight.HeaderText = "重量"; | |||
| this.H_Weight.Name = "H_Weight"; | |||
| this.H_Weight.ReadOnly = true; | |||
| this.H_Weight.Width = 150; | |||
| // | |||
| // uLabel4 | |||
| // | |||
| this.uLabel4.AutoSize = true; | |||
| this.uLabel4.BackColor = System.Drawing.Color.White; | |||
| this.uLabel4.Font = new System.Drawing.Font("宋体", 13F); | |||
| this.uLabel4.Location = new System.Drawing.Point(8, -1); | |||
| this.uLabel4.Name = "uLabel4"; | |||
| this.uLabel4.Size = new System.Drawing.Size(80, 18); | |||
| this.uLabel4.TabIndex = 1; | |||
| this.uLabel4.Text = "历史领料"; | |||
| // | |||
| // groupBox1 | |||
| // | |||
| this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | |||
| | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.groupBox1.Controls.Add(this.splitContainer2); | |||
| this.groupBox1.Controls.Add(this.readBtn); | |||
| this.groupBox1.Controls.Add(this.submitBtn); | |||
| this.groupBox1.Controls.Add(this.uLabel3); | |||
| this.groupBox1.Location = new System.Drawing.Point(11, 13); | |||
| this.groupBox1.Name = "groupBox1"; | |||
| this.groupBox1.Padding = new System.Windows.Forms.Padding(5); | |||
| this.groupBox1.Size = new System.Drawing.Size(776, 265); | |||
| this.groupBox1.TabIndex = 2; | |||
| this.groupBox1.TabStop = false; | |||
| // | |||
| // splitContainer2 | |||
| // | |||
| this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Bottom; | |||
| this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; | |||
| this.splitContainer2.IsSplitterFixed = true; | |||
| this.splitContainer2.Location = new System.Drawing.Point(5, 60); | |||
| this.splitContainer2.Name = "splitContainer2"; | |||
| // | |||
| // splitContainer2.Panel1 | |||
| // | |||
| this.splitContainer2.Panel1.Controls.Add(this.weightGrid); | |||
| // | |||
| // splitContainer2.Panel2 | |||
| // | |||
| this.splitContainer2.Panel2.Controls.Add(this.needSubmitGrid); | |||
| this.splitContainer2.Size = new System.Drawing.Size(766, 200); | |||
| this.splitContainer2.SplitterDistance = 254; | |||
| this.splitContainer2.TabIndex = 14; | |||
| // | |||
| // weightGrid | |||
| // | |||
| this.weightGrid.AllowUserToAddRows = false; | |||
| this.weightGrid.AllowUserToDeleteRows = false; | |||
| this.weightGrid.AllowUserToResizeColumns = false; | |||
| this.weightGrid.AllowUserToResizeRows = false; | |||
| dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); | |||
| this.weightGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6; | |||
| this.weightGrid.BackgroundColor = System.Drawing.Color.White; | |||
| this.weightGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; | |||
| dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; | |||
| dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 12F); | |||
| dataGridViewCellStyle7.ForeColor = System.Drawing.Color.White; | |||
| dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | |||
| this.weightGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7; | |||
| this.weightGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; | |||
| this.weightGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | |||
| this.W_ID, | |||
| this.W_Weight}); | |||
| this.weightGrid.Dock = System.Windows.Forms.DockStyle.Fill; | |||
| this.weightGrid.Location = new System.Drawing.Point(0, 0); | |||
| this.weightGrid.MultiSelect = false; | |||
| this.weightGrid.Name = "weightGrid"; | |||
| this.weightGrid.ReadOnly = true; | |||
| this.weightGrid.RowHeadersVisible = false; | |||
| dataGridViewCellStyle8.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); | |||
| dataGridViewCellStyle8.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); | |||
| this.weightGrid.RowsDefaultCellStyle = dataGridViewCellStyle8; | |||
| this.weightGrid.RowTemplate.Height = 23; | |||
| this.weightGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; | |||
| this.weightGrid.Size = new System.Drawing.Size(254, 200); | |||
| this.weightGrid.TabIndex = 14; | |||
| // | |||
| // W_ID | |||
| // | |||
| this.W_ID.DataPropertyName = "ID"; | |||
| this.W_ID.HeaderText = "序号"; | |||
| this.W_ID.Name = "W_ID"; | |||
| this.W_ID.ReadOnly = true; | |||
| // | |||
| // W_Weight | |||
| // | |||
| this.W_Weight.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.W_Weight.DataPropertyName = "Weight"; | |||
| this.W_Weight.HeaderText = "重量"; | |||
| this.W_Weight.Name = "W_Weight"; | |||
| this.W_Weight.ReadOnly = true; | |||
| // | |||
| // needSubmitGrid | |||
| // | |||
| this.needSubmitGrid.AllowUserToAddRows = false; | |||
| this.needSubmitGrid.AllowUserToDeleteRows = false; | |||
| this.needSubmitGrid.AllowUserToResizeColumns = false; | |||
| this.needSubmitGrid.AllowUserToResizeRows = false; | |||
| dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); | |||
| this.needSubmitGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle9; | |||
| this.needSubmitGrid.BackgroundColor = System.Drawing.Color.White; | |||
| this.needSubmitGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; | |||
| dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; | |||
| dataGridViewCellStyle10.Font = new System.Drawing.Font("宋体", 12F); | |||
| dataGridViewCellStyle10.ForeColor = System.Drawing.Color.White; | |||
| dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | |||
| this.needSubmitGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle10; | |||
| this.needSubmitGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; | |||
| this.needSubmitGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | |||
| this.U_ID, | |||
| this.U_RowIndex, | |||
| this.U_BarCode, | |||
| this.U_Goods_Name, | |||
| this.U_BeforeWeight, | |||
| this.U_Number, | |||
| this.U_Weight}); | |||
| this.needSubmitGrid.Dock = System.Windows.Forms.DockStyle.Fill; | |||
| this.needSubmitGrid.Location = new System.Drawing.Point(0, 0); | |||
| this.needSubmitGrid.MultiSelect = false; | |||
| this.needSubmitGrid.Name = "needSubmitGrid"; | |||
| this.needSubmitGrid.ReadOnly = true; | |||
| this.needSubmitGrid.RowHeadersVisible = false; | |||
| dataGridViewCellStyle12.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); | |||
| dataGridViewCellStyle12.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); | |||
| this.needSubmitGrid.RowsDefaultCellStyle = dataGridViewCellStyle12; | |||
| this.needSubmitGrid.RowTemplate.Height = 30; | |||
| this.needSubmitGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; | |||
| this.needSubmitGrid.Size = new System.Drawing.Size(508, 200); | |||
| this.needSubmitGrid.TabIndex = 1; | |||
| // | |||
| // U_ID | |||
| // | |||
| this.U_ID.DataPropertyName = "ID"; | |||
| this.U_ID.HeaderText = "ID"; | |||
| this.U_ID.Name = "U_ID"; | |||
| this.U_ID.ReadOnly = true; | |||
| this.U_ID.Visible = false; | |||
| // | |||
| // U_RowIndex | |||
| // | |||
| this.U_RowIndex.DataPropertyName = "RowIndex"; | |||
| this.U_RowIndex.HeaderText = "序号"; | |||
| this.U_RowIndex.Name = "U_RowIndex"; | |||
| this.U_RowIndex.ReadOnly = true; | |||
| this.U_RowIndex.Width = 70; | |||
| // | |||
| // U_BarCode | |||
| // | |||
| this.U_BarCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.U_BarCode.DataPropertyName = "BarCode"; | |||
| this.U_BarCode.HeaderText = "条码"; | |||
| this.U_BarCode.Name = "U_BarCode"; | |||
| this.U_BarCode.ReadOnly = true; | |||
| // | |||
| // U_Goods_Name | |||
| // | |||
| this.U_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.U_Goods_Name.DataPropertyName = "Goods_Name"; | |||
| this.U_Goods_Name.HeaderText = "产品名称"; | |||
| this.U_Goods_Name.Name = "U_Goods_Name"; | |||
| this.U_Goods_Name.ReadOnly = true; | |||
| // | |||
| // U_BeforeWeight | |||
| // | |||
| this.U_BeforeWeight.DataPropertyName = "BeforeWeight"; | |||
| dataGridViewCellStyle11.Format = "#0.######"; | |||
| this.U_BeforeWeight.DefaultCellStyle = dataGridViewCellStyle11; | |||
| this.U_BeforeWeight.HeaderText = "入库重量"; | |||
| this.U_BeforeWeight.Name = "U_BeforeWeight"; | |||
| this.U_BeforeWeight.ReadOnly = true; | |||
| // | |||
| // U_Number | |||
| // | |||
| this.U_Number.DataPropertyName = "Number"; | |||
| this.U_Number.HeaderText = "头数"; | |||
| this.U_Number.Name = "U_Number"; | |||
| this.U_Number.ReadOnly = true; | |||
| this.U_Number.Width = 65; | |||
| // | |||
| // U_Weight | |||
| // | |||
| this.U_Weight.DataPropertyName = "Weight"; | |||
| this.U_Weight.HeaderText = "重量"; | |||
| this.U_Weight.Name = "U_Weight"; | |||
| this.U_Weight.ReadOnly = true; | |||
| // | |||
| // readBtn | |||
| // | |||
| this.readBtn.AsClicked = false; | |||
| this.readBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("readBtn.BackgroundImage"))); | |||
| this.readBtn.EnableGroup = false; | |||
| this.readBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); | |||
| this.readBtn.FlatAppearance.BorderSize = 0; | |||
| this.readBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; | |||
| this.readBtn.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.readBtn.ForeColor = System.Drawing.Color.Black; | |||
| this.readBtn.Location = new System.Drawing.Point(145, 20); | |||
| this.readBtn.Name = "readBtn"; | |||
| this.readBtn.PlaySound = false; | |||
| this.readBtn.SelfControlEnable = false; | |||
| this.readBtn.Size = new System.Drawing.Size(114, 34); | |||
| this.readBtn.SoundType = WinFormControl.SoundType.Click; | |||
| this.readBtn.TabIndex = 13; | |||
| this.readBtn.Text = "读 入"; | |||
| this.readBtn.UseVisualStyleBackColor = true; | |||
| this.readBtn.WithStataHode = false; | |||
| this.readBtn.Click += new System.EventHandler(this.readBtn_Click); | |||
| // | |||
| // submitBtn | |||
| // | |||
| this.submitBtn.AsClicked = false; | |||
| this.submitBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("submitBtn.BackgroundImage"))); | |||
| this.submitBtn.EnableGroup = false; | |||
| this.submitBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); | |||
| this.submitBtn.FlatAppearance.BorderSize = 0; | |||
| this.submitBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; | |||
| this.submitBtn.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.submitBtn.ForeColor = System.Drawing.Color.Black; | |||
| this.submitBtn.Location = new System.Drawing.Point(11, 20); | |||
| this.submitBtn.Name = "submitBtn"; | |||
| this.submitBtn.PlaySound = false; | |||
| this.submitBtn.SelfControlEnable = false; | |||
| this.submitBtn.Size = new System.Drawing.Size(111, 34); | |||
| this.submitBtn.SoundType = WinFormControl.SoundType.Click; | |||
| this.submitBtn.TabIndex = 11; | |||
| this.submitBtn.Text = "提 交"; | |||
| this.submitBtn.UseVisualStyleBackColor = true; | |||
| this.submitBtn.WithStataHode = false; | |||
| this.submitBtn.Click += new System.EventHandler(this.submitBtn_Click); | |||
| // | |||
| // uLabel3 | |||
| // | |||
| this.uLabel3.AutoSize = true; | |||
| this.uLabel3.BackColor = System.Drawing.Color.White; | |||
| this.uLabel3.Font = new System.Drawing.Font("宋体", 13F); | |||
| this.uLabel3.Location = new System.Drawing.Point(8, 0); | |||
| this.uLabel3.Name = "uLabel3"; | |||
| this.uLabel3.Size = new System.Drawing.Size(80, 18); | |||
| this.uLabel3.TabIndex = 0; | |||
| this.uLabel3.Text = "领料明细"; | |||
| // | |||
| // uLabel5 | |||
| // | |||
| this.uLabel5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.uLabel5.AutoSize = true; | |||
| this.uLabel5.BackColor = System.Drawing.Color.Transparent; | |||
| this.uLabel5.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.uLabel5.Location = new System.Drawing.Point(607, 53); | |||
| this.uLabel5.Name = "uLabel5"; | |||
| this.uLabel5.Size = new System.Drawing.Size(109, 20); | |||
| this.uLabel5.TabIndex = 16; | |||
| this.uLabel5.Text = "领用仓库:"; | |||
| // | |||
| // storeSelect | |||
| // | |||
| this.storeSelect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.storeSelect.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.storeSelect.FormattingEnabled = true; | |||
| this.storeSelect.Location = new System.Drawing.Point(708, 50); | |||
| this.storeSelect.Name = "storeSelect"; | |||
| this.storeSelect.Size = new System.Drawing.Size(170, 28); | |||
| this.storeSelect.TabIndex = 18; | |||
| // | |||
| // CarcassTakeOutForm | |||
| // | |||
| this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); | |||
| this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |||
| this.BackColor = System.Drawing.Color.White; | |||
| this.ClientSize = new System.Drawing.Size(1305, 611); | |||
| this.Controls.Add(this.splitContainer1); | |||
| this.MinimumSize = new System.Drawing.Size(1321, 650); | |||
| this.Name = "CarcassTakeOutForm"; | |||
| this.Text = "白条领用"; | |||
| this.WindowState = System.Windows.Forms.FormWindowState.Maximized; | |||
| this.splitContainer1.Panel1.ResumeLayout(false); | |||
| this.splitContainer1.Panel1.PerformLayout(); | |||
| this.splitContainer1.Panel2.ResumeLayout(false); | |||
| ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); | |||
| this.splitContainer1.ResumeLayout(false); | |||
| this.groupBox2.ResumeLayout(false); | |||
| this.groupBox2.PerformLayout(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.historyDataGrid)).EndInit(); | |||
| this.groupBox1.ResumeLayout(false); | |||
| this.groupBox1.PerformLayout(); | |||
| this.splitContainer2.Panel1.ResumeLayout(false); | |||
| this.splitContainer2.Panel2.ResumeLayout(false); | |||
| ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); | |||
| this.splitContainer2.ResumeLayout(false); | |||
| ((System.ComponentModel.ISupportInitialize)(this.weightGrid)).EndInit(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.needSubmitGrid)).EndInit(); | |||
| this.ResumeLayout(false); | |||
| } | |||
| #endregion | |||
| private WinFormControl.UTimerLabel uTimerLabel1; | |||
| private System.Windows.Forms.ComboBox workUnitSelect; | |||
| private WinFormControl.UScanPanel uScanPanel1; | |||
| private WinFormControl.NetStateWatch netStateWatch1; | |||
| private WinFormControl.UWeightControl uWeightControl1; | |||
| private WinFormControl.ULabel uLabel1; | |||
| private System.Windows.Forms.SplitContainer splitContainer1; | |||
| private System.Windows.Forms.GroupBox groupBox2; | |||
| private WinFormControl.UDataGridView historyDataGrid; | |||
| private WinFormControl.ULabel uLabel4; | |||
| private System.Windows.Forms.GroupBox groupBox1; | |||
| private WinFormControl.UDataGridView needSubmitGrid; | |||
| private WinFormControl.ULabel uLabel3; | |||
| private WinFormControl.UButton closeBtn; | |||
| private WinFormControl.UButton readBtn; | |||
| private WinFormControl.UButton submitBtn; | |||
| private WinFormControl.UDataGridView weightGrid; | |||
| private System.Windows.Forms.SplitContainer splitContainer2; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn W_ID; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn W_Weight; | |||
| private System.Windows.Forms.ComboBox productBatchSelect; | |||
| private WinFormControl.ULabel uLabel2; | |||
| private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn H_ID; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn H_RowIndex; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn H_BarCode; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn H_Goods_Name; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn H_BeforeWeight; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn H_Number; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn H_Weight; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn U_ID; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn U_RowIndex; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn U_BarCode; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn U_Goods_Name; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn U_BeforeWeight; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn U_Number; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn U_Weight; | |||
| private System.Windows.Forms.ComboBox storeSelect; | |||
| private WinFormControl.ULabel uLabel5; | |||
| } | |||
| } | |||
| @ -1,283 +0,0 @@ | |||
| using ButcherFactory.BO; | |||
| using ButcherFactory.BO.LocalBL; | |||
| using ButcherFactory.BO.Rpcs; | |||
| using ButcherFactory.BO.Utils; | |||
| using System; | |||
| using System.Collections.Generic; | |||
| using System.ComponentModel; | |||
| using System.Data; | |||
| using System.Drawing; | |||
| using System.Linq; | |||
| using System.Text; | |||
| using System.Threading; | |||
| using System.Threading.Tasks; | |||
| using System.Windows.Forms; | |||
| using ButcherFactory.Utils; | |||
| using WinFormControl; | |||
| using ButcherFactory.Dialogs; | |||
| namespace ButcherFactory.CarcassTakeOut_ | |||
| { | |||
| public partial class CarcassTakeOutForm : Form, IWithRoleForm | |||
| { | |||
| #region IWithRoleForm | |||
| public List<short> RoleName | |||
| { | |||
| get { return new List<short> { (short)设备类别.白条领用 }; } | |||
| } | |||
| public Form Generate() | |||
| { | |||
| return this; | |||
| } | |||
| #endregion | |||
| Thread syncBeforeInfo; | |||
| Thread uploadData; | |||
| BindingList<CarcassTakeOut> needSubmitedList; | |||
| BindingList<CarcassTakeOut> historyList; | |||
| BindingList<CarcassTakeOutWeightTemp> weightList; | |||
| long? batchID; | |||
| CarcassTakeOutFormConfig config; | |||
| public CarcassTakeOutForm() | |||
| { | |||
| InitializeComponent(); | |||
| netStateWatch1.GetConnectState = () => LoginUtil.TestConnection(500); | |||
| uScanPanel1.AfterScan += uScanPanel1_AfterScan; | |||
| storeSelect.SelectedIndexChanged += delegate | |||
| { | |||
| if (storeSelect.SelectedValue == null) | |||
| config.Store_ID = null; | |||
| else | |||
| config.Store_ID = (long)storeSelect.SelectedValue; | |||
| XmlUtil.SerializerObjToFile(config); | |||
| }; | |||
| workUnitSelect.SelectedIndexChanged += delegate | |||
| { | |||
| if (workUnitSelect.SelectedValue == null) | |||
| config.WorkUnitID = null; | |||
| else | |||
| config.WorkUnitID = (long)workUnitSelect.SelectedValue; | |||
| XmlUtil.SerializerObjToFile(config); | |||
| }; | |||
| productBatchSelect.SelectedIndexChanged += delegate | |||
| { | |||
| if (productBatchSelect.SelectedValue == null) | |||
| batchID = null; | |||
| else | |||
| batchID = (long)productBatchSelect.SelectedValue; | |||
| }; | |||
| this.FormClosing += delegate | |||
| { | |||
| if (syncBeforeInfo != null && syncBeforeInfo.IsAlive) | |||
| syncBeforeInfo.Abort(); | |||
| if (uploadData != null && uploadData.IsAlive) | |||
| uploadData.Abort(); | |||
| }; | |||
| } | |||
| protected override void OnLoad(EventArgs e) | |||
| { | |||
| base.OnLoad(e); | |||
| var initTask = new Thread(LoadBind); | |||
| initTask.Start(); | |||
| syncBeforeInfo = new Thread(GetBeforeInfo); | |||
| syncBeforeInfo.Start(); | |||
| uploadData = new Thread(UpLoadLocalData); | |||
| uploadData.Start(); | |||
| } | |||
| private void LoadBind() | |||
| { | |||
| this.Invoke(new Action(() => | |||
| { | |||
| BLUtil.DeleteLocalDb<CarcassTakeOut>(); | |||
| if (netStateWatch1.NetState) | |||
| { | |||
| BaseInfoSyncRpc.SyncGoodsByTag(ApplyClient.白条出入库); | |||
| BaseInfoSyncRpc.SyncBaseInfo<WorkUnit>(); | |||
| BaseInfoSyncRpc.SyncProductBatch(0); | |||
| BaseInfoSyncRpc.SyncBaseInfo<Store>(); | |||
| } | |||
| productBatchSelect.EBindComboBox<ProductBatch>(x => x.Date == DateTime.Today, 6, "Date"); | |||
| config = XmlUtil.DeserializeFromFile<CarcassTakeOutFormConfig>(); | |||
| workUnitSelect.EBindComboBox<WorkUnit>(x => x.ID == config.WorkUnitID, top: 100); | |||
| storeSelect.EBindComboBox<Store>(x => x.ID == config.Store_ID, top: 100); | |||
| BindGoods(); | |||
| BindGrid(); | |||
| })); | |||
| } | |||
| List<UButton> goodsBtns = new List<UButton>(); | |||
| void BindGoods() | |||
| { | |||
| var goods = FormClientGoodsSetBL.GetGoodsList(); | |||
| foreach (var item in goods) | |||
| { | |||
| var btn = new UButton() { Width = 120, Height = 75, Text = item.Goods_Name, Tag = item.Goods_ID, Font = new Font("宋体", 15), Margin = new Padding(22, 10, 22, 30), PlaySound = true }; | |||
| btn.Click += GoodsBtnClick; | |||
| goodsBtns.Add(btn); | |||
| flowLayoutPanel1.Controls.Add(btn); | |||
| } | |||
| } | |||
| void GoodsBtnClick(object sender, EventArgs e) | |||
| { | |||
| if (batchID == null) | |||
| throw new Exception("请先选择批次"); | |||
| var c = sender as UButton; | |||
| Insert(null, (long)c.Tag, c.Text); | |||
| } | |||
| void BindGrid() | |||
| { | |||
| weightList = CarcassTakeOutBL.GetWeightList(); | |||
| weightGrid.DataSource = weightList; | |||
| weightGrid.Refresh(); | |||
| needSubmitedList = CarcassTakeOutBL.GetLocalDataWithState(false); | |||
| needSubmitGrid.DataSource = needSubmitedList; | |||
| needSubmitGrid.Refresh(); | |||
| historyList = CarcassTakeOutBL.GetLocalDataWithState(true); | |||
| historyDataGrid.DataSource = historyList; | |||
| historyDataGrid.Refresh(); | |||
| } | |||
| private void GetBeforeInfo() | |||
| { | |||
| while (true) | |||
| { | |||
| if (this.IsHandleCreated) | |||
| { | |||
| this.Invoke(new Action(() => | |||
| { | |||
| if (netStateWatch1.NetState) | |||
| { | |||
| bool ff = true; | |||
| var list = needSubmitedList.Where(x => x.BeforeWeight == null && !string.IsNullOrEmpty(x.BarCode)).Take(5); | |||
| if (!list.Any()) | |||
| { | |||
| list = historyList.Where(x => x.BeforeWeight == null && !string.IsNullOrEmpty(x.BarCode)).Take(5); | |||
| ff = false; | |||
| } | |||
| if (list.Any()) | |||
| { | |||
| var back = CarcassTakeOutBL.GetBeforeInfo(list.Select(x => x.BarCode)); | |||
| if (back.Any()) | |||
| { | |||
| foreach (var item in back) | |||
| { | |||
| var f = list.First(x => x.BarCode == item.StringExt1); | |||
| f.BeforeWeight = item.DecimalExt1; | |||
| f.Goods_Name = item.StringExt2; | |||
| } | |||
| if (ff) | |||
| needSubmitGrid.Refresh(); | |||
| else | |||
| historyDataGrid.Refresh(); | |||
| } | |||
| } | |||
| } | |||
| })); | |||
| } | |||
| Thread.Sleep(2000); | |||
| } | |||
| } | |||
| private void UpLoadLocalData() | |||
| { | |||
| while (true) | |||
| { | |||
| if (this.IsHandleCreated) | |||
| { | |||
| this.Invoke(new Action(() => | |||
| { | |||
| if (netStateWatch1.NetState) | |||
| CarcassTakeOutBL.UploadCarcassInfo(); | |||
| })); | |||
| } | |||
| Thread.Sleep(2000); | |||
| } | |||
| } | |||
| void uScanPanel1_AfterScan() | |||
| { | |||
| if (config.Store_ID == null) | |||
| throw new Exception("请先选择仓库"); | |||
| var barCode = uScanPanel1.TextBox.Text.Trim(); | |||
| if (string.IsNullOrEmpty(barCode)) | |||
| throw new Exception("请先扫码"); | |||
| if (barCode.StartsWith("G")) | |||
| { | |||
| var gId = barCode.TrimStart('G'); | |||
| var first = goodsBtns.FirstOrDefault(x => x.Tag.ToString() == gId); | |||
| if (first == null) | |||
| throw new Exception(string.Format("没找到ID为{0}的存货", gId)); | |||
| GoodsBtnClick(first, EventArgs.Empty); | |||
| } | |||
| else | |||
| { | |||
| if (barCode.Length != 23) | |||
| throw new Exception("条码格式不正确"); | |||
| Insert(barCode, null, null); | |||
| } | |||
| } | |||
| void Insert(string barCode, long? goodsID, string goodsName) | |||
| { | |||
| var entity = CarcassTakeOutBL.Insert(config.WorkUnitID, batchID, goodsID, barCode, config.Store_ID.Value); | |||
| if (entity == null) | |||
| return; | |||
| if (string.IsNullOrEmpty(barCode)) | |||
| entity.Goods_Name = goodsName; | |||
| needSubmitedList.Insert(0, entity); | |||
| needSubmitGrid.FirstDisplayedScrollingRowIndex = 0; | |||
| needSubmitGrid.Rows[0].Selected = true; | |||
| needSubmitGrid.Refresh(); | |||
| uScanPanel1.TextBox.Clear(); | |||
| } | |||
| private void closeBtn_Click(object sender, EventArgs e) | |||
| { | |||
| Close(); | |||
| } | |||
| private void submitBtn_Click(object sender, EventArgs e) | |||
| { | |||
| if (weightList.Count == 0) | |||
| throw new Exception("没有称重记录"); | |||
| if (needSubmitedList.Count == 0) | |||
| throw new Exception("没有扫码记录"); | |||
| var weight = weightList.Sum(x => x.Weight); | |||
| var arr = needSubmitedList.ToList(); | |||
| CarcassTakeOutBL.Submit(weight, arr); | |||
| arr.Reverse(); | |||
| foreach (var item in arr) | |||
| { | |||
| historyList.Insert(0, item); | |||
| if (historyList.Count > 50) | |||
| historyList.RemoveAt(50); | |||
| needSubmitedList.Remove(item); | |||
| } | |||
| weightList.Clear(); | |||
| historyDataGrid.FirstDisplayedScrollingRowIndex = 0; | |||
| historyDataGrid.Refresh(); | |||
| needSubmitGrid.Refresh(); | |||
| weightGrid.Refresh(); | |||
| } | |||
| private void readBtn_Click(object sender, EventArgs e) | |||
| { | |||
| if (uWeightControl1.Weight == 0) | |||
| throw new Exception("重量为0,不能读入"); | |||
| var entity = CarcassTakeOutBL.InsertWeight(uWeightControl1.Weight); | |||
| weightList.Insert(0, entity); | |||
| weightGrid.FirstDisplayedScrollingRowIndex = 0; | |||
| weightGrid.Refresh(); | |||
| } | |||
| } | |||
| } | |||
| @ -1,158 +0,0 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | |||
| <root> | |||
| <!-- | |||
| Microsoft ResX Schema | |||
| Version 2.0 | |||
| The primary goals of this format is to allow a simple XML format | |||
| that is mostly human readable. The generation and parsing of the | |||
| various data types are done through the TypeConverter classes | |||
| associated with the data types. | |||
| Example: | |||
| ... ado.net/XML headers & schema ... | |||
| <resheader name="resmimetype">text/microsoft-resx</resheader> | |||
| <resheader name="version">2.0</resheader> | |||
| <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||
| <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||
| <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||
| <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||
| <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||
| <value>[base64 mime encoded serialized .NET Framework object]</value> | |||
| </data> | |||
| <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||
| <comment>This is a comment</comment> | |||
| </data> | |||
| There are any number of "resheader" rows that contain simple | |||
| name/value pairs. | |||
| Each data row contains a name, and value. The row also contains a | |||
| type or mimetype. Type corresponds to a .NET class that support | |||
| text/value conversion through the TypeConverter architecture. | |||
| Classes that don't support this are serialized and stored with the | |||
| mimetype set. | |||
| The mimetype is used for serialized objects, and tells the | |||
| ResXResourceReader how to depersist the object. This is currently not | |||
| extensible. For a given mimetype the value must be set accordingly: | |||
| Note - application/x-microsoft.net.object.binary.base64 is the format | |||
| that the ResXResourceWriter will generate, however the reader can | |||
| read any of the formats listed below. | |||
| mimetype: application/x-microsoft.net.object.binary.base64 | |||
| value : The object must be serialized with | |||
| : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |||
| : and then encoded with base64 encoding. | |||
| mimetype: application/x-microsoft.net.object.soap.base64 | |||
| value : The object must be serialized with | |||
| : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||
| : and then encoded with base64 encoding. | |||
| mimetype: application/x-microsoft.net.object.bytearray.base64 | |||
| value : The object must be serialized into a byte array | |||
| : using a System.ComponentModel.TypeConverter | |||
| : and then encoded with base64 encoding. | |||
| --> | |||
| <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||
| <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |||
| <xsd:element name="root" msdata:IsDataSet="true"> | |||
| <xsd:complexType> | |||
| <xsd:choice maxOccurs="unbounded"> | |||
| <xsd:element name="metadata"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" use="required" type="xsd:string" /> | |||
| <xsd:attribute name="type" type="xsd:string" /> | |||
| <xsd:attribute name="mimetype" type="xsd:string" /> | |||
| <xsd:attribute ref="xml:space" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="assembly"> | |||
| <xsd:complexType> | |||
| <xsd:attribute name="alias" type="xsd:string" /> | |||
| <xsd:attribute name="name" type="xsd:string" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="data"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
| <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |||
| <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||
| <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||
| <xsd:attribute ref="xml:space" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="resheader"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" type="xsd:string" use="required" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| </xsd:choice> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| </xsd:schema> | |||
| <resheader name="resmimetype"> | |||
| <value>text/microsoft-resx</value> | |||
| </resheader> | |||
| <resheader name="version"> | |||
| <value>2.0</value> | |||
| </resheader> | |||
| <resheader name="reader"> | |||
| <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
| </resheader> | |||
| <resheader name="writer"> | |||
| <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
| </resheader> | |||
| <metadata name="H_RowIndex.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="H_Number.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="W_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="W_Weight.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="U_RowIndex.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="U_Number.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="U_Weight.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | |||
| <data name="readBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value> | |||
| iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | |||
| wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK | |||
| goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg | |||
| KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= | |||
| </value> | |||
| </data> | |||
| <data name="submitBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value> | |||
| iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | |||
| wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK | |||
| goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg | |||
| KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= | |||
| </value> | |||
| </data> | |||
| </root> | |||
| @ -1,15 +0,0 @@ | |||
| using System; | |||
| using System.Collections.Generic; | |||
| using System.Linq; | |||
| using System.Text; | |||
| using System.Threading.Tasks; | |||
| namespace ButcherFactory.CarcassTakeOut_ | |||
| { | |||
| public class CarcassTakeOutFormConfig | |||
| { | |||
| public long? WorkUnitID { get; set; } | |||
| public long? Store_ID { get; set; } | |||
| } | |||
| } | |||
| @ -1,180 +0,0 @@ | |||
| namespace ButcherFactory.SegmentInStore_ | |||
| { | |||
| partial class InStoreSummaryView | |||
| { | |||
| /// <summary> | |||
| /// Required designer variable. | |||
| /// </summary> | |||
| private System.ComponentModel.IContainer components = null; | |||
| /// <summary> | |||
| /// Clean up any resources being used. | |||
| /// </summary> | |||
| /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | |||
| protected override void Dispose(bool disposing) | |||
| { | |||
| if (disposing && (components != null)) | |||
| { | |||
| components.Dispose(); | |||
| } | |||
| base.Dispose(disposing); | |||
| } | |||
| #region Windows Form Designer generated code | |||
| /// <summary> | |||
| /// Required method for Designer support - do not modify | |||
| /// the contents of this method with the code editor. | |||
| /// </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 dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); | |||
| System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); | |||
| this.inStoreGrid = new WinFormControl.UDataGridView(); | |||
| this.closeBtn = new WinFormControl.NButton(); | |||
| this.I_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.I_Goods_Code = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.I_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.I_Goods_Spec = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.I_Number = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.I_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.inStoreGrid)).BeginInit(); | |||
| this.SuspendLayout(); | |||
| // | |||
| // inStoreGrid | |||
| // | |||
| this.inStoreGrid.AllowUserToAddRows = false; | |||
| this.inStoreGrid.AllowUserToDeleteRows = false; | |||
| this.inStoreGrid.AllowUserToResizeColumns = false; | |||
| this.inStoreGrid.AllowUserToResizeRows = false; | |||
| dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); | |||
| this.inStoreGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; | |||
| this.inStoreGrid.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| | System.Windows.Forms.AnchorStyles.Left) | |||
| | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.inStoreGrid.BackgroundColor = System.Drawing.Color.White; | |||
| this.inStoreGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; | |||
| dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; | |||
| dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 12F); | |||
| dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; | |||
| dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | |||
| this.inStoreGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; | |||
| this.inStoreGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; | |||
| this.inStoreGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | |||
| this.I_RowIndex, | |||
| this.I_Goods_Code, | |||
| this.I_Goods_Name, | |||
| this.I_Goods_Spec, | |||
| this.I_Number, | |||
| this.I_Weight}); | |||
| this.inStoreGrid.Location = new System.Drawing.Point(12, 53); | |||
| this.inStoreGrid.MultiSelect = false; | |||
| this.inStoreGrid.Name = "inStoreGrid"; | |||
| this.inStoreGrid.ReadOnly = true; | |||
| this.inStoreGrid.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.inStoreGrid.RowsDefaultCellStyle = dataGridViewCellStyle4; | |||
| this.inStoreGrid.RowTemplate.Height = 23; | |||
| this.inStoreGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; | |||
| this.inStoreGrid.Size = new System.Drawing.Size(858, 539); | |||
| this.inStoreGrid.TabIndex = 10; | |||
| // | |||
| // closeBtn | |||
| // | |||
| this.closeBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.closeBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); | |||
| this.closeBtn.ClickColor = System.Drawing.Color.YellowGreen; | |||
| this.closeBtn.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.closeBtn.ForeColor = System.Drawing.Color.White; | |||
| this.closeBtn.Location = new System.Drawing.Point(780, 2); | |||
| this.closeBtn.Name = "closeBtn"; | |||
| this.closeBtn.PlaySound = false; | |||
| this.closeBtn.Size = new System.Drawing.Size(90, 45); | |||
| this.closeBtn.SoundType = WinFormControl.SoundType.Click; | |||
| this.closeBtn.TabIndex = 11; | |||
| this.closeBtn.Text = "关闭"; | |||
| this.closeBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); | |||
| this.closeBtn.UseVisualStyleBackColor = false; | |||
| this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click); | |||
| // | |||
| // I_RowIndex | |||
| // | |||
| this.I_RowIndex.DataPropertyName = "RowIndex"; | |||
| this.I_RowIndex.HeaderText = "序号"; | |||
| this.I_RowIndex.Name = "I_RowIndex"; | |||
| this.I_RowIndex.ReadOnly = true; | |||
| this.I_RowIndex.Width = 70; | |||
| // | |||
| // I_Goods_Code | |||
| // | |||
| this.I_Goods_Code.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.I_Goods_Code.DataPropertyName = "Goods_Code"; | |||
| this.I_Goods_Code.FillWeight = 90F; | |||
| this.I_Goods_Code.HeaderText = "产品编号"; | |||
| this.I_Goods_Code.Name = "I_Goods_Code"; | |||
| this.I_Goods_Code.ReadOnly = true; | |||
| // | |||
| // I_Goods_Name | |||
| // | |||
| this.I_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.I_Goods_Name.DataPropertyName = "Goods_Name"; | |||
| this.I_Goods_Name.FillWeight = 150F; | |||
| this.I_Goods_Name.HeaderText = "产品名称"; | |||
| this.I_Goods_Name.Name = "I_Goods_Name"; | |||
| this.I_Goods_Name.ReadOnly = true; | |||
| // | |||
| // I_Goods_Spec | |||
| // | |||
| this.I_Goods_Spec.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.I_Goods_Spec.DataPropertyName = "Goods_Spec"; | |||
| this.I_Goods_Spec.FillWeight = 90F; | |||
| this.I_Goods_Spec.HeaderText = "规格"; | |||
| this.I_Goods_Spec.Name = "I_Goods_Spec"; | |||
| this.I_Goods_Spec.ReadOnly = true; | |||
| // | |||
| // I_Number | |||
| // | |||
| this.I_Number.DataPropertyName = "Number"; | |||
| this.I_Number.HeaderText = "件数"; | |||
| this.I_Number.Name = "I_Number"; | |||
| this.I_Number.ReadOnly = true; | |||
| // | |||
| // I_Weight | |||
| // | |||
| this.I_Weight.DataPropertyName = "Weight"; | |||
| dataGridViewCellStyle3.Format = "#0.######"; | |||
| this.I_Weight.DefaultCellStyle = dataGridViewCellStyle3; | |||
| this.I_Weight.HeaderText = "重量"; | |||
| this.I_Weight.Name = "I_Weight"; | |||
| this.I_Weight.ReadOnly = true; | |||
| // | |||
| // InStoreSummaryView | |||
| // | |||
| this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); | |||
| this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |||
| this.BackColor = System.Drawing.Color.White; | |||
| this.ClientSize = new System.Drawing.Size(882, 604); | |||
| this.Controls.Add(this.closeBtn); | |||
| this.Controls.Add(this.inStoreGrid); | |||
| this.Name = "InStoreSummaryView"; | |||
| this.Text = "入库表"; | |||
| ((System.ComponentModel.ISupportInitialize)(this.inStoreGrid)).EndInit(); | |||
| this.ResumeLayout(false); | |||
| } | |||
| #endregion | |||
| private WinFormControl.UDataGridView inStoreGrid; | |||
| private WinFormControl.NButton closeBtn; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn I_RowIndex; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn I_Goods_Code; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn I_Goods_Name; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn I_Goods_Spec; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn I_Number; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn I_Weight; | |||
| } | |||
| } | |||
| @ -1,76 +0,0 @@ | |||
| using ButcherFactory.BO; | |||
| using ButcherFactory.BO.LocalBL; | |||
| using System; | |||
| using System.Collections.Generic; | |||
| using System.ComponentModel; | |||
| using System.Data; | |||
| using System.Drawing; | |||
| using System.Linq; | |||
| using System.Text; | |||
| using System.Threading.Tasks; | |||
| using System.Windows.Forms; | |||
| namespace ButcherFactory.SegmentInStore_ | |||
| { | |||
| public partial class InStoreSummaryView : Form | |||
| { | |||
| BindingList<SegmentInStore> list; | |||
| public InStoreSummaryView() | |||
| { | |||
| InitializeComponent(); | |||
| inStoreGrid.RowPrePaint += uDataGridView1_RowPrePaint; | |||
| inStoreGrid.CellPainting += uDataGridView1_CellPainting; | |||
| } | |||
| protected override void OnLoad(EventArgs e) | |||
| { | |||
| base.OnLoad(e); | |||
| list = SegmentInStoreBL.GetInStoreSummary(); | |||
| list.Add(new SegmentInStore { Number = list.Sum(x => x.Number ?? 0), Weight = list.Sum(x => x.Weight ?? 0) }); | |||
| inStoreGrid.DataSource = list; | |||
| inStoreGrid.Refresh(); | |||
| } | |||
| private void uDataGridView1_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e) | |||
| { | |||
| if (e.RowIndex == inStoreGrid.Rows.Count - 1) | |||
| { | |||
| var row = inStoreGrid.Rows[e.RowIndex]; | |||
| row.DefaultCellStyle.SelectionForeColor = Color.Black; | |||
| row.DefaultCellStyle.BackColor = Color.Khaki; | |||
| row.DefaultCellStyle.SelectionBackColor = Color.Khaki; | |||
| } | |||
| } | |||
| private void uDataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e) | |||
| { | |||
| var last = inStoreGrid.Rows.Count - 1; | |||
| if (e.RowIndex == last) | |||
| { | |||
| if (e.ColumnIndex == 2) | |||
| { | |||
| e.PaintBackground(e.ClipBounds, false); | |||
| e.Handled = true; | |||
| } | |||
| else if (e.ColumnIndex == 3) | |||
| { | |||
| using (Brush foreColor = new SolidBrush(e.CellStyle.ForeColor)) | |||
| { | |||
| e.PaintBackground(e.ClipBounds, false); | |||
| StringFormat drawFormat = new StringFormat(); | |||
| drawFormat.LineAlignment = StringAlignment.Center; | |||
| drawFormat.Alignment = System.Drawing.StringAlignment.Center; | |||
| e.Graphics.DrawString("合计", e.CellStyle.Font, foreColor, e.CellBounds, drawFormat); | |||
| e.Handled = true; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| private void closeBtn_Click(object sender, EventArgs e) | |||
| { | |||
| this.Close(); | |||
| } | |||
| } | |||
| } | |||
| @ -1,129 +0,0 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | |||
| <root> | |||
| <!-- | |||
| Microsoft ResX Schema | |||
| Version 2.0 | |||
| The primary goals of this format is to allow a simple XML format | |||
| that is mostly human readable. The generation and parsing of the | |||
| various data types are done through the TypeConverter classes | |||
| associated with the data types. | |||
| Example: | |||
| ... ado.net/XML headers & schema ... | |||
| <resheader name="resmimetype">text/microsoft-resx</resheader> | |||
| <resheader name="version">2.0</resheader> | |||
| <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||
| <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||
| <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||
| <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||
| <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||
| <value>[base64 mime encoded serialized .NET Framework object]</value> | |||
| </data> | |||
| <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||
| <comment>This is a comment</comment> | |||
| </data> | |||
| There are any number of "resheader" rows that contain simple | |||
| name/value pairs. | |||
| Each data row contains a name, and value. The row also contains a | |||
| type or mimetype. Type corresponds to a .NET class that support | |||
| text/value conversion through the TypeConverter architecture. | |||
| Classes that don't support this are serialized and stored with the | |||
| mimetype set. | |||
| The mimetype is used for serialized objects, and tells the | |||
| ResXResourceReader how to depersist the object. This is currently not | |||
| extensible. For a given mimetype the value must be set accordingly: | |||
| Note - application/x-microsoft.net.object.binary.base64 is the format | |||
| that the ResXResourceWriter will generate, however the reader can | |||
| read any of the formats listed below. | |||
| mimetype: application/x-microsoft.net.object.binary.base64 | |||
| value : The object must be serialized with | |||
| : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |||
| : and then encoded with base64 encoding. | |||
| mimetype: application/x-microsoft.net.object.soap.base64 | |||
| value : The object must be serialized with | |||
| : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||
| : and then encoded with base64 encoding. | |||
| mimetype: application/x-microsoft.net.object.bytearray.base64 | |||
| value : The object must be serialized into a byte array | |||
| : using a System.ComponentModel.TypeConverter | |||
| : and then encoded with base64 encoding. | |||
| --> | |||
| <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||
| <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |||
| <xsd:element name="root" msdata:IsDataSet="true"> | |||
| <xsd:complexType> | |||
| <xsd:choice maxOccurs="unbounded"> | |||
| <xsd:element name="metadata"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" use="required" type="xsd:string" /> | |||
| <xsd:attribute name="type" type="xsd:string" /> | |||
| <xsd:attribute name="mimetype" type="xsd:string" /> | |||
| <xsd:attribute ref="xml:space" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="assembly"> | |||
| <xsd:complexType> | |||
| <xsd:attribute name="alias" type="xsd:string" /> | |||
| <xsd:attribute name="name" type="xsd:string" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="data"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
| <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |||
| <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||
| <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||
| <xsd:attribute ref="xml:space" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="resheader"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" type="xsd:string" use="required" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| </xsd:choice> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| </xsd:schema> | |||
| <resheader name="resmimetype"> | |||
| <value>text/microsoft-resx</value> | |||
| </resheader> | |||
| <resheader name="version"> | |||
| <value>2.0</value> | |||
| </resheader> | |||
| <resheader name="reader"> | |||
| <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
| </resheader> | |||
| <resheader name="writer"> | |||
| <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
| </resheader> | |||
| <metadata name="I_RowIndex.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="I_Goods_Code.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="I_Number.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| </root> | |||
| @ -1,839 +0,0 @@ | |||
| namespace ButcherFactory.SegmentInStore_ | |||
| { | |||
| partial class SegmentInStoreForm | |||
| { | |||
| /// <summary> | |||
| /// Required designer variable. | |||
| /// </summary> | |||
| private System.ComponentModel.IContainer components = null; | |||
| /// <summary> | |||
| /// Clean up any resources being used. | |||
| /// </summary> | |||
| /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | |||
| protected override void Dispose(bool disposing) | |||
| { | |||
| if (disposing && (components != null)) | |||
| { | |||
| components.Dispose(); | |||
| } | |||
| base.Dispose(disposing); | |||
| } | |||
| #region Windows Form Designer generated code | |||
| /// <summary> | |||
| /// Required method for Designer support - do not modify | |||
| /// the contents of this method with the code editor. | |||
| /// </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 dataGridViewCellStyle5 = 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 dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); | |||
| System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); | |||
| System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = 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 dataGridViewCellStyle15 = 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(); | |||
| this.panel1 = new System.Windows.Forms.Panel(); | |||
| this.barCodeBox = new System.Windows.Forms.TextBox(); | |||
| this.uLabel1 = new WinFormControl.ULabel(); | |||
| this.inStoreViewBtn = new WinFormControl.NButton(); | |||
| this.netStateWatch1 = new WinFormControl.NetStateWatch(); | |||
| this.storeSelect = new System.Windows.Forms.ComboBox(); | |||
| this.uLabel3 = new WinFormControl.ULabel(); | |||
| this.groupBox1 = new System.Windows.Forms.GroupBox(); | |||
| this.inStoreGrid = new WinFormControl.UDataGridView(); | |||
| this.I_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.I_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.I_ShortCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.I_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.I_Goods_Spec = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.I_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.I_InStoreTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.goodsNameLbl = new WinFormControl.ULabel(); | |||
| this.groupBox2 = new System.Windows.Forms.GroupBox(); | |||
| this.submitBtn = new WinFormControl.NButton(); | |||
| this.deleteBtn = new WinFormControl.NButton(); | |||
| this.backStoreGrid = new WinFormControl.UDataGridView(); | |||
| this.B_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.B_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.B_ShortCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.B_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.B_Goods_Spec = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.B_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.B_ProductTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.uLabel5 = new WinFormControl.ULabel(); | |||
| this.backBtn = new WinFormControl.NButton(); | |||
| this.groupBox3 = new System.Windows.Forms.GroupBox(); | |||
| this.unInstoreGrid = new WinFormControl.UDataGridView(); | |||
| this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.U_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.U_ShortCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.U_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.U_Goods_Spec = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.U_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.U_ProductTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.uLabel6 = new WinFormControl.ULabel(); | |||
| this.groupBox4 = new System.Windows.Forms.GroupBox(); | |||
| this.exceptionGrid = new WinFormControl.UDataGridView(); | |||
| this.E_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.E_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.E_BarCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.E_ExceptionInfo = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.uLabel4 = new WinFormControl.ULabel(); | |||
| this.clearErrorBtn = new WinFormControl.NButton(); | |||
| this.refreshBtn = new WinFormControl.NButton(); | |||
| this.panel1.SuspendLayout(); | |||
| this.groupBox1.SuspendLayout(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.inStoreGrid)).BeginInit(); | |||
| this.groupBox2.SuspendLayout(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.backStoreGrid)).BeginInit(); | |||
| this.groupBox3.SuspendLayout(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.unInstoreGrid)).BeginInit(); | |||
| this.groupBox4.SuspendLayout(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.exceptionGrid)).BeginInit(); | |||
| this.SuspendLayout(); | |||
| // | |||
| // panel1 | |||
| // | |||
| this.panel1.Controls.Add(this.barCodeBox); | |||
| this.panel1.Controls.Add(this.uLabel1); | |||
| this.panel1.Controls.Add(this.inStoreViewBtn); | |||
| this.panel1.Controls.Add(this.netStateWatch1); | |||
| this.panel1.Controls.Add(this.storeSelect); | |||
| this.panel1.Controls.Add(this.uLabel3); | |||
| this.panel1.Location = new System.Drawing.Point(0, 0); | |||
| this.panel1.Name = "panel1"; | |||
| this.panel1.Size = new System.Drawing.Size(583, 140); | |||
| this.panel1.TabIndex = 0; | |||
| // | |||
| // barCodeBox | |||
| // | |||
| this.barCodeBox.Font = new System.Drawing.Font("宋体", 14F); | |||
| this.barCodeBox.Location = new System.Drawing.Point(83, 33); | |||
| this.barCodeBox.Name = "barCodeBox"; | |||
| this.barCodeBox.Size = new System.Drawing.Size(391, 29); | |||
| this.barCodeBox.TabIndex = 20; | |||
| // | |||
| // uLabel1 | |||
| // | |||
| this.uLabel1.AutoSize = true; | |||
| this.uLabel1.BackColor = System.Drawing.Color.Transparent; | |||
| this.uLabel1.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.uLabel1.Location = new System.Drawing.Point(16, 37); | |||
| this.uLabel1.Name = "uLabel1"; | |||
| this.uLabel1.Size = new System.Drawing.Size(69, 20); | |||
| this.uLabel1.TabIndex = 21; | |||
| this.uLabel1.Text = "条码:"; | |||
| // | |||
| // inStoreViewBtn | |||
| // | |||
| this.inStoreViewBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); | |||
| this.inStoreViewBtn.ClickColor = System.Drawing.Color.YellowGreen; | |||
| this.inStoreViewBtn.Font = new System.Drawing.Font("宋体", 12F); | |||
| this.inStoreViewBtn.ForeColor = System.Drawing.Color.White; | |||
| this.inStoreViewBtn.Location = new System.Drawing.Point(379, 76); | |||
| this.inStoreViewBtn.Name = "inStoreViewBtn"; | |||
| this.inStoreViewBtn.PlaySound = false; | |||
| this.inStoreViewBtn.Size = new System.Drawing.Size(95, 45); | |||
| this.inStoreViewBtn.SoundType = WinFormControl.SoundType.Click; | |||
| this.inStoreViewBtn.TabIndex = 19; | |||
| this.inStoreViewBtn.Text = "入库表"; | |||
| this.inStoreViewBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); | |||
| this.inStoreViewBtn.UseVisualStyleBackColor = false; | |||
| this.inStoreViewBtn.Click += new System.EventHandler(this.inStoreViewBtn_Click); | |||
| // | |||
| // netStateWatch1 | |||
| // | |||
| this.netStateWatch1.BackColor = System.Drawing.Color.Transparent; | |||
| this.netStateWatch1.Location = new System.Drawing.Point(489, 3); | |||
| this.netStateWatch1.Name = "netStateWatch1"; | |||
| this.netStateWatch1.Size = new System.Drawing.Size(90, 39); | |||
| this.netStateWatch1.TabIndex = 18; | |||
| // | |||
| // storeSelect | |||
| // | |||
| this.storeSelect.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.storeSelect.FormattingEnabled = true; | |||
| this.storeSelect.Location = new System.Drawing.Point(83, 84); | |||
| this.storeSelect.Name = "storeSelect"; | |||
| this.storeSelect.Size = new System.Drawing.Size(240, 28); | |||
| this.storeSelect.TabIndex = 16; | |||
| // | |||
| // uLabel3 | |||
| // | |||
| this.uLabel3.AutoSize = true; | |||
| this.uLabel3.BackColor = System.Drawing.Color.Transparent; | |||
| this.uLabel3.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.uLabel3.Location = new System.Drawing.Point(16, 88); | |||
| this.uLabel3.Name = "uLabel3"; | |||
| this.uLabel3.Size = new System.Drawing.Size(69, 20); | |||
| this.uLabel3.TabIndex = 17; | |||
| this.uLabel3.Text = "仓库:"; | |||
| // | |||
| // groupBox1 | |||
| // | |||
| this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| | System.Windows.Forms.AnchorStyles.Left) | |||
| | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.groupBox1.Controls.Add(this.inStoreGrid); | |||
| this.groupBox1.Controls.Add(this.goodsNameLbl); | |||
| this.groupBox1.Location = new System.Drawing.Point(11, 159); | |||
| this.groupBox1.Name = "groupBox1"; | |||
| this.groupBox1.Size = new System.Drawing.Size(627, 434); | |||
| this.groupBox1.TabIndex = 1; | |||
| this.groupBox1.TabStop = false; | |||
| // | |||
| // inStoreGrid | |||
| // | |||
| this.inStoreGrid.AllowUserToAddRows = false; | |||
| this.inStoreGrid.AllowUserToDeleteRows = false; | |||
| this.inStoreGrid.AllowUserToResizeColumns = false; | |||
| this.inStoreGrid.AllowUserToResizeRows = false; | |||
| dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); | |||
| this.inStoreGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; | |||
| this.inStoreGrid.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| | System.Windows.Forms.AnchorStyles.Left) | |||
| | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.inStoreGrid.BackgroundColor = System.Drawing.Color.White; | |||
| this.inStoreGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; | |||
| dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; | |||
| dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 12F); | |||
| dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; | |||
| dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | |||
| this.inStoreGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; | |||
| this.inStoreGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; | |||
| this.inStoreGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | |||
| this.I_ID, | |||
| this.I_RowIndex, | |||
| this.I_ShortCode, | |||
| this.I_Goods_Name, | |||
| this.I_Goods_Spec, | |||
| this.I_Weight, | |||
| this.I_InStoreTime}); | |||
| this.inStoreGrid.Location = new System.Drawing.Point(3, 33); | |||
| this.inStoreGrid.MultiSelect = false; | |||
| this.inStoreGrid.Name = "inStoreGrid"; | |||
| this.inStoreGrid.ReadOnly = true; | |||
| this.inStoreGrid.RowHeadersVisible = false; | |||
| dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); | |||
| dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); | |||
| this.inStoreGrid.RowsDefaultCellStyle = dataGridViewCellStyle5; | |||
| this.inStoreGrid.RowTemplate.Height = 23; | |||
| this.inStoreGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; | |||
| this.inStoreGrid.Size = new System.Drawing.Size(618, 398); | |||
| this.inStoreGrid.TabIndex = 9; | |||
| // | |||
| // I_ID | |||
| // | |||
| this.I_ID.DataPropertyName = "ID"; | |||
| this.I_ID.HeaderText = "ID"; | |||
| this.I_ID.Name = "I_ID"; | |||
| this.I_ID.ReadOnly = true; | |||
| this.I_ID.Visible = false; | |||
| // | |||
| // I_RowIndex | |||
| // | |||
| this.I_RowIndex.DataPropertyName = "RowIndex"; | |||
| this.I_RowIndex.HeaderText = "序号"; | |||
| this.I_RowIndex.Name = "I_RowIndex"; | |||
| this.I_RowIndex.ReadOnly = true; | |||
| this.I_RowIndex.Width = 65; | |||
| // | |||
| // I_ShortCode | |||
| // | |||
| this.I_ShortCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.I_ShortCode.DataPropertyName = "ShortCode"; | |||
| this.I_ShortCode.HeaderText = "条码"; | |||
| this.I_ShortCode.MinimumWidth = 120; | |||
| this.I_ShortCode.Name = "I_ShortCode"; | |||
| this.I_ShortCode.ReadOnly = true; | |||
| // | |||
| // I_Goods_Name | |||
| // | |||
| this.I_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.I_Goods_Name.DataPropertyName = "Goods_Name"; | |||
| this.I_Goods_Name.FillWeight = 110F; | |||
| this.I_Goods_Name.HeaderText = "产品名称"; | |||
| this.I_Goods_Name.MinimumWidth = 120; | |||
| this.I_Goods_Name.Name = "I_Goods_Name"; | |||
| this.I_Goods_Name.ReadOnly = true; | |||
| // | |||
| // I_Goods_Spec | |||
| // | |||
| this.I_Goods_Spec.DataPropertyName = "Goods_Spec"; | |||
| this.I_Goods_Spec.HeaderText = "规格"; | |||
| this.I_Goods_Spec.Name = "I_Goods_Spec"; | |||
| this.I_Goods_Spec.ReadOnly = true; | |||
| this.I_Goods_Spec.Width = 70; | |||
| // | |||
| // I_Weight | |||
| // | |||
| this.I_Weight.DataPropertyName = "Weight"; | |||
| dataGridViewCellStyle3.Format = "#0.######"; | |||
| this.I_Weight.DefaultCellStyle = dataGridViewCellStyle3; | |||
| this.I_Weight.HeaderText = "重量"; | |||
| this.I_Weight.Name = "I_Weight"; | |||
| this.I_Weight.ReadOnly = true; | |||
| this.I_Weight.Width = 70; | |||
| // | |||
| // I_InStoreTime | |||
| // | |||
| this.I_InStoreTime.DataPropertyName = "InStoreTime"; | |||
| dataGridViewCellStyle4.Format = "T"; | |||
| dataGridViewCellStyle4.NullValue = null; | |||
| this.I_InStoreTime.DefaultCellStyle = dataGridViewCellStyle4; | |||
| this.I_InStoreTime.HeaderText = "入库时间"; | |||
| this.I_InStoreTime.Name = "I_InStoreTime"; | |||
| this.I_InStoreTime.ReadOnly = true; | |||
| this.I_InStoreTime.Width = 110; | |||
| // | |||
| // goodsNameLbl | |||
| // | |||
| this.goodsNameLbl.AutoSize = true; | |||
| this.goodsNameLbl.BackColor = System.Drawing.Color.White; | |||
| this.goodsNameLbl.Font = new System.Drawing.Font("宋体", 12F); | |||
| this.goodsNameLbl.ForeColor = System.Drawing.SystemColors.ControlText; | |||
| this.goodsNameLbl.Location = new System.Drawing.Point(6, 0); | |||
| this.goodsNameLbl.Name = "goodsNameLbl"; | |||
| this.goodsNameLbl.Size = new System.Drawing.Size(72, 16); | |||
| this.goodsNameLbl.TabIndex = 4; | |||
| this.goodsNameLbl.Text = "存货名称"; | |||
| // | |||
| // groupBox2 | |||
| // | |||
| this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.groupBox2.Controls.Add(this.submitBtn); | |||
| this.groupBox2.Controls.Add(this.deleteBtn); | |||
| this.groupBox2.Controls.Add(this.backStoreGrid); | |||
| this.groupBox2.Controls.Add(this.uLabel5); | |||
| this.groupBox2.Controls.Add(this.backBtn); | |||
| this.groupBox2.Location = new System.Drawing.Point(656, 159); | |||
| this.groupBox2.Name = "groupBox2"; | |||
| this.groupBox2.Size = new System.Drawing.Size(630, 241); | |||
| this.groupBox2.TabIndex = 2; | |||
| this.groupBox2.TabStop = false; | |||
| // | |||
| // submitBtn | |||
| // | |||
| this.submitBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); | |||
| this.submitBtn.ClickColor = System.Drawing.Color.YellowGreen; | |||
| this.submitBtn.Font = new System.Drawing.Font("宋体", 12F); | |||
| this.submitBtn.ForeColor = System.Drawing.Color.White; | |||
| this.submitBtn.Location = new System.Drawing.Point(356, 11); | |||
| this.submitBtn.Name = "submitBtn"; | |||
| this.submitBtn.PlaySound = false; | |||
| this.submitBtn.Size = new System.Drawing.Size(95, 45); | |||
| this.submitBtn.SoundType = WinFormControl.SoundType.Click; | |||
| this.submitBtn.TabIndex = 10; | |||
| this.submitBtn.Text = "提交"; | |||
| this.submitBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); | |||
| this.submitBtn.UseVisualStyleBackColor = false; | |||
| this.submitBtn.Click += new System.EventHandler(this.submitBtn_Click); | |||
| // | |||
| // deleteBtn | |||
| // | |||
| this.deleteBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); | |||
| this.deleteBtn.ClickColor = System.Drawing.Color.YellowGreen; | |||
| this.deleteBtn.Font = new System.Drawing.Font("宋体", 12F); | |||
| this.deleteBtn.ForeColor = System.Drawing.Color.White; | |||
| this.deleteBtn.Location = new System.Drawing.Point(212, 11); | |||
| this.deleteBtn.Name = "deleteBtn"; | |||
| this.deleteBtn.PlaySound = false; | |||
| this.deleteBtn.Size = new System.Drawing.Size(95, 45); | |||
| this.deleteBtn.SoundType = WinFormControl.SoundType.Click; | |||
| this.deleteBtn.TabIndex = 9; | |||
| this.deleteBtn.Text = "删除"; | |||
| this.deleteBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); | |||
| this.deleteBtn.UseVisualStyleBackColor = false; | |||
| this.deleteBtn.Click += new System.EventHandler(this.deleteBtn_Click); | |||
| // | |||
| // backStoreGrid | |||
| // | |||
| this.backStoreGrid.AllowUserToAddRows = false; | |||
| this.backStoreGrid.AllowUserToDeleteRows = false; | |||
| this.backStoreGrid.AllowUserToResizeColumns = false; | |||
| this.backStoreGrid.AllowUserToResizeRows = false; | |||
| dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); | |||
| this.backStoreGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6; | |||
| this.backStoreGrid.BackgroundColor = System.Drawing.Color.White; | |||
| this.backStoreGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; | |||
| dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; | |||
| dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 12F); | |||
| dataGridViewCellStyle7.ForeColor = System.Drawing.Color.White; | |||
| dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | |||
| this.backStoreGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7; | |||
| this.backStoreGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; | |||
| this.backStoreGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | |||
| this.B_ID, | |||
| this.B_RowIndex, | |||
| this.B_ShortCode, | |||
| this.B_Goods_Name, | |||
| this.B_Goods_Spec, | |||
| this.B_Weight, | |||
| this.B_ProductTime}); | |||
| this.backStoreGrid.Dock = System.Windows.Forms.DockStyle.Bottom; | |||
| this.backStoreGrid.Location = new System.Drawing.Point(3, 60); | |||
| this.backStoreGrid.MultiSelect = false; | |||
| this.backStoreGrid.Name = "backStoreGrid"; | |||
| this.backStoreGrid.ReadOnly = true; | |||
| this.backStoreGrid.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.backStoreGrid.RowsDefaultCellStyle = dataGridViewCellStyle10; | |||
| this.backStoreGrid.RowTemplate.Height = 23; | |||
| this.backStoreGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; | |||
| this.backStoreGrid.Size = new System.Drawing.Size(624, 178); | |||
| this.backStoreGrid.TabIndex = 8; | |||
| // | |||
| // B_ID | |||
| // | |||
| this.B_ID.DataPropertyName = "ID"; | |||
| this.B_ID.HeaderText = "ID"; | |||
| this.B_ID.Name = "B_ID"; | |||
| this.B_ID.ReadOnly = true; | |||
| this.B_ID.Visible = false; | |||
| // | |||
| // B_RowIndex | |||
| // | |||
| this.B_RowIndex.DataPropertyName = "RowIndex"; | |||
| this.B_RowIndex.HeaderText = "序号"; | |||
| this.B_RowIndex.Name = "B_RowIndex"; | |||
| this.B_RowIndex.ReadOnly = true; | |||
| this.B_RowIndex.Width = 65; | |||
| // | |||
| // B_ShortCode | |||
| // | |||
| this.B_ShortCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.B_ShortCode.DataPropertyName = "ShortCode"; | |||
| this.B_ShortCode.FillWeight = 120F; | |||
| this.B_ShortCode.HeaderText = "条码"; | |||
| this.B_ShortCode.MinimumWidth = 120; | |||
| this.B_ShortCode.Name = "B_ShortCode"; | |||
| this.B_ShortCode.ReadOnly = true; | |||
| // | |||
| // B_Goods_Name | |||
| // | |||
| this.B_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.B_Goods_Name.DataPropertyName = "Goods_Name"; | |||
| this.B_Goods_Name.FillWeight = 140F; | |||
| this.B_Goods_Name.HeaderText = "产品名称"; | |||
| this.B_Goods_Name.MinimumWidth = 140; | |||
| this.B_Goods_Name.Name = "B_Goods_Name"; | |||
| this.B_Goods_Name.ReadOnly = true; | |||
| // | |||
| // B_Goods_Spec | |||
| // | |||
| this.B_Goods_Spec.DataPropertyName = "Goods_Spec"; | |||
| this.B_Goods_Spec.HeaderText = "规格"; | |||
| this.B_Goods_Spec.Name = "B_Goods_Spec"; | |||
| this.B_Goods_Spec.ReadOnly = true; | |||
| this.B_Goods_Spec.Width = 70; | |||
| // | |||
| // B_Weight | |||
| // | |||
| this.B_Weight.DataPropertyName = "Weight"; | |||
| dataGridViewCellStyle8.Format = "#0.######"; | |||
| this.B_Weight.DefaultCellStyle = dataGridViewCellStyle8; | |||
| this.B_Weight.HeaderText = "重量"; | |||
| this.B_Weight.Name = "B_Weight"; | |||
| this.B_Weight.ReadOnly = true; | |||
| this.B_Weight.Width = 80; | |||
| // | |||
| // B_ProductTime | |||
| // | |||
| this.B_ProductTime.DataPropertyName = "ProductTime"; | |||
| dataGridViewCellStyle9.Format = "T"; | |||
| dataGridViewCellStyle9.NullValue = null; | |||
| this.B_ProductTime.DefaultCellStyle = dataGridViewCellStyle9; | |||
| this.B_ProductTime.HeaderText = "生产时间"; | |||
| this.B_ProductTime.Name = "B_ProductTime"; | |||
| this.B_ProductTime.ReadOnly = true; | |||
| this.B_ProductTime.Width = 110; | |||
| // | |||
| // uLabel5 | |||
| // | |||
| this.uLabel5.AutoSize = true; | |||
| this.uLabel5.BackColor = System.Drawing.Color.White; | |||
| this.uLabel5.Font = new System.Drawing.Font("宋体", 12F); | |||
| this.uLabel5.ForeColor = System.Drawing.SystemColors.ControlText; | |||
| this.uLabel5.Location = new System.Drawing.Point(6, 0); | |||
| this.uLabel5.Name = "uLabel5"; | |||
| this.uLabel5.Size = new System.Drawing.Size(40, 16); | |||
| this.uLabel5.TabIndex = 6; | |||
| this.uLabel5.Text = "退库"; | |||
| // | |||
| // backBtn | |||
| // | |||
| this.backBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); | |||
| this.backBtn.ClickColor = System.Drawing.Color.YellowGreen; | |||
| this.backBtn.Font = new System.Drawing.Font("宋体", 12F); | |||
| this.backBtn.ForeColor = System.Drawing.Color.White; | |||
| this.backBtn.Location = new System.Drawing.Point(64, 11); | |||
| this.backBtn.Name = "backBtn"; | |||
| this.backBtn.PlaySound = false; | |||
| this.backBtn.Size = new System.Drawing.Size(95, 45); | |||
| this.backBtn.SoundType = WinFormControl.SoundType.Click; | |||
| this.backBtn.TabIndex = 0; | |||
| this.backBtn.Text = "退库"; | |||
| this.backBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); | |||
| this.backBtn.UseVisualStyleBackColor = false; | |||
| this.backBtn.WithStataHode = true; | |||
| this.backBtn.Click += new System.EventHandler(this.backBtn_Click); | |||
| // | |||
| // groupBox3 | |||
| // | |||
| this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.groupBox3.Controls.Add(this.unInstoreGrid); | |||
| this.groupBox3.Controls.Add(this.uLabel6); | |||
| this.groupBox3.Location = new System.Drawing.Point(656, 428); | |||
| this.groupBox3.Name = "groupBox3"; | |||
| this.groupBox3.Size = new System.Drawing.Size(630, 165); | |||
| this.groupBox3.TabIndex = 3; | |||
| this.groupBox3.TabStop = false; | |||
| this.groupBox3.Text = "groupBox3"; | |||
| // | |||
| // unInstoreGrid | |||
| // | |||
| this.unInstoreGrid.AllowUserToAddRows = false; | |||
| this.unInstoreGrid.AllowUserToDeleteRows = false; | |||
| this.unInstoreGrid.AllowUserToResizeColumns = false; | |||
| this.unInstoreGrid.AllowUserToResizeRows = false; | |||
| dataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); | |||
| this.unInstoreGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11; | |||
| this.unInstoreGrid.BackgroundColor = System.Drawing.Color.White; | |||
| this.unInstoreGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; | |||
| dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; | |||
| dataGridViewCellStyle12.Font = new System.Drawing.Font("宋体", 12F); | |||
| dataGridViewCellStyle12.ForeColor = System.Drawing.Color.White; | |||
| dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | |||
| this.unInstoreGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle12; | |||
| this.unInstoreGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; | |||
| this.unInstoreGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | |||
| this.dataGridViewTextBoxColumn8, | |||
| this.U_RowIndex, | |||
| this.U_ShortCode, | |||
| this.U_Goods_Name, | |||
| this.U_Goods_Spec, | |||
| this.U_Weight, | |||
| this.U_ProductTime}); | |||
| this.unInstoreGrid.Dock = System.Windows.Forms.DockStyle.Fill; | |||
| this.unInstoreGrid.Location = new System.Drawing.Point(3, 17); | |||
| this.unInstoreGrid.MultiSelect = false; | |||
| this.unInstoreGrid.Name = "unInstoreGrid"; | |||
| this.unInstoreGrid.ReadOnly = true; | |||
| this.unInstoreGrid.RowHeadersVisible = false; | |||
| dataGridViewCellStyle15.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); | |||
| dataGridViewCellStyle15.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); | |||
| this.unInstoreGrid.RowsDefaultCellStyle = dataGridViewCellStyle15; | |||
| this.unInstoreGrid.RowTemplate.Height = 23; | |||
| this.unInstoreGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; | |||
| this.unInstoreGrid.Size = new System.Drawing.Size(624, 145); | |||
| this.unInstoreGrid.TabIndex = 9; | |||
| // | |||
| // dataGridViewTextBoxColumn8 | |||
| // | |||
| this.dataGridViewTextBoxColumn8.DataPropertyName = "U_ID"; | |||
| this.dataGridViewTextBoxColumn8.HeaderText = "ID"; | |||
| this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8"; | |||
| this.dataGridViewTextBoxColumn8.ReadOnly = true; | |||
| this.dataGridViewTextBoxColumn8.Visible = false; | |||
| // | |||
| // U_RowIndex | |||
| // | |||
| this.U_RowIndex.DataPropertyName = "RowIndex"; | |||
| this.U_RowIndex.HeaderText = "序号"; | |||
| this.U_RowIndex.Name = "U_RowIndex"; | |||
| this.U_RowIndex.ReadOnly = true; | |||
| this.U_RowIndex.Width = 65; | |||
| // | |||
| // U_ShortCode | |||
| // | |||
| this.U_ShortCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.U_ShortCode.DataPropertyName = "ShortCode"; | |||
| this.U_ShortCode.FillWeight = 120F; | |||
| this.U_ShortCode.HeaderText = "条码"; | |||
| this.U_ShortCode.MinimumWidth = 120; | |||
| this.U_ShortCode.Name = "U_ShortCode"; | |||
| this.U_ShortCode.ReadOnly = true; | |||
| // | |||
| // U_Goods_Name | |||
| // | |||
| this.U_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.U_Goods_Name.DataPropertyName = "Goods_Name"; | |||
| this.U_Goods_Name.FillWeight = 140F; | |||
| this.U_Goods_Name.HeaderText = "产品名称"; | |||
| this.U_Goods_Name.MinimumWidth = 140; | |||
| this.U_Goods_Name.Name = "U_Goods_Name"; | |||
| this.U_Goods_Name.ReadOnly = true; | |||
| // | |||
| // U_Goods_Spec | |||
| // | |||
| this.U_Goods_Spec.DataPropertyName = "Goods_Spec"; | |||
| this.U_Goods_Spec.HeaderText = "规格"; | |||
| this.U_Goods_Spec.Name = "U_Goods_Spec"; | |||
| this.U_Goods_Spec.ReadOnly = true; | |||
| this.U_Goods_Spec.Width = 70; | |||
| // | |||
| // U_Weight | |||
| // | |||
| this.U_Weight.DataPropertyName = "Weight"; | |||
| dataGridViewCellStyle13.Format = "#0.######"; | |||
| this.U_Weight.DefaultCellStyle = dataGridViewCellStyle13; | |||
| this.U_Weight.HeaderText = "重量"; | |||
| this.U_Weight.Name = "U_Weight"; | |||
| this.U_Weight.ReadOnly = true; | |||
| this.U_Weight.Width = 80; | |||
| // | |||
| // U_ProductTime | |||
| // | |||
| this.U_ProductTime.DataPropertyName = "ProductTime"; | |||
| dataGridViewCellStyle14.Format = "T"; | |||
| dataGridViewCellStyle14.NullValue = null; | |||
| this.U_ProductTime.DefaultCellStyle = dataGridViewCellStyle14; | |||
| this.U_ProductTime.HeaderText = "生产时间"; | |||
| this.U_ProductTime.MinimumWidth = 2; | |||
| this.U_ProductTime.Name = "U_ProductTime"; | |||
| this.U_ProductTime.ReadOnly = true; | |||
| this.U_ProductTime.Width = 110; | |||
| // | |||
| // uLabel6 | |||
| // | |||
| this.uLabel6.AutoSize = true; | |||
| this.uLabel6.BackColor = System.Drawing.Color.White; | |||
| this.uLabel6.Font = new System.Drawing.Font("宋体", 12F); | |||
| this.uLabel6.ForeColor = System.Drawing.SystemColors.ControlText; | |||
| this.uLabel6.Location = new System.Drawing.Point(6, 0); | |||
| this.uLabel6.Name = "uLabel6"; | |||
| this.uLabel6.Size = new System.Drawing.Size(88, 16); | |||
| this.uLabel6.TabIndex = 7; | |||
| this.uLabel6.Text = "未入库条码"; | |||
| // | |||
| // groupBox4 | |||
| // | |||
| this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.groupBox4.Controls.Add(this.exceptionGrid); | |||
| this.groupBox4.Controls.Add(this.uLabel4); | |||
| this.groupBox4.Location = new System.Drawing.Point(656, 16); | |||
| this.groupBox4.Name = "groupBox4"; | |||
| this.groupBox4.Size = new System.Drawing.Size(630, 124); | |||
| this.groupBox4.TabIndex = 4; | |||
| this.groupBox4.TabStop = false; | |||
| this.groupBox4.Text = "groupBox4"; | |||
| // | |||
| // exceptionGrid | |||
| // | |||
| this.exceptionGrid.AllowUserToAddRows = false; | |||
| this.exceptionGrid.AllowUserToDeleteRows = false; | |||
| this.exceptionGrid.AllowUserToResizeColumns = false; | |||
| this.exceptionGrid.AllowUserToResizeRows = false; | |||
| dataGridViewCellStyle16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); | |||
| this.exceptionGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle16; | |||
| this.exceptionGrid.BackgroundColor = System.Drawing.Color.White; | |||
| this.exceptionGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; | |||
| dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; | |||
| dataGridViewCellStyle17.Font = new System.Drawing.Font("宋体", 12F); | |||
| dataGridViewCellStyle17.ForeColor = System.Drawing.Color.White; | |||
| dataGridViewCellStyle17.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | |||
| this.exceptionGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle17; | |||
| this.exceptionGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; | |||
| this.exceptionGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | |||
| this.E_ID, | |||
| this.E_RowIndex, | |||
| this.E_BarCode, | |||
| this.E_ExceptionInfo}); | |||
| this.exceptionGrid.Dock = System.Windows.Forms.DockStyle.Fill; | |||
| this.exceptionGrid.Location = new System.Drawing.Point(3, 17); | |||
| this.exceptionGrid.MultiSelect = false; | |||
| this.exceptionGrid.Name = "exceptionGrid"; | |||
| this.exceptionGrid.ReadOnly = true; | |||
| this.exceptionGrid.RowHeadersVisible = false; | |||
| dataGridViewCellStyle18.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); | |||
| dataGridViewCellStyle18.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); | |||
| this.exceptionGrid.RowsDefaultCellStyle = dataGridViewCellStyle18; | |||
| this.exceptionGrid.RowTemplate.Height = 23; | |||
| this.exceptionGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; | |||
| this.exceptionGrid.Size = new System.Drawing.Size(624, 104); | |||
| this.exceptionGrid.TabIndex = 9; | |||
| // | |||
| // E_ID | |||
| // | |||
| this.E_ID.DataPropertyName = "ID"; | |||
| this.E_ID.HeaderText = "ID"; | |||
| this.E_ID.Name = "E_ID"; | |||
| this.E_ID.ReadOnly = true; | |||
| this.E_ID.Visible = false; | |||
| // | |||
| // E_RowIndex | |||
| // | |||
| this.E_RowIndex.DataPropertyName = "ID"; | |||
| this.E_RowIndex.HeaderText = "异常号"; | |||
| this.E_RowIndex.Name = "E_RowIndex"; | |||
| this.E_RowIndex.ReadOnly = true; | |||
| // | |||
| // E_BarCode | |||
| // | |||
| this.E_BarCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.E_BarCode.DataPropertyName = "BarCode"; | |||
| this.E_BarCode.HeaderText = "条码"; | |||
| this.E_BarCode.Name = "E_BarCode"; | |||
| this.E_BarCode.ReadOnly = true; | |||
| // | |||
| // E_ExceptionInfo | |||
| // | |||
| this.E_ExceptionInfo.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.E_ExceptionInfo.DataPropertyName = "ExceptionInfo"; | |||
| this.E_ExceptionInfo.HeaderText = "异常信息"; | |||
| this.E_ExceptionInfo.Name = "E_ExceptionInfo"; | |||
| this.E_ExceptionInfo.ReadOnly = true; | |||
| // | |||
| // uLabel4 | |||
| // | |||
| this.uLabel4.AutoSize = true; | |||
| this.uLabel4.BackColor = System.Drawing.Color.White; | |||
| this.uLabel4.Font = new System.Drawing.Font("宋体", 12F); | |||
| this.uLabel4.ForeColor = System.Drawing.SystemColors.ControlText; | |||
| this.uLabel4.Location = new System.Drawing.Point(6, -1); | |||
| this.uLabel4.Name = "uLabel4"; | |||
| this.uLabel4.Size = new System.Drawing.Size(72, 16); | |||
| this.uLabel4.TabIndex = 5; | |||
| this.uLabel4.Text = "异常记录"; | |||
| // | |||
| // clearErrorBtn | |||
| // | |||
| this.clearErrorBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.clearErrorBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); | |||
| this.clearErrorBtn.ClickColor = System.Drawing.Color.YellowGreen; | |||
| this.clearErrorBtn.Font = new System.Drawing.Font("宋体", 12F); | |||
| this.clearErrorBtn.ForeColor = System.Drawing.Color.White; | |||
| this.clearErrorBtn.Location = new System.Drawing.Point(1191, 134); | |||
| this.clearErrorBtn.Name = "clearErrorBtn"; | |||
| this.clearErrorBtn.PlaySound = false; | |||
| this.clearErrorBtn.Size = new System.Drawing.Size(95, 32); | |||
| this.clearErrorBtn.SoundType = WinFormControl.SoundType.Click; | |||
| this.clearErrorBtn.TabIndex = 5; | |||
| this.clearErrorBtn.Text = "清理异常"; | |||
| this.clearErrorBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); | |||
| this.clearErrorBtn.UseVisualStyleBackColor = false; | |||
| this.clearErrorBtn.Click += new System.EventHandler(this.clearErrorBtn_Click); | |||
| // | |||
| // refreshBtn | |||
| // | |||
| this.refreshBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.refreshBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); | |||
| this.refreshBtn.ClickColor = System.Drawing.Color.YellowGreen; | |||
| this.refreshBtn.Font = new System.Drawing.Font("宋体", 12F); | |||
| this.refreshBtn.ForeColor = System.Drawing.Color.White; | |||
| this.refreshBtn.Location = new System.Drawing.Point(1191, 401); | |||
| this.refreshBtn.Name = "refreshBtn"; | |||
| this.refreshBtn.PlaySound = false; | |||
| this.refreshBtn.Size = new System.Drawing.Size(95, 32); | |||
| this.refreshBtn.SoundType = WinFormControl.SoundType.Click; | |||
| this.refreshBtn.TabIndex = 6; | |||
| this.refreshBtn.Text = "刷新"; | |||
| this.refreshBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); | |||
| this.refreshBtn.UseVisualStyleBackColor = false; | |||
| this.refreshBtn.Click += new System.EventHandler(this.refreshBtn_Click); | |||
| // | |||
| // SegmentInStoreForm | |||
| // | |||
| this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); | |||
| this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |||
| this.BackColor = System.Drawing.Color.White; | |||
| this.ClientSize = new System.Drawing.Size(1305, 611); | |||
| this.Controls.Add(this.refreshBtn); | |||
| this.Controls.Add(this.clearErrorBtn); | |||
| this.Controls.Add(this.groupBox4); | |||
| this.Controls.Add(this.panel1); | |||
| this.Controls.Add(this.groupBox3); | |||
| this.Controls.Add(this.groupBox2); | |||
| this.Controls.Add(this.groupBox1); | |||
| this.ImeMode = System.Windows.Forms.ImeMode.Disable; | |||
| this.KeyPreview = true; | |||
| this.Name = "SegmentInStoreForm"; | |||
| this.Text = "扫码入库"; | |||
| this.WindowState = System.Windows.Forms.FormWindowState.Maximized; | |||
| this.panel1.ResumeLayout(false); | |||
| this.panel1.PerformLayout(); | |||
| this.groupBox1.ResumeLayout(false); | |||
| this.groupBox1.PerformLayout(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.inStoreGrid)).EndInit(); | |||
| this.groupBox2.ResumeLayout(false); | |||
| this.groupBox2.PerformLayout(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.backStoreGrid)).EndInit(); | |||
| this.groupBox3.ResumeLayout(false); | |||
| this.groupBox3.PerformLayout(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.unInstoreGrid)).EndInit(); | |||
| this.groupBox4.ResumeLayout(false); | |||
| this.groupBox4.PerformLayout(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.exceptionGrid)).EndInit(); | |||
| this.ResumeLayout(false); | |||
| } | |||
| #endregion | |||
| private System.Windows.Forms.Panel panel1; | |||
| private System.Windows.Forms.GroupBox groupBox1; | |||
| private WinFormControl.ULabel goodsNameLbl; | |||
| private System.Windows.Forms.GroupBox groupBox2; | |||
| private System.Windows.Forms.GroupBox groupBox3; | |||
| private System.Windows.Forms.ComboBox storeSelect; | |||
| private WinFormControl.ULabel uLabel3; | |||
| private WinFormControl.NetStateWatch netStateWatch1; | |||
| private WinFormControl.ULabel uLabel5; | |||
| private WinFormControl.ULabel uLabel6; | |||
| private System.Windows.Forms.GroupBox groupBox4; | |||
| private WinFormControl.ULabel uLabel4; | |||
| private WinFormControl.UDataGridView backStoreGrid; | |||
| private WinFormControl.UDataGridView exceptionGrid; | |||
| private WinFormControl.UDataGridView unInstoreGrid; | |||
| private WinFormControl.UDataGridView inStoreGrid; | |||
| private WinFormControl.NButton backBtn; | |||
| private WinFormControl.NButton submitBtn; | |||
| private WinFormControl.NButton deleteBtn; | |||
| private WinFormControl.NButton inStoreViewBtn; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn E_ID; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn E_RowIndex; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn E_BarCode; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn E_ExceptionInfo; | |||
| private WinFormControl.NButton clearErrorBtn; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn B_ID; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn B_RowIndex; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn B_ShortCode; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn B_Goods_Name; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn B_Goods_Spec; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn B_Weight; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn B_ProductTime; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn8; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn U_RowIndex; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn U_ShortCode; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn U_Goods_Name; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn U_Goods_Spec; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn U_Weight; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn U_ProductTime; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn I_ID; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn I_RowIndex; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn I_ShortCode; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn I_Goods_Name; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn I_Goods_Spec; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn I_Weight; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn I_InStoreTime; | |||
| private System.Windows.Forms.TextBox barCodeBox; | |||
| private WinFormControl.ULabel uLabel1; | |||
| private WinFormControl.NButton refreshBtn; | |||
| } | |||
| } | |||
| @ -1,326 +0,0 @@ | |||
| using ButcherFactory.BO; | |||
| using ButcherFactory.BO.Rpcs; | |||
| using ButcherFactory.BO.Utils; | |||
| using System; | |||
| using System.Collections.Generic; | |||
| using System.ComponentModel; | |||
| using System.Data; | |||
| using System.Drawing; | |||
| using System.Linq; | |||
| using System.Text; | |||
| using System.Threading; | |||
| using System.Threading.Tasks; | |||
| using System.Windows.Forms; | |||
| using ButcherFactory.Utils; | |||
| using ButcherFactory.BO.LocalBL; | |||
| using ButcherFactory.Controls; | |||
| using WebSocketSharp; | |||
| namespace ButcherFactory.SegmentInStore_ | |||
| { | |||
| public partial class SegmentInStoreForm : Form, IWithRoleForm | |||
| { | |||
| #region IWithRoleForm | |||
| public List<short> RoleName | |||
| { | |||
| get { return new List<short> { (short)设备类别.扫码入库 }; } | |||
| } | |||
| public Form Generate() | |||
| { | |||
| return this; | |||
| } | |||
| #endregion | |||
| Thread uploadData; | |||
| Thread checkHasData; | |||
| BindingList<SegmentInStore> inStoreList; | |||
| BindingList<SegmentInStore> unInstoreList; | |||
| BindingList<SegmentCodeError> exceptionList; | |||
| BindingList<SegmentInStore> backStoreList; | |||
| long? storeID; | |||
| bool isBack = false; | |||
| WebSocket ws; | |||
| public SegmentInStoreForm() | |||
| { | |||
| InitializeComponent(); | |||
| netStateWatch1.GetConnectState = () => LoginUtil.TestConnection(500); | |||
| this.FormClosing += delegate | |||
| { | |||
| if (uploadData != null && uploadData.IsAlive) | |||
| uploadData.Abort(); | |||
| if (checkHasData != null && checkHasData.IsAlive) | |||
| checkHasData.Abort(); | |||
| if (ws != null) | |||
| ws.Close(); | |||
| }; | |||
| storeSelect.SelectedIndexChanged += delegate | |||
| { | |||
| if (storeSelect.SelectedValue == null) | |||
| storeID = null; | |||
| else | |||
| storeID = (long)storeSelect.SelectedValue; | |||
| XmlUtil.SerializerObjToFile(new SegmentInStoreFormConfig { StoreID = storeID }); | |||
| }; | |||
| this.Load += SegmentInStoreForm_Load; | |||
| } | |||
| private void SegmentInStoreForm_Load(object sender, EventArgs e) | |||
| { | |||
| ws = new WebSocket("ws://127.0.0.1:12346"); | |||
| ws.OnMessage += (s, l) => | |||
| { | |||
| ScannerDataRecieved(l.Data); | |||
| }; | |||
| ws.Connect(); | |||
| if (ws.ReadyState != WebSocketState.Open) | |||
| throw new Exception("扫码服务异常,请检查"); | |||
| } | |||
| protected override void OnLoad(EventArgs e) | |||
| { | |||
| base.OnLoad(e); | |||
| inStoreList = new BindingList<SegmentInStore>(); | |||
| var initTask = new Thread(LoadBind); | |||
| initTask.Start(); | |||
| uploadData = new Thread(UpLoadLocalData); | |||
| uploadData.Start(); | |||
| //var vid = Int32.Parse("0C2E", System.Globalization.NumberStyles.HexNumber); | |||
| //var pid = Int32.Parse("0927", System.Globalization.NumberStyles.HexNumber); | |||
| //_scanner = Scanner1902.Enumerate(vid, pid).FirstOrDefault(); | |||
| //if (_scanner != null) | |||
| //{ | |||
| // _scanner.DataRecieved += ScannerDataRecieved; | |||
| // _scanner.StartListen(); | |||
| //} | |||
| //else | |||
| //{ | |||
| // MessageBox.Show("请连接扫码枪后重新启动程序!"); | |||
| //} | |||
| } | |||
| private void LoadBind() | |||
| { | |||
| BLUtil.DeleteLocalDb<SegmentInStore>(); | |||
| if (netStateWatch1.NetState) | |||
| { | |||
| BaseInfoSyncRpc.SyncBaseInfo<WorkUnit>(); | |||
| BaseInfoSyncRpc.SyncProductBatch(1); | |||
| BaseInfoSyncRpc.SyncBaseInfo<Store>(); | |||
| } | |||
| this.Invoke(new Action(() => | |||
| { | |||
| var config = XmlUtil.DeserializeFromFile<SegmentInStoreFormConfig>(); | |||
| var m = config.StoreID; | |||
| storeSelect.EBindComboBox<Store>(x => x.ID == m); | |||
| BindInStoreGrid(); | |||
| BindExceptionGrid(); | |||
| BindBackGrid(); | |||
| BindUnInstall(); | |||
| })); | |||
| } | |||
| private void BindUnInstall() | |||
| { | |||
| unInstoreList = new BindingList<SegmentInStore>(SegmentInStoreBL.GetUnInStoreList()); | |||
| unInstoreGrid.DataSource = unInstoreList; | |||
| RefreshUnInStore(); | |||
| } | |||
| object _lockUn = new object(); | |||
| void RefreshUnInStore() | |||
| { | |||
| lock (_lockUn) | |||
| unInstoreGrid.Refresh(); | |||
| } | |||
| private void BindInStoreGrid() | |||
| { | |||
| inStoreList = SegmentInStoreBL.GetInStoreByStateList(0); | |||
| inStoreGrid.DataSource = inStoreList; | |||
| RefreshInStore(); | |||
| } | |||
| private void BindExceptionGrid() | |||
| { | |||
| exceptionList = SegmentInStoreBL.GetExceptionList(); | |||
| exceptionGrid.DataSource = exceptionList; | |||
| exceptionGrid.Refresh(); | |||
| } | |||
| private void BindBackGrid() | |||
| { | |||
| backStoreList = SegmentInStoreBL.GetInStoreByStateList(1); | |||
| backStoreGrid.DataSource = backStoreList; | |||
| backStoreGrid.Refresh(); | |||
| } | |||
| private void UpLoadLocalData() | |||
| { | |||
| while (true) | |||
| { | |||
| try | |||
| { | |||
| if (netStateWatch1.NetState) | |||
| SegmentInStoreBL.UploadSegmentInstoreInfo(); | |||
| } | |||
| catch { } | |||
| Thread.Sleep(1000); | |||
| } | |||
| } | |||
| private void ScannerDataRecieved(string data) | |||
| { | |||
| var code = ControlsUtil.ParseCode(data); | |||
| if (string.IsNullOrEmpty(code)) | |||
| return; | |||
| this.Invoke(new Action(() => | |||
| { | |||
| barCodeBox.Text = code; | |||
| if (isBack) | |||
| { | |||
| var idx = backStoreList.Any() ? backStoreList.First().RowIndex.Value : 0; | |||
| var msg = SegmentInStoreBL.SetAsBacking(code, idx + 1); | |||
| if (!string.IsNullOrEmpty(msg)) | |||
| { | |||
| InsertExceptionInfo(code, msg); | |||
| ControlsUtil.PlanVoice(msg); | |||
| //InfoBox.Show("错误", msg, Color.Red, 1, this); | |||
| return; | |||
| } | |||
| BindBackGrid(); | |||
| var fir = inStoreList.FirstOrDefault(x => x.BarCode == code); | |||
| if (fir != null) | |||
| { | |||
| inStoreList.Remove(fir); | |||
| RefreshInStore(); | |||
| } | |||
| } | |||
| else | |||
| { | |||
| var idx = inStoreList.Any() ? inStoreList.First().RowIndex.Value : 0; | |||
| var first = new SegmentInStore() { Store_ID = storeID, BarCode = code, RowIndex = idx + 1 }; | |||
| var msg = SegmentInStoreBL.InsertInStore(first); | |||
| if (!string.IsNullOrEmpty(msg)) | |||
| { | |||
| InsertExceptionInfo(code, msg); | |||
| ControlsUtil.PlanVoice(msg); | |||
| //InfoBox.Show("错误", msg, Color.Red, 1, this); | |||
| return; | |||
| } | |||
| inStoreList.Insert(0, first); | |||
| if (inStoreList.Count > 30) | |||
| inStoreList.RemoveAt(30); | |||
| if (first.Weight == null) | |||
| { | |||
| checkHasData = new Thread(new ParameterizedThreadStart(GetInfoFromServer)); | |||
| checkHasData.Start(first); | |||
| } | |||
| } | |||
| })); | |||
| } | |||
| private void GetInfoFromServer(object obj) | |||
| { | |||
| var entity = obj as SegmentInStore; | |||
| SegmentInStoreBL.RefreshFromServer(entity); | |||
| if (entity.Weight == null) | |||
| { | |||
| this.Invoke(new Action(() => | |||
| { | |||
| var msg = "条码无效"; | |||
| InsertExceptionInfo(entity.BarCode, msg); | |||
| SegmentInStoreBL.Delete(entity.ID); | |||
| inStoreList.Remove(entity); | |||
| ControlsUtil.PlanVoice(msg); | |||
| //InfoBox.Show("错误", msg, Color.Red, 1, this); | |||
| })); | |||
| } | |||
| this.Invoke(new Action(() => | |||
| { | |||
| RefreshInStore(); | |||
| var first = unInstoreList.FirstOrDefault(x => x.BarCode == entity.BarCode); | |||
| if (first != null) | |||
| { | |||
| try | |||
| { | |||
| unInstoreList.Remove(first); | |||
| RefreshUnInStore(); | |||
| } | |||
| catch { } | |||
| } | |||
| })); | |||
| } | |||
| object lc = new object(); | |||
| void RefreshInStore() | |||
| { | |||
| lock (lc) | |||
| inStoreGrid.Refresh(); | |||
| } | |||
| void InsertExceptionInfo(string barCode, string msg) | |||
| { | |||
| var error = new SegmentCodeError() | |||
| { | |||
| BarCode = barCode, | |||
| ExceptionInfo = msg | |||
| }; | |||
| SegmentInStoreBL.InsertSegmentCodeError(error); | |||
| exceptionList.Insert(0, error); | |||
| if (exceptionList.Count > 20) | |||
| exceptionList.RemoveAt(20); | |||
| exceptionGrid.Refresh(); | |||
| } | |||
| private void backBtn_Click(object sender, EventArgs e) | |||
| { | |||
| isBack = !isBack; | |||
| backBtn.Text = isBack ? "等待退库" : "退库"; | |||
| } | |||
| private void deleteBtn_Click(object sender, EventArgs e) | |||
| { | |||
| if (MessageBox.Show("确定删除该入库信息?", "删除确认", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK) | |||
| return; | |||
| if (backStoreGrid.CurrentRow == null) | |||
| return; | |||
| var id = (long)backStoreGrid.CurrentRow.Cells["B_ID"].Value; | |||
| SegmentInStoreBL.Delete(id); | |||
| var tag = backStoreList.First(x => x.ID == id); | |||
| backStoreList.Remove(tag); | |||
| backStoreGrid.Refresh(); | |||
| } | |||
| private void submitBtn_Click(object sender, EventArgs e) | |||
| { | |||
| if (backStoreList.Count == 0) | |||
| return; | |||
| var ids = backStoreList.Select(x => x.ID); | |||
| SegmentInStoreBL.SubmitBackStore(ids); | |||
| backStoreList.Clear(); | |||
| backStoreGrid.Refresh(); | |||
| } | |||
| private void inStoreViewBtn_Click(object sender, EventArgs e) | |||
| { | |||
| new InStoreSummaryView().ShowDialog(); | |||
| } | |||
| private void clearErrorBtn_Click(object sender, EventArgs e) | |||
| { | |||
| SegmentInStoreBL.ClearErrorMsg(); | |||
| exceptionList.Clear(); | |||
| exceptionGrid.Refresh(); | |||
| } | |||
| private void refreshBtn_Click(object sender, EventArgs e) | |||
| { | |||
| BindUnInstall(); | |||
| } | |||
| } | |||
| } | |||
| @ -1,141 +0,0 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | |||
| <root> | |||
| <!-- | |||
| Microsoft ResX Schema | |||
| Version 2.0 | |||
| The primary goals of this format is to allow a simple XML format | |||
| that is mostly human readable. The generation and parsing of the | |||
| various data types are done through the TypeConverter classes | |||
| associated with the data types. | |||
| Example: | |||
| ... ado.net/XML headers & schema ... | |||
| <resheader name="resmimetype">text/microsoft-resx</resheader> | |||
| <resheader name="version">2.0</resheader> | |||
| <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||
| <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||
| <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||
| <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||
| <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||
| <value>[base64 mime encoded serialized .NET Framework object]</value> | |||
| </data> | |||
| <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||
| <comment>This is a comment</comment> | |||
| </data> | |||
| There are any number of "resheader" rows that contain simple | |||
| name/value pairs. | |||
| Each data row contains a name, and value. The row also contains a | |||
| type or mimetype. Type corresponds to a .NET class that support | |||
| text/value conversion through the TypeConverter architecture. | |||
| Classes that don't support this are serialized and stored with the | |||
| mimetype set. | |||
| The mimetype is used for serialized objects, and tells the | |||
| ResXResourceReader how to depersist the object. This is currently not | |||
| extensible. For a given mimetype the value must be set accordingly: | |||
| Note - application/x-microsoft.net.object.binary.base64 is the format | |||
| that the ResXResourceWriter will generate, however the reader can | |||
| read any of the formats listed below. | |||
| mimetype: application/x-microsoft.net.object.binary.base64 | |||
| value : The object must be serialized with | |||
| : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |||
| : and then encoded with base64 encoding. | |||
| mimetype: application/x-microsoft.net.object.soap.base64 | |||
| value : The object must be serialized with | |||
| : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||
| : and then encoded with base64 encoding. | |||
| mimetype: application/x-microsoft.net.object.bytearray.base64 | |||
| value : The object must be serialized into a byte array | |||
| : using a System.ComponentModel.TypeConverter | |||
| : and then encoded with base64 encoding. | |||
| --> | |||
| <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||
| <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |||
| <xsd:element name="root" msdata:IsDataSet="true"> | |||
| <xsd:complexType> | |||
| <xsd:choice maxOccurs="unbounded"> | |||
| <xsd:element name="metadata"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" use="required" type="xsd:string" /> | |||
| <xsd:attribute name="type" type="xsd:string" /> | |||
| <xsd:attribute name="mimetype" type="xsd:string" /> | |||
| <xsd:attribute ref="xml:space" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="assembly"> | |||
| <xsd:complexType> | |||
| <xsd:attribute name="alias" type="xsd:string" /> | |||
| <xsd:attribute name="name" type="xsd:string" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="data"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
| <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |||
| <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||
| <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||
| <xsd:attribute ref="xml:space" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="resheader"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" type="xsd:string" use="required" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| </xsd:choice> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| </xsd:schema> | |||
| <resheader name="resmimetype"> | |||
| <value>text/microsoft-resx</value> | |||
| </resheader> | |||
| <resheader name="version"> | |||
| <value>2.0</value> | |||
| </resheader> | |||
| <resheader name="reader"> | |||
| <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
| </resheader> | |||
| <resheader name="writer"> | |||
| <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
| </resheader> | |||
| <metadata name="I_RowIndex.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="I_InStoreTime.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="B_RowIndex.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="B_ProductTime.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="U_RowIndex.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="U_ProductTime.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="E_RowIndex.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| </root> | |||
| @ -1,13 +0,0 @@ | |||
| using System; | |||
| using System.Collections.Generic; | |||
| using System.Linq; | |||
| using System.Text; | |||
| using System.Threading.Tasks; | |||
| namespace ButcherFactory.SegmentInStore_ | |||
| { | |||
| public class SegmentInStoreFormConfig | |||
| { | |||
| public long? StoreID { get; set; } | |||
| } | |||
| } | |||
| @ -1,726 +0,0 @@ | |||
| namespace ButcherFactory.SegmentProduction_ | |||
| { | |||
| partial class SegmentProductionForm | |||
| { | |||
| /// <summary> | |||
| /// Required designer variable. | |||
| /// </summary> | |||
| private System.ComponentModel.IContainer components = null; | |||
| /// <summary> | |||
| /// Clean up any resources being used. | |||
| /// </summary> | |||
| /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | |||
| protected override void Dispose(bool disposing) | |||
| { | |||
| if (disposing && (components != null)) | |||
| { | |||
| components.Dispose(); | |||
| } | |||
| base.Dispose(disposing); | |||
| } | |||
| #region Windows Form Designer generated code | |||
| /// <summary> | |||
| /// Required method for Designer support - do not modify | |||
| /// the contents of this method with the code editor. | |||
| /// </summary> | |||
| private void InitializeComponent() | |||
| { | |||
| System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SegmentProductionForm)); | |||
| 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(); | |||
| this.splitContainer1 = new System.Windows.Forms.SplitContainer(); | |||
| this.barPrintCheck = new System.Windows.Forms.CheckBox(); | |||
| this.closeBtn = new WinFormControl.UButton(); | |||
| this.uTimerLabel1 = new WinFormControl.UTimerLabel(); | |||
| this.productBatchSelect = new System.Windows.Forms.ComboBox(); | |||
| this.workUnitSelect = new System.Windows.Forms.ComboBox(); | |||
| this.uLabel1 = new WinFormControl.ULabel(); | |||
| this.uLabel2 = new WinFormControl.ULabel(); | |||
| this.uWeightControl1 = new WinFormControl.UWeightControl(); | |||
| this.splitContainer2 = new System.Windows.Forms.SplitContainer(); | |||
| this.submitBtn = new WinFormControl.UButton(); | |||
| this.deleteBtn = new WinFormControl.UButton(); | |||
| this.rePrintBtn = new WinFormControl.UButton(); | |||
| this.groupBox1 = new System.Windows.Forms.GroupBox(); | |||
| this.historyDataGrid = new WinFormControl.UDataGridView(); | |||
| this.H_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.H_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.H_BarCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.H_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.H_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.uLabel3 = new WinFormControl.ULabel(); | |||
| this.groupBox2 = new System.Windows.Forms.GroupBox(); | |||
| this.taskDataGrid = new WinFormControl.UDataGridView(); | |||
| this.T_Item = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.T_Need = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.T_Done = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.T_Last = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.GoodsLabel = new WinFormControl.ULabel(); | |||
| this.trunOutBtn = new WinFormControl.UButton(); | |||
| this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel(); | |||
| this.switchBtn = new WinFormControl.UButton(); | |||
| this.goodsSetBtn = new WinFormControl.UButton(); | |||
| this.endBtn = new WinFormControl.UButton(); | |||
| this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); | |||
| this.startBtn = new WinFormControl.UButton(); | |||
| this.netStateWatch1 = new WinFormControl.NetStateWatch(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); | |||
| this.splitContainer1.Panel1.SuspendLayout(); | |||
| this.splitContainer1.Panel2.SuspendLayout(); | |||
| this.splitContainer1.SuspendLayout(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); | |||
| this.splitContainer2.Panel1.SuspendLayout(); | |||
| this.splitContainer2.Panel2.SuspendLayout(); | |||
| this.splitContainer2.SuspendLayout(); | |||
| this.groupBox1.SuspendLayout(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.historyDataGrid)).BeginInit(); | |||
| this.groupBox2.SuspendLayout(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.taskDataGrid)).BeginInit(); | |||
| this.SuspendLayout(); | |||
| // | |||
| // splitContainer1 | |||
| // | |||
| this.splitContainer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; | |||
| this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; | |||
| this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; | |||
| this.splitContainer1.IsSplitterFixed = true; | |||
| this.splitContainer1.Location = new System.Drawing.Point(0, 0); | |||
| this.splitContainer1.Name = "splitContainer1"; | |||
| this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; | |||
| // | |||
| // splitContainer1.Panel1 | |||
| // | |||
| this.splitContainer1.Panel1.Controls.Add(this.barPrintCheck); | |||
| this.splitContainer1.Panel1.Controls.Add(this.closeBtn); | |||
| this.splitContainer1.Panel1.Controls.Add(this.uTimerLabel1); | |||
| this.splitContainer1.Panel1.Controls.Add(this.productBatchSelect); | |||
| this.splitContainer1.Panel1.Controls.Add(this.workUnitSelect); | |||
| this.splitContainer1.Panel1.Controls.Add(this.uLabel1); | |||
| this.splitContainer1.Panel1.Controls.Add(this.uLabel2); | |||
| this.splitContainer1.Panel1.Controls.Add(this.netStateWatch1); | |||
| this.splitContainer1.Panel1.Controls.Add(this.uWeightControl1); | |||
| // | |||
| // splitContainer1.Panel2 | |||
| // | |||
| this.splitContainer1.Panel2.Controls.Add(this.splitContainer2); | |||
| this.splitContainer1.Size = new System.Drawing.Size(1226, 602); | |||
| this.splitContainer1.SplitterDistance = 87; | |||
| this.splitContainer1.TabIndex = 0; | |||
| // | |||
| // barPrintCheck | |||
| // | |||
| this.barPrintCheck.AutoSize = true; | |||
| this.barPrintCheck.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.barPrintCheck.Location = new System.Drawing.Point(359, 50); | |||
| this.barPrintCheck.Name = "barPrintCheck"; | |||
| this.barPrintCheck.Size = new System.Drawing.Size(108, 24); | |||
| this.barPrintCheck.TabIndex = 16; | |||
| this.barPrintCheck.Text = "启用打码"; | |||
| this.barPrintCheck.UseVisualStyleBackColor = true; | |||
| // | |||
| // closeBtn | |||
| // | |||
| this.closeBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.closeBtn.AsClicked = false; | |||
| this.closeBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("closeBtn.BackgroundImage"))); | |||
| this.closeBtn.EnableGroup = false; | |||
| this.closeBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); | |||
| this.closeBtn.FlatAppearance.BorderSize = 0; | |||
| this.closeBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; | |||
| this.closeBtn.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.closeBtn.ForeColor = System.Drawing.Color.Black; | |||
| this.closeBtn.Location = new System.Drawing.Point(1106, 7); | |||
| this.closeBtn.Name = "closeBtn"; | |||
| this.closeBtn.PlaySound = false; | |||
| this.closeBtn.SelfControlEnable = false; | |||
| this.closeBtn.Size = new System.Drawing.Size(111, 34); | |||
| this.closeBtn.SoundType = WinFormControl.SoundType.Click; | |||
| this.closeBtn.TabIndex = 15; | |||
| this.closeBtn.Text = "关 闭"; | |||
| this.closeBtn.UseVisualStyleBackColor = true; | |||
| this.closeBtn.WithStataHode = false; | |||
| this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click); | |||
| // | |||
| // uTimerLabel1 | |||
| // | |||
| this.uTimerLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.uTimerLabel1.AutoSize = true; | |||
| this.uTimerLabel1.BackColor = System.Drawing.Color.Transparent; | |||
| this.uTimerLabel1.Font = new System.Drawing.Font("黑体", 12F); | |||
| this.uTimerLabel1.Format = "M月d日 H:mm:ss"; | |||
| this.uTimerLabel1.Location = new System.Drawing.Point(1084, 53); | |||
| this.uTimerLabel1.Name = "uTimerLabel1"; | |||
| this.uTimerLabel1.Size = new System.Drawing.Size(136, 16); | |||
| this.uTimerLabel1.TabIndex = 14; | |||
| this.uTimerLabel1.Text = "4月21日 16:32:19"; | |||
| // | |||
| // productBatchSelect | |||
| // | |||
| this.productBatchSelect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.productBatchSelect.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.productBatchSelect.FormattingEnabled = true; | |||
| this.productBatchSelect.Location = new System.Drawing.Point(903, 47); | |||
| this.productBatchSelect.Name = "productBatchSelect"; | |||
| this.productBatchSelect.Size = new System.Drawing.Size(170, 28); | |||
| this.productBatchSelect.TabIndex = 11; | |||
| // | |||
| // workUnitSelect | |||
| // | |||
| this.workUnitSelect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.workUnitSelect.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.workUnitSelect.FormattingEnabled = true; | |||
| this.workUnitSelect.Location = new System.Drawing.Point(903, 11); | |||
| this.workUnitSelect.Name = "workUnitSelect"; | |||
| this.workUnitSelect.Size = new System.Drawing.Size(170, 28); | |||
| this.workUnitSelect.TabIndex = 10; | |||
| // | |||
| // uLabel1 | |||
| // | |||
| this.uLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.uLabel1.AutoSize = true; | |||
| this.uLabel1.BackColor = System.Drawing.Color.Transparent; | |||
| this.uLabel1.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.uLabel1.Location = new System.Drawing.Point(802, 14); | |||
| this.uLabel1.Name = "uLabel1"; | |||
| this.uLabel1.Size = new System.Drawing.Size(109, 20); | |||
| this.uLabel1.TabIndex = 12; | |||
| this.uLabel1.Text = "工作单元:"; | |||
| // | |||
| // uLabel2 | |||
| // | |||
| this.uLabel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.uLabel2.AutoSize = true; | |||
| this.uLabel2.BackColor = System.Drawing.Color.Transparent; | |||
| this.uLabel2.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.uLabel2.Location = new System.Drawing.Point(802, 50); | |||
| this.uLabel2.Name = "uLabel2"; | |||
| this.uLabel2.Size = new System.Drawing.Size(109, 20); | |||
| this.uLabel2.TabIndex = 13; | |||
| this.uLabel2.Text = "生产批次:"; | |||
| // | |||
| // uWeightControl1 | |||
| // | |||
| this.uWeightControl1.BackColor = System.Drawing.Color.Transparent; | |||
| this.uWeightControl1.Location = new System.Drawing.Point(3, 3); | |||
| this.uWeightControl1.Name = "uWeightControl1"; | |||
| this.uWeightControl1.Size = new System.Drawing.Size(349, 78); | |||
| this.uWeightControl1.TabIndex = 0; | |||
| this.uWeightControl1.WeightFalg = null; | |||
| // | |||
| // splitContainer2 | |||
| // | |||
| this.splitContainer2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; | |||
| this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; | |||
| this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; | |||
| this.splitContainer2.Location = new System.Drawing.Point(0, 0); | |||
| this.splitContainer2.Name = "splitContainer2"; | |||
| // | |||
| // splitContainer2.Panel1 | |||
| // | |||
| this.splitContainer2.Panel1.Controls.Add(this.submitBtn); | |||
| this.splitContainer2.Panel1.Controls.Add(this.deleteBtn); | |||
| this.splitContainer2.Panel1.Controls.Add(this.rePrintBtn); | |||
| this.splitContainer2.Panel1.Controls.Add(this.groupBox1); | |||
| this.splitContainer2.Panel1.Controls.Add(this.groupBox2); | |||
| // | |||
| // splitContainer2.Panel2 | |||
| // | |||
| this.splitContainer2.Panel2.Controls.Add(this.trunOutBtn); | |||
| this.splitContainer2.Panel2.Controls.Add(this.flowLayoutPanel2); | |||
| this.splitContainer2.Panel2.Controls.Add(this.switchBtn); | |||
| this.splitContainer2.Panel2.Controls.Add(this.goodsSetBtn); | |||
| this.splitContainer2.Panel2.Controls.Add(this.endBtn); | |||
| this.splitContainer2.Panel2.Controls.Add(this.flowLayoutPanel1); | |||
| this.splitContainer2.Panel2.Controls.Add(this.startBtn); | |||
| this.splitContainer2.Size = new System.Drawing.Size(1226, 511); | |||
| this.splitContainer2.SplitterDistance = 554; | |||
| this.splitContainer2.TabIndex = 0; | |||
| // | |||
| // submitBtn | |||
| // | |||
| this.submitBtn.AsClicked = false; | |||
| this.submitBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("submitBtn.BackgroundImage"))); | |||
| this.submitBtn.EnableGroup = false; | |||
| this.submitBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); | |||
| this.submitBtn.FlatAppearance.BorderSize = 0; | |||
| this.submitBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; | |||
| this.submitBtn.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.submitBtn.ForeColor = System.Drawing.Color.Black; | |||
| this.submitBtn.Location = new System.Drawing.Point(249, 134); | |||
| this.submitBtn.Name = "submitBtn"; | |||
| this.submitBtn.PlaySound = false; | |||
| this.submitBtn.SelfControlEnable = false; | |||
| this.submitBtn.Size = new System.Drawing.Size(111, 34); | |||
| this.submitBtn.SoundType = WinFormControl.SoundType.Click; | |||
| this.submitBtn.TabIndex = 23; | |||
| this.submitBtn.Text = "提交"; | |||
| this.submitBtn.UseVisualStyleBackColor = true; | |||
| this.submitBtn.WithStataHode = false; | |||
| this.submitBtn.Click += new System.EventHandler(this.submitBtn_Click); | |||
| // | |||
| // deleteBtn | |||
| // | |||
| this.deleteBtn.AsClicked = false; | |||
| this.deleteBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("deleteBtn.BackgroundImage"))); | |||
| this.deleteBtn.EnableGroup = false; | |||
| this.deleteBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); | |||
| this.deleteBtn.FlatAppearance.BorderSize = 0; | |||
| this.deleteBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; | |||
| this.deleteBtn.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.deleteBtn.ForeColor = System.Drawing.Color.Black; | |||
| this.deleteBtn.Location = new System.Drawing.Point(129, 134); | |||
| this.deleteBtn.Name = "deleteBtn"; | |||
| this.deleteBtn.PlaySound = false; | |||
| this.deleteBtn.SelfControlEnable = false; | |||
| this.deleteBtn.Size = new System.Drawing.Size(111, 34); | |||
| this.deleteBtn.SoundType = WinFormControl.SoundType.Click; | |||
| this.deleteBtn.TabIndex = 22; | |||
| this.deleteBtn.Text = "删除"; | |||
| this.deleteBtn.UseVisualStyleBackColor = true; | |||
| this.deleteBtn.WithStataHode = false; | |||
| this.deleteBtn.Click += new System.EventHandler(this.deleteBtn_Click); | |||
| // | |||
| // rePrintBtn | |||
| // | |||
| this.rePrintBtn.AsClicked = false; | |||
| this.rePrintBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("rePrintBtn.BackgroundImage"))); | |||
| this.rePrintBtn.EnableGroup = false; | |||
| this.rePrintBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); | |||
| this.rePrintBtn.FlatAppearance.BorderSize = 0; | |||
| this.rePrintBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; | |||
| this.rePrintBtn.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.rePrintBtn.ForeColor = System.Drawing.Color.Black; | |||
| this.rePrintBtn.Location = new System.Drawing.Point(9, 134); | |||
| this.rePrintBtn.Name = "rePrintBtn"; | |||
| this.rePrintBtn.PlaySound = false; | |||
| this.rePrintBtn.SelfControlEnable = false; | |||
| this.rePrintBtn.Size = new System.Drawing.Size(111, 34); | |||
| this.rePrintBtn.SoundType = WinFormControl.SoundType.Click; | |||
| this.rePrintBtn.TabIndex = 21; | |||
| this.rePrintBtn.Text = "补打"; | |||
| this.rePrintBtn.UseVisualStyleBackColor = true; | |||
| this.rePrintBtn.WithStataHode = false; | |||
| this.rePrintBtn.Click += new System.EventHandler(this.rePrintBtn_Click); | |||
| // | |||
| // groupBox1 | |||
| // | |||
| this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| | System.Windows.Forms.AnchorStyles.Left) | |||
| | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.groupBox1.Controls.Add(this.historyDataGrid); | |||
| this.groupBox1.Controls.Add(this.uLabel3); | |||
| this.groupBox1.Location = new System.Drawing.Point(10, 174); | |||
| this.groupBox1.Name = "groupBox1"; | |||
| this.groupBox1.Padding = new System.Windows.Forms.Padding(5); | |||
| this.groupBox1.Size = new System.Drawing.Size(533, 332); | |||
| this.groupBox1.TabIndex = 5; | |||
| this.groupBox1.TabStop = false; | |||
| // | |||
| // historyDataGrid | |||
| // | |||
| this.historyDataGrid.AllowUserToAddRows = false; | |||
| this.historyDataGrid.AllowUserToDeleteRows = false; | |||
| this.historyDataGrid.AllowUserToResizeColumns = false; | |||
| this.historyDataGrid.AllowUserToResizeRows = false; | |||
| dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); | |||
| this.historyDataGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; | |||
| this.historyDataGrid.BackgroundColor = System.Drawing.Color.White; | |||
| this.historyDataGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; | |||
| dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; | |||
| dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 12F); | |||
| dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; | |||
| dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | |||
| this.historyDataGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; | |||
| this.historyDataGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; | |||
| this.historyDataGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | |||
| this.H_ID, | |||
| this.H_RowIndex, | |||
| this.H_BarCode, | |||
| this.H_Goods_Name, | |||
| this.H_Weight}); | |||
| this.historyDataGrid.Dock = System.Windows.Forms.DockStyle.Fill; | |||
| this.historyDataGrid.Location = new System.Drawing.Point(5, 19); | |||
| this.historyDataGrid.MultiSelect = false; | |||
| this.historyDataGrid.Name = "historyDataGrid"; | |||
| this.historyDataGrid.ReadOnly = true; | |||
| this.historyDataGrid.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.historyDataGrid.RowsDefaultCellStyle = dataGridViewCellStyle4; | |||
| this.historyDataGrid.RowTemplate.Height = 23; | |||
| this.historyDataGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; | |||
| this.historyDataGrid.Size = new System.Drawing.Size(523, 308); | |||
| this.historyDataGrid.TabIndex = 2; | |||
| // | |||
| // H_ID | |||
| // | |||
| this.H_ID.DataPropertyName = "ID"; | |||
| this.H_ID.HeaderText = "ID"; | |||
| this.H_ID.Name = "H_ID"; | |||
| this.H_ID.ReadOnly = true; | |||
| this.H_ID.Visible = false; | |||
| // | |||
| // H_RowIndex | |||
| // | |||
| this.H_RowIndex.DataPropertyName = "RowIndex"; | |||
| this.H_RowIndex.HeaderText = "序号"; | |||
| this.H_RowIndex.Name = "H_RowIndex"; | |||
| this.H_RowIndex.ReadOnly = true; | |||
| this.H_RowIndex.Width = 80; | |||
| // | |||
| // H_BarCode | |||
| // | |||
| this.H_BarCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.H_BarCode.DataPropertyName = "BarCode"; | |||
| this.H_BarCode.HeaderText = "条码"; | |||
| this.H_BarCode.Name = "H_BarCode"; | |||
| this.H_BarCode.ReadOnly = true; | |||
| // | |||
| // H_Goods_Name | |||
| // | |||
| this.H_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.H_Goods_Name.DataPropertyName = "Goods_Name"; | |||
| this.H_Goods_Name.HeaderText = "产品"; | |||
| this.H_Goods_Name.Name = "H_Goods_Name"; | |||
| this.H_Goods_Name.ReadOnly = true; | |||
| // | |||
| // H_Weight | |||
| // | |||
| this.H_Weight.DataPropertyName = "Weight"; | |||
| dataGridViewCellStyle3.Format = "#0.######"; | |||
| this.H_Weight.DefaultCellStyle = dataGridViewCellStyle3; | |||
| this.H_Weight.HeaderText = "重量"; | |||
| this.H_Weight.Name = "H_Weight"; | |||
| this.H_Weight.ReadOnly = true; | |||
| // | |||
| // uLabel3 | |||
| // | |||
| this.uLabel3.AutoSize = true; | |||
| this.uLabel3.BackColor = System.Drawing.Color.White; | |||
| this.uLabel3.Font = new System.Drawing.Font("宋体", 12F); | |||
| this.uLabel3.Location = new System.Drawing.Point(8, 0); | |||
| this.uLabel3.Name = "uLabel3"; | |||
| this.uLabel3.Size = new System.Drawing.Size(72, 16); | |||
| this.uLabel3.TabIndex = 1; | |||
| this.uLabel3.Text = "生产历史"; | |||
| // | |||
| // groupBox2 | |||
| // | |||
| this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | |||
| | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.groupBox2.Controls.Add(this.taskDataGrid); | |||
| this.groupBox2.Controls.Add(this.GoodsLabel); | |||
| this.groupBox2.Location = new System.Drawing.Point(9, 8); | |||
| this.groupBox2.Name = "groupBox2"; | |||
| this.groupBox2.Padding = new System.Windows.Forms.Padding(5); | |||
| this.groupBox2.Size = new System.Drawing.Size(533, 120); | |||
| this.groupBox2.TabIndex = 4; | |||
| this.groupBox2.TabStop = false; | |||
| // | |||
| // taskDataGrid | |||
| // | |||
| this.taskDataGrid.AllowUserToAddRows = false; | |||
| this.taskDataGrid.AllowUserToDeleteRows = false; | |||
| this.taskDataGrid.AllowUserToResizeColumns = false; | |||
| this.taskDataGrid.AllowUserToResizeRows = false; | |||
| dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); | |||
| this.taskDataGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5; | |||
| this.taskDataGrid.BackgroundColor = System.Drawing.Color.White; | |||
| this.taskDataGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; | |||
| dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; | |||
| dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 12F); | |||
| dataGridViewCellStyle6.ForeColor = System.Drawing.Color.White; | |||
| dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | |||
| this.taskDataGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6; | |||
| this.taskDataGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; | |||
| this.taskDataGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | |||
| this.T_Item, | |||
| this.T_Need, | |||
| this.T_Done, | |||
| this.T_Last}); | |||
| this.taskDataGrid.Dock = System.Windows.Forms.DockStyle.Fill; | |||
| this.taskDataGrid.Location = new System.Drawing.Point(5, 19); | |||
| this.taskDataGrid.MultiSelect = false; | |||
| this.taskDataGrid.Name = "taskDataGrid"; | |||
| this.taskDataGrid.ReadOnly = true; | |||
| this.taskDataGrid.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.taskDataGrid.RowsDefaultCellStyle = dataGridViewCellStyle10; | |||
| this.taskDataGrid.RowTemplate.Height = 23; | |||
| this.taskDataGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; | |||
| this.taskDataGrid.Size = new System.Drawing.Size(523, 96); | |||
| this.taskDataGrid.TabIndex = 2; | |||
| // | |||
| // T_Item | |||
| // | |||
| this.T_Item.DataPropertyName = "Item"; | |||
| this.T_Item.HeaderText = "项目"; | |||
| this.T_Item.Name = "T_Item"; | |||
| this.T_Item.ReadOnly = true; | |||
| // | |||
| // T_Need | |||
| // | |||
| this.T_Need.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.T_Need.DataPropertyName = "Need"; | |||
| dataGridViewCellStyle7.Format = "#0.######"; | |||
| this.T_Need.DefaultCellStyle = dataGridViewCellStyle7; | |||
| this.T_Need.HeaderText = "订货"; | |||
| this.T_Need.Name = "T_Need"; | |||
| this.T_Need.ReadOnly = true; | |||
| // | |||
| // T_Done | |||
| // | |||
| this.T_Done.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.T_Done.DataPropertyName = "Done"; | |||
| dataGridViewCellStyle8.Format = "#0.######"; | |||
| this.T_Done.DefaultCellStyle = dataGridViewCellStyle8; | |||
| this.T_Done.HeaderText = "完工"; | |||
| this.T_Done.Name = "T_Done"; | |||
| this.T_Done.ReadOnly = true; | |||
| // | |||
| // T_Last | |||
| // | |||
| this.T_Last.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.T_Last.DataPropertyName = "Last"; | |||
| dataGridViewCellStyle9.Format = "#0.######"; | |||
| this.T_Last.DefaultCellStyle = dataGridViewCellStyle9; | |||
| this.T_Last.HeaderText = "剩余"; | |||
| this.T_Last.Name = "T_Last"; | |||
| this.T_Last.ReadOnly = true; | |||
| // | |||
| // GoodsLabel | |||
| // | |||
| this.GoodsLabel.AutoSize = true; | |||
| this.GoodsLabel.BackColor = System.Drawing.Color.White; | |||
| this.GoodsLabel.Font = new System.Drawing.Font("宋体", 12F); | |||
| this.GoodsLabel.ForeColor = System.Drawing.Color.Red; | |||
| this.GoodsLabel.Location = new System.Drawing.Point(8, 0); | |||
| this.GoodsLabel.Name = "GoodsLabel"; | |||
| this.GoodsLabel.Size = new System.Drawing.Size(72, 16); | |||
| this.GoodsLabel.TabIndex = 1; | |||
| this.GoodsLabel.Text = "存货名称"; | |||
| // | |||
| // trunOutBtn | |||
| // | |||
| this.trunOutBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.trunOutBtn.AsClicked = false; | |||
| this.trunOutBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("trunOutBtn.BackgroundImage"))); | |||
| this.trunOutBtn.EnableGroup = false; | |||
| this.trunOutBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); | |||
| this.trunOutBtn.FlatAppearance.BorderSize = 0; | |||
| this.trunOutBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; | |||
| this.trunOutBtn.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.trunOutBtn.ForeColor = System.Drawing.Color.Black; | |||
| this.trunOutBtn.Location = new System.Drawing.Point(433, 7); | |||
| this.trunOutBtn.Name = "trunOutBtn"; | |||
| this.trunOutBtn.PlaySound = false; | |||
| this.trunOutBtn.SelfControlEnable = false; | |||
| this.trunOutBtn.Size = new System.Drawing.Size(111, 34); | |||
| this.trunOutBtn.SoundType = WinFormControl.SoundType.Click; | |||
| this.trunOutBtn.TabIndex = 22; | |||
| this.trunOutBtn.Text = "挂起"; | |||
| this.trunOutBtn.UseVisualStyleBackColor = true; | |||
| this.trunOutBtn.WithStataHode = false; | |||
| this.trunOutBtn.Click += new System.EventHandler(this.trunOutBtn_Click); | |||
| // | |||
| // flowLayoutPanel2 | |||
| // | |||
| this.flowLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| | System.Windows.Forms.AnchorStyles.Left) | |||
| | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.flowLayoutPanel2.AutoScroll = true; | |||
| this.flowLayoutPanel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; | |||
| this.flowLayoutPanel2.Location = new System.Drawing.Point(-3, 125); | |||
| this.flowLayoutPanel2.Name = "flowLayoutPanel2"; | |||
| this.flowLayoutPanel2.Size = new System.Drawing.Size(670, 384); | |||
| this.flowLayoutPanel2.TabIndex = 21; | |||
| // | |||
| // switchBtn | |||
| // | |||
| this.switchBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.switchBtn.AsClicked = false; | |||
| this.switchBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("switchBtn.BackgroundImage"))); | |||
| this.switchBtn.EnableGroup = false; | |||
| this.switchBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); | |||
| this.switchBtn.FlatAppearance.BorderSize = 0; | |||
| this.switchBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; | |||
| this.switchBtn.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.switchBtn.ForeColor = System.Drawing.Color.Black; | |||
| this.switchBtn.Location = new System.Drawing.Point(551, 7); | |||
| this.switchBtn.Name = "switchBtn"; | |||
| this.switchBtn.PlaySound = false; | |||
| this.switchBtn.SelfControlEnable = false; | |||
| this.switchBtn.Size = new System.Drawing.Size(111, 34); | |||
| this.switchBtn.SoundType = WinFormControl.SoundType.Click; | |||
| this.switchBtn.TabIndex = 20; | |||
| this.switchBtn.Text = "切换"; | |||
| this.switchBtn.UseVisualStyleBackColor = true; | |||
| this.switchBtn.WithStataHode = false; | |||
| this.switchBtn.Click += new System.EventHandler(this.switchBtn_Click); | |||
| // | |||
| // goodsSetBtn | |||
| // | |||
| this.goodsSetBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.goodsSetBtn.AsClicked = false; | |||
| this.goodsSetBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("goodsSetBtn.BackgroundImage"))); | |||
| this.goodsSetBtn.EnableGroup = false; | |||
| this.goodsSetBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); | |||
| this.goodsSetBtn.FlatAppearance.BorderSize = 0; | |||
| this.goodsSetBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; | |||
| this.goodsSetBtn.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.goodsSetBtn.ForeColor = System.Drawing.Color.Black; | |||
| this.goodsSetBtn.Location = new System.Drawing.Point(551, 52); | |||
| this.goodsSetBtn.Name = "goodsSetBtn"; | |||
| this.goodsSetBtn.PlaySound = false; | |||
| this.goodsSetBtn.SelfControlEnable = false; | |||
| this.goodsSetBtn.Size = new System.Drawing.Size(111, 62); | |||
| this.goodsSetBtn.SoundType = WinFormControl.SoundType.Click; | |||
| this.goodsSetBtn.TabIndex = 18; | |||
| this.goodsSetBtn.Text = "产品设置"; | |||
| this.goodsSetBtn.UseVisualStyleBackColor = true; | |||
| this.goodsSetBtn.WithStataHode = false; | |||
| this.goodsSetBtn.Click += new System.EventHandler(this.goodsSetBtn_Click); | |||
| // | |||
| // endBtn | |||
| // | |||
| this.endBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.endBtn.AsClicked = false; | |||
| this.endBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("endBtn.BackgroundImage"))); | |||
| this.endBtn.EnableGroup = false; | |||
| this.endBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); | |||
| this.endBtn.FlatAppearance.BorderSize = 0; | |||
| this.endBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; | |||
| this.endBtn.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.endBtn.ForeColor = System.Drawing.Color.Black; | |||
| this.endBtn.Location = new System.Drawing.Point(315, 7); | |||
| this.endBtn.Name = "endBtn"; | |||
| this.endBtn.PlaySound = false; | |||
| this.endBtn.SelfControlEnable = true; | |||
| this.endBtn.Size = new System.Drawing.Size(111, 34); | |||
| this.endBtn.SoundType = WinFormControl.SoundType.Click; | |||
| this.endBtn.TabIndex = 18; | |||
| this.endBtn.Text = "结束"; | |||
| this.endBtn.UseVisualStyleBackColor = true; | |||
| this.endBtn.WithStataHode = false; | |||
| this.endBtn.Click += new System.EventHandler(this.endBtn_Click); | |||
| // | |||
| // flowLayoutPanel1 | |||
| // | |||
| this.flowLayoutPanel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; | |||
| this.flowLayoutPanel1.Location = new System.Drawing.Point(-3, 49); | |||
| this.flowLayoutPanel1.Name = "flowLayoutPanel1"; | |||
| this.flowLayoutPanel1.Size = new System.Drawing.Size(547, 70); | |||
| this.flowLayoutPanel1.TabIndex = 0; | |||
| // | |||
| // startBtn | |||
| // | |||
| this.startBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.startBtn.AsClicked = false; | |||
| this.startBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("startBtn.BackgroundImage"))); | |||
| this.startBtn.EnableGroup = false; | |||
| this.startBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); | |||
| this.startBtn.FlatAppearance.BorderSize = 0; | |||
| this.startBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; | |||
| this.startBtn.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.startBtn.ForeColor = System.Drawing.Color.Black; | |||
| this.startBtn.Location = new System.Drawing.Point(197, 7); | |||
| this.startBtn.Name = "startBtn"; | |||
| this.startBtn.PlaySound = false; | |||
| this.startBtn.SelfControlEnable = true; | |||
| this.startBtn.Size = new System.Drawing.Size(111, 34); | |||
| this.startBtn.SoundType = WinFormControl.SoundType.Click; | |||
| this.startBtn.TabIndex = 17; | |||
| this.startBtn.Text = "开始"; | |||
| this.startBtn.UseVisualStyleBackColor = true; | |||
| this.startBtn.WithStataHode = false; | |||
| this.startBtn.Click += new System.EventHandler(this.startBtn_Click); | |||
| // | |||
| // netStateWatch1 | |||
| // | |||
| this.netStateWatch1.BackColor = System.Drawing.Color.Transparent; | |||
| this.netStateWatch1.Location = new System.Drawing.Point(359, 2); | |||
| this.netStateWatch1.Name = "netStateWatch1"; | |||
| this.netStateWatch1.Size = new System.Drawing.Size(90, 39); | |||
| this.netStateWatch1.TabIndex = 1; | |||
| // | |||
| // SegmentProductionForm | |||
| // | |||
| this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); | |||
| this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |||
| this.BackColor = System.Drawing.Color.White; | |||
| this.ClientSize = new System.Drawing.Size(1226, 602); | |||
| this.Controls.Add(this.splitContainer1); | |||
| this.Name = "SegmentProductionForm"; | |||
| this.Text = "分割品车间称重计数"; | |||
| this.WindowState = System.Windows.Forms.FormWindowState.Maximized; | |||
| this.splitContainer1.Panel1.ResumeLayout(false); | |||
| this.splitContainer1.Panel1.PerformLayout(); | |||
| this.splitContainer1.Panel2.ResumeLayout(false); | |||
| ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); | |||
| this.splitContainer1.ResumeLayout(false); | |||
| this.splitContainer2.Panel1.ResumeLayout(false); | |||
| this.splitContainer2.Panel2.ResumeLayout(false); | |||
| ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); | |||
| this.splitContainer2.ResumeLayout(false); | |||
| this.groupBox1.ResumeLayout(false); | |||
| this.groupBox1.PerformLayout(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.historyDataGrid)).EndInit(); | |||
| this.groupBox2.ResumeLayout(false); | |||
| this.groupBox2.PerformLayout(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.taskDataGrid)).EndInit(); | |||
| this.ResumeLayout(false); | |||
| } | |||
| #endregion | |||
| private System.Windows.Forms.SplitContainer splitContainer1; | |||
| private WinFormControl.UWeightControl uWeightControl1; | |||
| private WinFormControl.UButton closeBtn; | |||
| private WinFormControl.UTimerLabel uTimerLabel1; | |||
| private System.Windows.Forms.ComboBox productBatchSelect; | |||
| private System.Windows.Forms.ComboBox workUnitSelect; | |||
| private WinFormControl.ULabel uLabel1; | |||
| private WinFormControl.ULabel uLabel2; | |||
| private System.Windows.Forms.CheckBox barPrintCheck; | |||
| private WinFormControl.UButton switchBtn; | |||
| private WinFormControl.UButton endBtn; | |||
| private WinFormControl.UButton startBtn; | |||
| private System.Windows.Forms.SplitContainer splitContainer2; | |||
| private WinFormControl.UButton goodsSetBtn; | |||
| private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; | |||
| private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel2; | |||
| private System.Windows.Forms.GroupBox groupBox2; | |||
| private WinFormControl.UDataGridView taskDataGrid; | |||
| private WinFormControl.ULabel GoodsLabel; | |||
| private System.Windows.Forms.GroupBox groupBox1; | |||
| private WinFormControl.UDataGridView historyDataGrid; | |||
| private WinFormControl.ULabel uLabel3; | |||
| private WinFormControl.UButton submitBtn; | |||
| private WinFormControl.UButton deleteBtn; | |||
| private WinFormControl.UButton rePrintBtn; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn T_Item; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn T_Need; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn T_Done; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn T_Last; | |||
| private WinFormControl.UButton trunOutBtn; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn H_ID; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn H_RowIndex; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn H_BarCode; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn H_Goods_Name; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn H_Weight; | |||
| private WinFormControl.NetStateWatch netStateWatch1; | |||
| } | |||
| } | |||
| @ -1,319 +0,0 @@ | |||
| using ButcherFactory.BO; | |||
| using ButcherFactory.BO.Rpcs; | |||
| using ButcherFactory.BO.Utils; | |||
| using System; | |||
| using System.Collections.Generic; | |||
| using System.ComponentModel; | |||
| using System.Data; | |||
| using System.Drawing; | |||
| using System.Linq; | |||
| using System.Text; | |||
| using System.Threading; | |||
| using System.Threading.Tasks; | |||
| using System.Windows.Forms; | |||
| using ButcherFactory.Utils; | |||
| using ButcherFactory.BO.LocalBL; | |||
| using WinFormControl; | |||
| using ButcherFactory.Dialogs; | |||
| namespace ButcherFactory.SegmentProduction_ | |||
| { | |||
| public partial class SegmentProductionForm : Form, IWithRoleForm | |||
| { | |||
| public List<short> RoleName | |||
| { | |||
| //get { return new List<short> { (short)设备类别.分割生产 }; } | |||
| get { return new List<short> { -1 }; } | |||
| } | |||
| public Form Generate() | |||
| { | |||
| return this; | |||
| } | |||
| Thread uploadData; | |||
| BindingList<SegmentProduction> historyList; | |||
| BindingList<SegmentProduction> unSubmitList; | |||
| Dictionary<string, List<ClientGoodsSet_Detail>> goodsSetDic; | |||
| long? workUnitID; | |||
| long? batchID; | |||
| DateTime? batchDate; | |||
| void Start(bool start) | |||
| { | |||
| startBtn.Enabled = !start; | |||
| endBtn.Enabled = start; | |||
| } | |||
| //GroupID 标识有没有结束,同时是总码的标识。 | |||
| //TrunOutID 标识挂起,同时标识挂起的组。 点击挂起 或者切换,需要给该字段赋值,点击切换回来,需要清空 | |||
| public SegmentProductionForm() | |||
| { | |||
| InitializeComponent(); | |||
| netStateWatch1.GetConnectState = () => LoginUtil.TestConnection(500); | |||
| this.FormClosing += delegate | |||
| { | |||
| if (uploadData != null && uploadData.IsAlive) | |||
| uploadData.Abort(); | |||
| }; | |||
| workUnitSelect.SelectedIndexChanged += delegate | |||
| { | |||
| if (workUnitSelect.SelectedValue == null) | |||
| workUnitID = null; | |||
| else | |||
| workUnitID = (long)workUnitSelect.SelectedValue; | |||
| XmlUtil.SerializerObjToFile(new SegmentProductionFormConfig { WorkUnitID = workUnitID }); | |||
| }; | |||
| productBatchSelect.SelectedIndexChanged += delegate | |||
| { | |||
| if (productBatchSelect.SelectedValue == null) | |||
| { | |||
| batchID = null; | |||
| batchDate = null; | |||
| } | |||
| else | |||
| { | |||
| var entity = productBatchSelect.SelectedItem as ProductBatch; | |||
| batchID = entity.ID; | |||
| batchDate = entity.Date; | |||
| } | |||
| }; | |||
| } | |||
| protected override void OnLoad(EventArgs e) | |||
| { | |||
| base.OnLoad(e); | |||
| var initTask = new Thread(LoadBind); | |||
| initTask.Start(); | |||
| uploadData = new Thread(UpLoadLocalData); | |||
| uploadData.Start(); | |||
| } | |||
| void LoadBind() | |||
| { | |||
| this.Invoke(new Action(() => | |||
| { | |||
| if (netStateWatch1.NetState) | |||
| { | |||
| BaseInfoSyncRpc.SyncGoodsByTag(ApplyClient.分割品); | |||
| BaseInfoSyncRpc.SyncBaseInfo<WorkUnit>(); | |||
| BaseInfoSyncRpc.SyncProductBatch(1); | |||
| } | |||
| productBatchSelect.EBindComboBox<ProductBatch>(x => x.Date == DateTime.Today, 6, "Date"); | |||
| var config = XmlUtil.DeserializeFromFile<SegmentProductionFormConfig>(); | |||
| var m = config.WorkUnitID; | |||
| workUnitSelect.EBindComboBox<WorkUnit>(x => x.ID == m, top: 100); | |||
| BindGoods(); | |||
| BindGrid(); | |||
| })); | |||
| } | |||
| void BindGoods() | |||
| { | |||
| goodsSetDic = FormClientGoodsSetBL.GetSelectedDetail(); | |||
| flowLayoutPanel1.Controls.Clear(); | |||
| flowLayoutPanel2.Controls.Clear(); | |||
| foreach (var item in goodsSetDic) | |||
| { | |||
| var btn = new UButton() { Width = 100, Height = 62, Text = item.Key, Font = new Font("宋体", 15), Margin = new Padding(15, 3, 15, 0), WithStataHode = true, EnableGroup = true }; | |||
| btn.Click += GroupGoodsSetClick; | |||
| flowLayoutPanel1.Controls.Add(btn); | |||
| } | |||
| } | |||
| void GroupGoodsSetClick(object sender, EventArgs e) | |||
| { | |||
| flowLayoutPanel2.Controls.Clear(); | |||
| var groupBtn = sender as UButton; | |||
| var arr = goodsSetDic[groupBtn.Text]; | |||
| foreach (var item in arr) | |||
| { | |||
| var btn = new UButton() { Width = 127, Height = 75, Text = item.Goods_Name, Tag = item, Font = new Font("宋体", 15), Margin = new Padding(20, 10, 20, 35), PlaySound = true }; | |||
| btn.Click += GoodsBtnClick; | |||
| flowLayoutPanel2.Controls.Add(btn); | |||
| } | |||
| } | |||
| void GoodsBtnClick(object sender, EventArgs e) | |||
| { | |||
| if (batchID == null) | |||
| throw new Exception("请先选择批次"); | |||
| var btn = sender as UButton; | |||
| var detail = btn.Tag as ClientGoodsSet_Detail; | |||
| var weight = uWeightControl1.Weight; | |||
| if (weight == 0) | |||
| throw new Exception("重量不能为0"); | |||
| if (detail.StandardWeight.HasValue) | |||
| { | |||
| if (weight < (detail.StandardWeightLow ?? 0) || weight > (detail.StandardWeightUp ?? 0)) | |||
| throw new Exception(string.Format("重量必须在{0:#0.######}-{1:#0.######}之间", detail.StandardWeightLow, detail.StandardWeightUp)); | |||
| weight = detail.StandardWeight.Value; | |||
| } | |||
| if (startBtn.Enabled) | |||
| Start(true); | |||
| var entity = SegmentProductionBL.Insert(detail.Goods_ID, weight, workUnitID, batchID.Value, batchDate.Value); | |||
| entity.Goods_Name = detail.Goods_Name; | |||
| entity.Goods_Spec = detail.Goods_Spec; | |||
| entity.MainUnit = detail.MainUnit; | |||
| entity.ShotPrintName = detail.ShotPrintName; | |||
| GoodsLabel.Text = entity.Goods_Name; | |||
| unSubmitList.Insert(0, entity); | |||
| historyList.Insert(0, entity); | |||
| if (historyList.Count > 100) | |||
| historyList.RemoveAt(100); | |||
| historyDataGrid.FirstDisplayedScrollingRowIndex = 0; | |||
| historyDataGrid.Refresh(); | |||
| if (barPrintCheck.Checked) | |||
| SegmentProductionPrint.Print(entity, batchDate, "",""); | |||
| } | |||
| void BindGrid() | |||
| { | |||
| unSubmitList = SegmentProductionBL.GetListByState(false); | |||
| historyList = SegmentProductionBL.GetListByState(true); | |||
| foreach (var item in unSubmitList) | |||
| historyList.Insert(0, item); | |||
| historyDataGrid.DataSource = historyList; | |||
| historyDataGrid.Refresh(); | |||
| var first = unSubmitList.FirstOrDefault(x => x.GroupID == null && x.TrunOutID == null); | |||
| if (first == null) | |||
| Start(false); | |||
| else | |||
| { | |||
| GoodsLabel.Text = first.Goods_Name; | |||
| Start(true); | |||
| } | |||
| } | |||
| void UpLoadLocalData() | |||
| { | |||
| while (true) | |||
| { | |||
| if (this.IsHandleCreated) | |||
| { | |||
| this.Invoke(new Action(() => | |||
| { | |||
| if (netStateWatch1.NetState) | |||
| SegmentProductionBL.UploadSegmentInfo(); | |||
| })); | |||
| } | |||
| Thread.Sleep(2000); | |||
| } | |||
| } | |||
| private void closeBtn_Click(object sender, EventArgs e) | |||
| { | |||
| Close(); | |||
| } | |||
| private void startBtn_Click(object sender, EventArgs e) | |||
| { | |||
| Start(true); | |||
| } | |||
| private void endBtn_Click(object sender, EventArgs e) | |||
| { | |||
| var arr = unSubmitList.Where(x => x.GroupID == null && x.TrunOutID == null); | |||
| if (arr.Any()) | |||
| { | |||
| var groupID = SegmentProductionBL.SetListGroupID(arr.Select(x => x.ID)); | |||
| var bk = new List<SegmentProduction>(); | |||
| foreach (var item in arr) | |||
| { | |||
| item.GroupID = groupID; | |||
| bk.Add(item); | |||
| } | |||
| Start(false); | |||
| if (barPrintCheck.Checked) | |||
| SegmentProductionPrint.PrintEnd(bk); | |||
| } | |||
| else | |||
| throw new Exception("本次开始之后未生产任何商品"); | |||
| } | |||
| private void trunOutBtn_Click(object sender, EventArgs e) | |||
| { | |||
| var arr = unSubmitList.Where(x => x.GroupID == null && x.TrunOutID == null); | |||
| long id = 0; | |||
| if (arr.Any()) | |||
| { | |||
| id = arr.First().ID; | |||
| SegmentProductionBL.BatchUpdate(arr.Select(x => x.ID), new Tuple<string, object>("TrunOutID", id)); | |||
| } | |||
| foreach (var item in arr) | |||
| item.TrunOutID = id; | |||
| GoodsLabel.Text = string.Empty; | |||
| Start(false); | |||
| } | |||
| private void switchBtn_Click(object sender, EventArgs e) | |||
| { | |||
| trunOutBtn_Click(sender, e); | |||
| var arr = unSubmitList.Where(x => x.GroupID == null && x.TrunOutID.HasValue); | |||
| var r = new BindingList<SegmentProduction>(); | |||
| foreach (var item in arr.GroupBy(x => x.TrunOutID)) | |||
| r.Add(item.First()); | |||
| var dialog = new TrunOutDialog(r); | |||
| if (dialog.ShowDialog() == DialogResult.OK) | |||
| { | |||
| var back = dialog.Back; | |||
| var targets = arr.Where(x => x.TrunOutID == back.TrunOutID); | |||
| SegmentProductionBL.TrunBack(targets.Select(x => x.ID)); | |||
| foreach (var item in targets) | |||
| item.TrunOutID = null; | |||
| GoodsLabel.Text = back.Goods_Name; | |||
| Start(true); | |||
| } | |||
| } | |||
| private void goodsSetBtn_Click(object sender, EventArgs e) | |||
| { | |||
| new ClientGoodsSetDialog().ShowDialog(); | |||
| } | |||
| private void rePrintBtn_Click(object sender, EventArgs e) | |||
| { | |||
| if (barPrintCheck.Checked) | |||
| { | |||
| if (historyDataGrid.CurrentRow == null) | |||
| throw new Exception("请先选择要补打的记录"); | |||
| var item = historyDataGrid.CurrentRow.DataBoundItem as SegmentProduction; | |||
| SegmentProductionPrint.Print(item, batchDate, "",""); | |||
| } | |||
| } | |||
| private void deleteBtn_Click(object sender, EventArgs e) | |||
| { | |||
| if (historyDataGrid.CurrentRow == null) | |||
| throw new Exception("请先选中要删除的记录"); | |||
| var id = (long)historyDataGrid.CurrentRow.Cells[0].Value; | |||
| var first = unSubmitList.FirstOrDefault(x => x.ID == id && x.GroupID == null); | |||
| if (first == null) | |||
| throw new Exception("已结束,无法删除"); | |||
| if (MessageBox.Show(string.Format("确认删除{0} {1}的记录?", first.RowIndex, first.Goods_Name), "删除确认", MessageBoxButtons.OKCancel) == DialogResult.OK) | |||
| { | |||
| var item = historyDataGrid.CurrentRow.DataBoundItem as SegmentProduction; | |||
| SegmentProductionBL.SetAsDelete(item.ID, item.BarCode); | |||
| unSubmitList.Remove(first); | |||
| historyList.Remove(first); | |||
| historyDataGrid.Refresh(); | |||
| } | |||
| } | |||
| private void submitBtn_Click(object sender, EventArgs e) | |||
| { | |||
| var arrs = unSubmitList.Where(x => x.GroupID.HasValue).ToList(); | |||
| if (arrs.Any()) | |||
| { | |||
| SegmentProductionBL.BatchUpdate(arrs.Select(x => x.ID), new Tuple<string, object>("Submited", true)); | |||
| foreach (var item in arrs) | |||
| unSubmitList.Remove(item); | |||
| } | |||
| UMessageBox.Show("已提交"); | |||
| } | |||
| } | |||
| } | |||
| @ -1,202 +0,0 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | |||
| <root> | |||
| <!-- | |||
| Microsoft ResX Schema | |||
| Version 2.0 | |||
| The primary goals of this format is to allow a simple XML format | |||
| that is mostly human readable. The generation and parsing of the | |||
| various data types are done through the TypeConverter classes | |||
| associated with the data types. | |||
| Example: | |||
| ... ado.net/XML headers & schema ... | |||
| <resheader name="resmimetype">text/microsoft-resx</resheader> | |||
| <resheader name="version">2.0</resheader> | |||
| <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||
| <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||
| <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||
| <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||
| <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||
| <value>[base64 mime encoded serialized .NET Framework object]</value> | |||
| </data> | |||
| <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||
| <comment>This is a comment</comment> | |||
| </data> | |||
| There are any number of "resheader" rows that contain simple | |||
| name/value pairs. | |||
| Each data row contains a name, and value. The row also contains a | |||
| type or mimetype. Type corresponds to a .NET class that support | |||
| text/value conversion through the TypeConverter architecture. | |||
| Classes that don't support this are serialized and stored with the | |||
| mimetype set. | |||
| The mimetype is used for serialized objects, and tells the | |||
| ResXResourceReader how to depersist the object. This is currently not | |||
| extensible. For a given mimetype the value must be set accordingly: | |||
| Note - application/x-microsoft.net.object.binary.base64 is the format | |||
| that the ResXResourceWriter will generate, however the reader can | |||
| read any of the formats listed below. | |||
| mimetype: application/x-microsoft.net.object.binary.base64 | |||
| value : The object must be serialized with | |||
| : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |||
| : and then encoded with base64 encoding. | |||
| mimetype: application/x-microsoft.net.object.soap.base64 | |||
| value : The object must be serialized with | |||
| : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||
| : and then encoded with base64 encoding. | |||
| mimetype: application/x-microsoft.net.object.bytearray.base64 | |||
| value : The object must be serialized into a byte array | |||
| : using a System.ComponentModel.TypeConverter | |||
| : and then encoded with base64 encoding. | |||
| --> | |||
| <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||
| <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |||
| <xsd:element name="root" msdata:IsDataSet="true"> | |||
| <xsd:complexType> | |||
| <xsd:choice maxOccurs="unbounded"> | |||
| <xsd:element name="metadata"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" use="required" type="xsd:string" /> | |||
| <xsd:attribute name="type" type="xsd:string" /> | |||
| <xsd:attribute name="mimetype" type="xsd:string" /> | |||
| <xsd:attribute ref="xml:space" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="assembly"> | |||
| <xsd:complexType> | |||
| <xsd:attribute name="alias" type="xsd:string" /> | |||
| <xsd:attribute name="name" type="xsd:string" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="data"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
| <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |||
| <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||
| <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||
| <xsd:attribute ref="xml:space" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="resheader"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" type="xsd:string" use="required" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| </xsd:choice> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| </xsd:schema> | |||
| <resheader name="resmimetype"> | |||
| <value>text/microsoft-resx</value> | |||
| </resheader> | |||
| <resheader name="version"> | |||
| <value>2.0</value> | |||
| </resheader> | |||
| <resheader name="reader"> | |||
| <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
| </resheader> | |||
| <resheader name="writer"> | |||
| <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
| </resheader> | |||
| <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | |||
| <data name="closeBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value> | |||
| iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | |||
| wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK | |||
| goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg | |||
| KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= | |||
| </value> | |||
| </data> | |||
| <data name="submitBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value> | |||
| iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | |||
| wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK | |||
| goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg | |||
| KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= | |||
| </value> | |||
| </data> | |||
| <data name="deleteBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value> | |||
| iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | |||
| wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK | |||
| goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg | |||
| KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= | |||
| </value> | |||
| </data> | |||
| <data name="rePrintBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value> | |||
| iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | |||
| wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK | |||
| goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg | |||
| KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= | |||
| </value> | |||
| </data> | |||
| <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_Weight.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="T_Last.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <data name="trunOutBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value> | |||
| iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | |||
| wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK | |||
| goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg | |||
| KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= | |||
| </value> | |||
| </data> | |||
| <data name="switchBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value> | |||
| iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | |||
| wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK | |||
| goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg | |||
| KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= | |||
| </value> | |||
| </data> | |||
| <data name="goodsSetBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value> | |||
| iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | |||
| wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK | |||
| goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg | |||
| KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= | |||
| </value> | |||
| </data> | |||
| <data name="endBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value> | |||
| iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | |||
| wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK | |||
| goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg | |||
| KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= | |||
| </value> | |||
| </data> | |||
| <data name="startBtn.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value> | |||
| iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO | |||
| wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK | |||
| goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg | |||
| KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= | |||
| </value> | |||
| </data> | |||
| </root> | |||
| @ -1,168 +0,0 @@ | |||
| namespace ButcherFactory.SegmentSaleOut_ | |||
| { | |||
| partial class AddWeightRecord | |||
| { | |||
| /// <summary> | |||
| /// Required designer variable. | |||
| /// </summary> | |||
| private System.ComponentModel.IContainer components = null; | |||
| /// <summary> | |||
| /// Clean up any resources being used. | |||
| /// </summary> | |||
| /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | |||
| protected override void Dispose(bool disposing) | |||
| { | |||
| if (disposing && (components != null)) | |||
| { | |||
| components.Dispose(); | |||
| } | |||
| base.Dispose(disposing); | |||
| } | |||
| #region Windows Form Designer generated code | |||
| /// <summary> | |||
| /// Required method for Designer support - do not modify | |||
| /// the contents of this method with the code editor. | |||
| /// </summary> | |||
| private void InitializeComponent() | |||
| { | |||
| this.cancelBtn = new ButcherFactory.Controls.ColorButton(); | |||
| this.okBtn = new ButcherFactory.Controls.ColorButton(); | |||
| this.numberInput = new WinFormControl.UTextBoxWithPad(); | |||
| this.weightInput = new WinFormControl.UTextBoxWithPad(); | |||
| this.goodsLabel = new WinFormControl.ULabel(); | |||
| this.uLabel3 = new WinFormControl.ULabel(); | |||
| this.uLabel2 = new WinFormControl.ULabel(); | |||
| this.uLabel1 = new WinFormControl.ULabel(); | |||
| this.SuspendLayout(); | |||
| // | |||
| // cancelBtn | |||
| // | |||
| this.cancelBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245))))); | |||
| this.cancelBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); | |||
| this.cancelBtn.ForeColor = System.Drawing.Color.White; | |||
| this.cancelBtn.Location = new System.Drawing.Point(375, 259); | |||
| this.cancelBtn.Name = "cancelBtn"; | |||
| this.cancelBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107))))); | |||
| this.cancelBtn.Size = new System.Drawing.Size(92, 40); | |||
| this.cancelBtn.TabIndex = 17; | |||
| this.cancelBtn.Text = "取消"; | |||
| this.cancelBtn.UseVisualStyleBackColor = false; | |||
| this.cancelBtn.Click += new System.EventHandler(this.cancelBtn_Click); | |||
| // | |||
| // okBtn | |||
| // | |||
| this.okBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(194)))), ((int)(((byte)(76))))); | |||
| this.okBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); | |||
| this.okBtn.ForeColor = System.Drawing.Color.White; | |||
| this.okBtn.Location = new System.Drawing.Point(231, 259); | |||
| this.okBtn.Name = "okBtn"; | |||
| this.okBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107))))); | |||
| this.okBtn.Size = new System.Drawing.Size(92, 40); | |||
| this.okBtn.TabIndex = 16; | |||
| this.okBtn.Text = "确定"; | |||
| this.okBtn.UseVisualStyleBackColor = false; | |||
| this.okBtn.Click += new System.EventHandler(this.okBtn_Click); | |||
| // | |||
| // numberInput | |||
| // | |||
| this.numberInput.Font = new System.Drawing.Font("宋体", 20F); | |||
| this.numberInput.Location = new System.Drawing.Point(228, 99); | |||
| this.numberInput.Name = "numberInput"; | |||
| this.numberInput.Size = new System.Drawing.Size(242, 38); | |||
| this.numberInput.TabIndex = 11; | |||
| this.numberInput.Type = WinFormControl.UTextBoxWithPad.TextBoxType.Number; | |||
| this.numberInput.Click += new System.EventHandler(this.weightInput_Click); | |||
| // | |||
| // weightInput | |||
| // | |||
| this.weightInput.Font = new System.Drawing.Font("宋体", 20F); | |||
| this.weightInput.Location = new System.Drawing.Point(228, 175); | |||
| this.weightInput.Name = "weightInput"; | |||
| this.weightInput.Size = new System.Drawing.Size(242, 38); | |||
| this.weightInput.TabIndex = 13; | |||
| this.weightInput.Type = WinFormControl.UTextBoxWithPad.TextBoxType.Number; | |||
| this.weightInput.Click += new System.EventHandler(this.weightInput_Click); | |||
| // | |||
| // goodsLabel | |||
| // | |||
| this.goodsLabel.AutoSize = true; | |||
| this.goodsLabel.BackColor = System.Drawing.Color.Transparent; | |||
| this.goodsLabel.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.goodsLabel.ForeColor = System.Drawing.Color.Red; | |||
| this.goodsLabel.Location = new System.Drawing.Point(227, 43); | |||
| this.goodsLabel.Name = "goodsLabel"; | |||
| this.goodsLabel.Size = new System.Drawing.Size(49, 20); | |||
| this.goodsLabel.TabIndex = 14; | |||
| this.goodsLabel.Text = "存货"; | |||
| // | |||
| // uLabel3 | |||
| // | |||
| this.uLabel3.AutoSize = true; | |||
| this.uLabel3.BackColor = System.Drawing.Color.Transparent; | |||
| this.uLabel3.Font = new System.Drawing.Font("宋体", 12F); | |||
| this.uLabel3.Location = new System.Drawing.Point(107, 184); | |||
| this.uLabel3.Name = "uLabel3"; | |||
| this.uLabel3.Size = new System.Drawing.Size(80, 16); | |||
| this.uLabel3.TabIndex = 12; | |||
| this.uLabel3.Text = "重 量:"; | |||
| // | |||
| // uLabel2 | |||
| // | |||
| this.uLabel2.AutoSize = true; | |||
| this.uLabel2.BackColor = System.Drawing.Color.Transparent; | |||
| this.uLabel2.Font = new System.Drawing.Font("宋体", 12F); | |||
| this.uLabel2.Location = new System.Drawing.Point(110, 111); | |||
| this.uLabel2.Name = "uLabel2"; | |||
| this.uLabel2.Size = new System.Drawing.Size(80, 16); | |||
| this.uLabel2.TabIndex = 10; | |||
| this.uLabel2.Text = "数 量:"; | |||
| // | |||
| // uLabel1 | |||
| // | |||
| this.uLabel1.AutoSize = true; | |||
| this.uLabel1.BackColor = System.Drawing.Color.Transparent; | |||
| this.uLabel1.Font = new System.Drawing.Font("宋体", 12F); | |||
| this.uLabel1.Location = new System.Drawing.Point(110, 43); | |||
| this.uLabel1.Name = "uLabel1"; | |||
| this.uLabel1.Size = new System.Drawing.Size(88, 16); | |||
| this.uLabel1.TabIndex = 9; | |||
| this.uLabel1.Text = "存货名称:"; | |||
| // | |||
| // AddWeightRecord | |||
| // | |||
| this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); | |||
| this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |||
| this.BackColor = System.Drawing.Color.White; | |||
| this.ClientSize = new System.Drawing.Size(582, 357); | |||
| this.ControlBox = false; | |||
| this.Controls.Add(this.cancelBtn); | |||
| this.Controls.Add(this.okBtn); | |||
| this.Controls.Add(this.numberInput); | |||
| this.Controls.Add(this.weightInput); | |||
| this.Controls.Add(this.goodsLabel); | |||
| this.Controls.Add(this.uLabel3); | |||
| this.Controls.Add(this.uLabel2); | |||
| this.Controls.Add(this.uLabel1); | |||
| this.Name = "AddWeightRecord"; | |||
| this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; | |||
| this.Text = "新增"; | |||
| this.ResumeLayout(false); | |||
| this.PerformLayout(); | |||
| } | |||
| #endregion | |||
| private Controls.ColorButton cancelBtn; | |||
| private Controls.ColorButton okBtn; | |||
| private WinFormControl.UTextBoxWithPad numberInput; | |||
| private WinFormControl.UTextBoxWithPad weightInput; | |||
| private WinFormControl.ULabel goodsLabel; | |||
| private WinFormControl.ULabel uLabel3; | |||
| private WinFormControl.ULabel uLabel2; | |||
| private WinFormControl.ULabel uLabel1; | |||
| } | |||
| } | |||
| @ -1,66 +0,0 @@ | |||
| using ButcherFactory.BO; | |||
| using ButcherFactory.BO.LocalBL; | |||
| using ButcherFactory.BO.Utils; | |||
| using System; | |||
| using System.Collections.Generic; | |||
| using System.ComponentModel; | |||
| using System.Data; | |||
| using System.Drawing; | |||
| using System.Linq; | |||
| using System.Text; | |||
| using System.Threading.Tasks; | |||
| using System.Windows.Forms; | |||
| using WinFormControl; | |||
| namespace ButcherFactory.SegmentSaleOut_ | |||
| { | |||
| public partial class AddWeightRecord : Form | |||
| { | |||
| SaleOutStore_Detail mDetail; | |||
| long? mBatchID = null; | |||
| public AddWeightRecord(SaleOutStore_Detail detail, long? batchID) | |||
| { | |||
| InitializeComponent(); | |||
| mDetail = detail; | |||
| mBatchID = batchID; | |||
| goodsLabel.Text = mDetail.Goods_Name; | |||
| } | |||
| private void okBtn_Click(object sender, EventArgs e) | |||
| { | |||
| decimal weight = 0; | |||
| if (!decimal.TryParse(weightInput.Text, out weight)) | |||
| throw new Exception("请输入重量"); | |||
| decimal number = 0; | |||
| if (!decimal.TryParse(numberInput.Text, out number)) | |||
| throw new Exception("请输入数量"); | |||
| if (number < 0) | |||
| throw new Exception("数量不能为负"); | |||
| var record = new SegmentSaleOut_Detail(); | |||
| record.BillID = mDetail.SaleOutStore_ID; | |||
| record.DetailID = mDetail.ID; | |||
| record.ProductBatch_ID = mBatchID; | |||
| record.Goods_Code = mDetail.Goods_Code; | |||
| record.Goods_ID = mDetail.Goods_ID; | |||
| record.Goods_Name = mDetail.Goods_Name; | |||
| record.Number = weight; | |||
| record.SecondNumber = number; | |||
| record.Operator = AppContext.Worker.Name; | |||
| SegmentSaleOutBL.AddAndUpdate(record); | |||
| DialogResult = DialogResult.OK; | |||
| } | |||
| private void cancelBtn_Click(object sender, EventArgs e) | |||
| { | |||
| this.Close(); | |||
| } | |||
| private void weightInput_Click(object sender, EventArgs e) | |||
| { | |||
| var keyBoard = new NumberPad(); | |||
| if (keyBoard.ShowDialog() == true) | |||
| (sender as TextBox).Text = keyBoard.Result; | |||
| } | |||
| } | |||
| } | |||
| @ -1,120 +0,0 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | |||
| <root> | |||
| <!-- | |||
| Microsoft ResX Schema | |||
| Version 2.0 | |||
| The primary goals of this format is to allow a simple XML format | |||
| that is mostly human readable. The generation and parsing of the | |||
| various data types are done through the TypeConverter classes | |||
| associated with the data types. | |||
| Example: | |||
| ... ado.net/XML headers & schema ... | |||
| <resheader name="resmimetype">text/microsoft-resx</resheader> | |||
| <resheader name="version">2.0</resheader> | |||
| <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||
| <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||
| <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||
| <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||
| <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||
| <value>[base64 mime encoded serialized .NET Framework object]</value> | |||
| </data> | |||
| <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||
| <comment>This is a comment</comment> | |||
| </data> | |||
| There are any number of "resheader" rows that contain simple | |||
| name/value pairs. | |||
| Each data row contains a name, and value. The row also contains a | |||
| type or mimetype. Type corresponds to a .NET class that support | |||
| text/value conversion through the TypeConverter architecture. | |||
| Classes that don't support this are serialized and stored with the | |||
| mimetype set. | |||
| The mimetype is used for serialized objects, and tells the | |||
| ResXResourceReader how to depersist the object. This is currently not | |||
| extensible. For a given mimetype the value must be set accordingly: | |||
| Note - application/x-microsoft.net.object.binary.base64 is the format | |||
| that the ResXResourceWriter will generate, however the reader can | |||
| read any of the formats listed below. | |||
| mimetype: application/x-microsoft.net.object.binary.base64 | |||
| value : The object must be serialized with | |||
| : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |||
| : and then encoded with base64 encoding. | |||
| mimetype: application/x-microsoft.net.object.soap.base64 | |||
| value : The object must be serialized with | |||
| : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||
| : and then encoded with base64 encoding. | |||
| mimetype: application/x-microsoft.net.object.bytearray.base64 | |||
| value : The object must be serialized into a byte array | |||
| : using a System.ComponentModel.TypeConverter | |||
| : and then encoded with base64 encoding. | |||
| --> | |||
| <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||
| <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |||
| <xsd:element name="root" msdata:IsDataSet="true"> | |||
| <xsd:complexType> | |||
| <xsd:choice maxOccurs="unbounded"> | |||
| <xsd:element name="metadata"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" use="required" type="xsd:string" /> | |||
| <xsd:attribute name="type" type="xsd:string" /> | |||
| <xsd:attribute name="mimetype" type="xsd:string" /> | |||
| <xsd:attribute ref="xml:space" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="assembly"> | |||
| <xsd:complexType> | |||
| <xsd:attribute name="alias" type="xsd:string" /> | |||
| <xsd:attribute name="name" type="xsd:string" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="data"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
| <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |||
| <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||
| <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||
| <xsd:attribute ref="xml:space" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="resheader"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" type="xsd:string" use="required" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| </xsd:choice> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| </xsd:schema> | |||
| <resheader name="resmimetype"> | |||
| <value>text/microsoft-resx</value> | |||
| </resheader> | |||
| <resheader name="version"> | |||
| <value>2.0</value> | |||
| </resheader> | |||
| <resheader name="reader"> | |||
| <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
| </resheader> | |||
| <resheader name="writer"> | |||
| <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
| </resheader> | |||
| </root> | |||
| @ -1,180 +0,0 @@ | |||
| namespace ButcherFactory.SegmentSaleOut_ | |||
| { | |||
| partial class DiscontSetDialog | |||
| { | |||
| /// <summary> | |||
| /// Required designer variable. | |||
| /// </summary> | |||
| private System.ComponentModel.IContainer components = null; | |||
| /// <summary> | |||
| /// Clean up any resources being used. | |||
| /// </summary> | |||
| /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | |||
| protected override void Dispose(bool disposing) | |||
| { | |||
| if (disposing && (components != null)) | |||
| { | |||
| components.Dispose(); | |||
| } | |||
| base.Dispose(disposing); | |||
| } | |||
| #region Windows Form Designer generated code | |||
| /// <summary> | |||
| /// Required method for Designer support - do not modify | |||
| /// the contents of this method with the code editor. | |||
| /// </summary> | |||
| private void InitializeComponent() | |||
| { | |||
| this.label1 = new System.Windows.Forms.Label(); | |||
| this.label2 = new System.Windows.Forms.Label(); | |||
| this.label3 = new System.Windows.Forms.Label(); | |||
| this.label4 = new System.Windows.Forms.Label(); | |||
| this.lbl1 = new System.Windows.Forms.Label(); | |||
| this.lbl2 = new System.Windows.Forms.Label(); | |||
| this.lbl3 = new System.Windows.Forms.Label(); | |||
| this.lbl4 = new System.Windows.Forms.Label(); | |||
| this.okBtn = new ButcherFactory.Controls.ColorButton(); | |||
| this.SuspendLayout(); | |||
| // | |||
| // label1 | |||
| // | |||
| this.label1.AutoSize = true; | |||
| this.label1.Font = new System.Drawing.Font("宋体", 12F); | |||
| this.label1.Location = new System.Drawing.Point(72, 32); | |||
| this.label1.Name = "label1"; | |||
| this.label1.Size = new System.Drawing.Size(56, 16); | |||
| this.label1.TabIndex = 0; | |||
| this.label1.Text = "扣重一"; | |||
| // | |||
| // label2 | |||
| // | |||
| this.label2.AutoSize = true; | |||
| this.label2.Font = new System.Drawing.Font("宋体", 12F); | |||
| this.label2.Location = new System.Drawing.Point(72, 87); | |||
| this.label2.Name = "label2"; | |||
| this.label2.Size = new System.Drawing.Size(56, 16); | |||
| this.label2.TabIndex = 1; | |||
| this.label2.Text = "扣重二"; | |||
| // | |||
| // label3 | |||
| // | |||
| this.label3.AutoSize = true; | |||
| this.label3.Font = new System.Drawing.Font("宋体", 12F); | |||
| this.label3.Location = new System.Drawing.Point(72, 144); | |||
| this.label3.Name = "label3"; | |||
| this.label3.Size = new System.Drawing.Size(56, 16); | |||
| this.label3.TabIndex = 2; | |||
| this.label3.Text = "扣重三"; | |||
| // | |||
| // label4 | |||
| // | |||
| this.label4.AutoSize = true; | |||
| this.label4.Font = new System.Drawing.Font("宋体", 12F); | |||
| this.label4.Location = new System.Drawing.Point(72, 201); | |||
| this.label4.Name = "label4"; | |||
| this.label4.Size = new System.Drawing.Size(56, 16); | |||
| this.label4.TabIndex = 3; | |||
| this.label4.Text = "扣重四"; | |||
| // | |||
| // lbl1 | |||
| // | |||
| this.lbl1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; | |||
| this.lbl1.Font = new System.Drawing.Font("黑体", 12F); | |||
| this.lbl1.ForeColor = System.Drawing.Color.Red; | |||
| this.lbl1.Location = new System.Drawing.Point(161, 29); | |||
| this.lbl1.Name = "lbl1"; | |||
| this.lbl1.Size = new System.Drawing.Size(100, 30); | |||
| this.lbl1.TabIndex = 4; | |||
| this.lbl1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
| this.lbl1.Click += new System.EventHandler(this.lbl1_Click); | |||
| // | |||
| // lbl2 | |||
| // | |||
| this.lbl2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; | |||
| this.lbl2.Font = new System.Drawing.Font("黑体", 12F); | |||
| this.lbl2.ForeColor = System.Drawing.Color.Red; | |||
| this.lbl2.Location = new System.Drawing.Point(161, 84); | |||
| this.lbl2.Name = "lbl2"; | |||
| this.lbl2.Size = new System.Drawing.Size(100, 30); | |||
| this.lbl2.TabIndex = 5; | |||
| this.lbl2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
| this.lbl2.Click += new System.EventHandler(this.lbl1_Click); | |||
| // | |||
| // lbl3 | |||
| // | |||
| this.lbl3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; | |||
| this.lbl3.Font = new System.Drawing.Font("黑体", 12F); | |||
| this.lbl3.ForeColor = System.Drawing.Color.Red; | |||
| this.lbl3.Location = new System.Drawing.Point(161, 141); | |||
| this.lbl3.Name = "lbl3"; | |||
| this.lbl3.Size = new System.Drawing.Size(100, 30); | |||
| this.lbl3.TabIndex = 6; | |||
| this.lbl3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
| this.lbl3.Click += new System.EventHandler(this.lbl1_Click); | |||
| // | |||
| // lbl4 | |||
| // | |||
| this.lbl4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; | |||
| this.lbl4.Font = new System.Drawing.Font("黑体", 12F); | |||
| this.lbl4.ForeColor = System.Drawing.Color.Red; | |||
| this.lbl4.Location = new System.Drawing.Point(161, 198); | |||
| this.lbl4.Name = "lbl4"; | |||
| this.lbl4.Size = new System.Drawing.Size(100, 30); | |||
| this.lbl4.TabIndex = 7; | |||
| this.lbl4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
| this.lbl4.Click += new System.EventHandler(this.lbl1_Click); | |||
| // | |||
| // okBtn | |||
| // | |||
| this.okBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245))))); | |||
| this.okBtn.Font = new System.Drawing.Font("宋体", 12F); | |||
| this.okBtn.ForeColor = System.Drawing.Color.White; | |||
| this.okBtn.Location = new System.Drawing.Point(119, 271); | |||
| this.okBtn.Name = "okBtn"; | |||
| this.okBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106))))); | |||
| this.okBtn.Size = new System.Drawing.Size(98, 43); | |||
| this.okBtn.TabIndex = 8; | |||
| this.okBtn.Text = "确定"; | |||
| this.okBtn.UseVisualStyleBackColor = false; | |||
| this.okBtn.Click += new System.EventHandler(this.okBtn_Click); | |||
| // | |||
| // DiscontSetDialog | |||
| // | |||
| this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); | |||
| this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |||
| this.BackColor = System.Drawing.Color.White; | |||
| this.ClientSize = new System.Drawing.Size(343, 343); | |||
| this.ControlBox = false; | |||
| this.Controls.Add(this.okBtn); | |||
| this.Controls.Add(this.lbl4); | |||
| this.Controls.Add(this.lbl3); | |||
| this.Controls.Add(this.lbl2); | |||
| this.Controls.Add(this.lbl1); | |||
| this.Controls.Add(this.label4); | |||
| this.Controls.Add(this.label3); | |||
| this.Controls.Add(this.label2); | |||
| this.Controls.Add(this.label1); | |||
| this.Name = "DiscontSetDialog"; | |||
| this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; | |||
| this.Text = "扣重设置"; | |||
| this.ResumeLayout(false); | |||
| this.PerformLayout(); | |||
| } | |||
| #endregion | |||
| private System.Windows.Forms.Label label1; | |||
| private System.Windows.Forms.Label label2; | |||
| private System.Windows.Forms.Label label3; | |||
| private System.Windows.Forms.Label label4; | |||
| private System.Windows.Forms.Label lbl1; | |||
| private System.Windows.Forms.Label lbl2; | |||
| private System.Windows.Forms.Label lbl3; | |||
| private System.Windows.Forms.Label lbl4; | |||
| private Controls.ColorButton okBtn; | |||
| } | |||
| } | |||
| @ -1,69 +0,0 @@ | |||
| using ButcherFactory.BO.Utils; | |||
| using System; | |||
| using System.Collections.Generic; | |||
| using System.ComponentModel; | |||
| using System.Data; | |||
| using System.Drawing; | |||
| using System.Linq; | |||
| using System.Text; | |||
| using System.Threading.Tasks; | |||
| using System.Windows.Forms; | |||
| using WinFormControl; | |||
| namespace ButcherFactory.SegmentSaleOut_ | |||
| { | |||
| public partial class DiscontSetDialog : Form | |||
| { | |||
| public string disCont = string.Empty; | |||
| SegmentSaleOutFormConfig config; | |||
| List<Label> lbls; | |||
| public DiscontSetDialog() | |||
| { | |||
| InitializeComponent(); | |||
| config = XmlUtil.DeserializeFromFile<SegmentSaleOutFormConfig>(); | |||
| disCont = config.DiscontWeight; | |||
| lbls = new List<Label> { lbl1, lbl2, lbl3, lbl4 }; | |||
| } | |||
| protected override void OnLoad(EventArgs e) | |||
| { | |||
| base.OnLoad(e); | |||
| var arr = config.DiscontWeight.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Select(x => decimal.Parse(x)).OrderByDescending(x => x); | |||
| var idx = 0; | |||
| foreach (var item in arr) | |||
| { | |||
| lbls[idx].Text = item.ToString("#0.##"); | |||
| idx++; | |||
| if (idx == 4) | |||
| break; | |||
| } | |||
| } | |||
| private void lbl1_Click(object sender, EventArgs e) | |||
| { | |||
| var keyBoard = new NumberPad(); | |||
| if (keyBoard.ShowDialog() == true) | |||
| (sender as Label).Text = keyBoard.Result; | |||
| } | |||
| private void okBtn_Click(object sender, EventArgs e) | |||
| { | |||
| List<decimal> arr = new List<decimal>(); | |||
| foreach (var item in lbls) | |||
| { | |||
| if (!string.IsNullOrEmpty(item.Text)) | |||
| arr.Add(decimal.Parse(item.Text)); | |||
| } | |||
| disCont = string.Join(",", arr.Distinct().OrderBy(x => x)); | |||
| if (config.DiscontWeight != disCont) | |||
| { | |||
| config.DiscontWeight = disCont; | |||
| XmlUtil.SerializerObjToFile(config); | |||
| DialogResult = DialogResult.OK; | |||
| } | |||
| else | |||
| DialogResult = DialogResult.Cancel; | |||
| } | |||
| } | |||
| } | |||
| @ -1,120 +0,0 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | |||
| <root> | |||
| <!-- | |||
| Microsoft ResX Schema | |||
| Version 2.0 | |||
| The primary goals of this format is to allow a simple XML format | |||
| that is mostly human readable. The generation and parsing of the | |||
| various data types are done through the TypeConverter classes | |||
| associated with the data types. | |||
| Example: | |||
| ... ado.net/XML headers & schema ... | |||
| <resheader name="resmimetype">text/microsoft-resx</resheader> | |||
| <resheader name="version">2.0</resheader> | |||
| <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||
| <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||
| <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||
| <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||
| <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||
| <value>[base64 mime encoded serialized .NET Framework object]</value> | |||
| </data> | |||
| <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||
| <comment>This is a comment</comment> | |||
| </data> | |||
| There are any number of "resheader" rows that contain simple | |||
| name/value pairs. | |||
| Each data row contains a name, and value. The row also contains a | |||
| type or mimetype. Type corresponds to a .NET class that support | |||
| text/value conversion through the TypeConverter architecture. | |||
| Classes that don't support this are serialized and stored with the | |||
| mimetype set. | |||
| The mimetype is used for serialized objects, and tells the | |||
| ResXResourceReader how to depersist the object. This is currently not | |||
| extensible. For a given mimetype the value must be set accordingly: | |||
| Note - application/x-microsoft.net.object.binary.base64 is the format | |||
| that the ResXResourceWriter will generate, however the reader can | |||
| read any of the formats listed below. | |||
| mimetype: application/x-microsoft.net.object.binary.base64 | |||
| value : The object must be serialized with | |||
| : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |||
| : and then encoded with base64 encoding. | |||
| mimetype: application/x-microsoft.net.object.soap.base64 | |||
| value : The object must be serialized with | |||
| : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||
| : and then encoded with base64 encoding. | |||
| mimetype: application/x-microsoft.net.object.bytearray.base64 | |||
| value : The object must be serialized into a byte array | |||
| : using a System.ComponentModel.TypeConverter | |||
| : and then encoded with base64 encoding. | |||
| --> | |||
| <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||
| <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |||
| <xsd:element name="root" msdata:IsDataSet="true"> | |||
| <xsd:complexType> | |||
| <xsd:choice maxOccurs="unbounded"> | |||
| <xsd:element name="metadata"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" use="required" type="xsd:string" /> | |||
| <xsd:attribute name="type" type="xsd:string" /> | |||
| <xsd:attribute name="mimetype" type="xsd:string" /> | |||
| <xsd:attribute ref="xml:space" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="assembly"> | |||
| <xsd:complexType> | |||
| <xsd:attribute name="alias" type="xsd:string" /> | |||
| <xsd:attribute name="name" type="xsd:string" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="data"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
| <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |||
| <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||
| <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||
| <xsd:attribute ref="xml:space" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="resheader"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" type="xsd:string" use="required" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| </xsd:choice> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| </xsd:schema> | |||
| <resheader name="resmimetype"> | |||
| <value>text/microsoft-resx</value> | |||
| </resheader> | |||
| <resheader name="version"> | |||
| <value>2.0</value> | |||
| </resheader> | |||
| <resheader name="reader"> | |||
| <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
| </resheader> | |||
| <resheader name="writer"> | |||
| <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
| </resheader> | |||
| </root> | |||
| @ -1,474 +0,0 @@ | |||
| using ButcherFactory.BO; | |||
| using ButcherFactory.BO.LocalBL; | |||
| using ButcherFactory.BO.Utils; | |||
| using ButcherFactory.Controls; | |||
| using ButcherFactory.Dialogs; | |||
| using System; | |||
| using System.Collections.Generic; | |||
| using System.ComponentModel; | |||
| using System.Data; | |||
| using System.Drawing; | |||
| using System.Linq; | |||
| using System.Text; | |||
| using System.Threading.Tasks; | |||
| using System.Windows.Forms; | |||
| using WinFormControl; | |||
| namespace ButcherFactory.SegmentSaleOut_ | |||
| { | |||
| public partial class SegmentSaleOutForm : FormTemplate, IWithRoleForm | |||
| { | |||
| #region IWithRoleForm | |||
| public List<short> RoleName | |||
| { | |||
| get { return new List<short> { (short)设备类别.销售发货 }; } | |||
| } | |||
| public Form Generate() | |||
| { | |||
| return this; | |||
| } | |||
| #endregion | |||
| BindingList<SaleOutStore> saleOutStoreList; | |||
| BindingList<SaleOutStore_Detail> details; | |||
| BindingList<SegmentSaleOut_Detail> weightRecord; | |||
| string strDiscontWeight = ""; | |||
| internal DateTime sendTime = DateTime.Today; | |||
| internal long? deliverGoodsLineID; | |||
| internal long? customerID; | |||
| internal int billState; | |||
| internal long? storeID; | |||
| long? batchID; | |||
| bool already = false; | |||
| decimal? discont = null; | |||
| public SegmentSaleOutForm() | |||
| { | |||
| InitializeComponent(); | |||
| uScanPanel1.AfterScan += uScanPanel1_AfterScan; | |||
| productBatchSelect.SelectedIndexChanged += delegate | |||
| { | |||
| if (productBatchSelect.SelectedValue == null) | |||
| batchID = null; | |||
| else | |||
| batchID = (long)productBatchSelect.SelectedValue; | |||
| }; | |||
| } | |||
| protected override void OnLoad(EventArgs e) | |||
| { | |||
| base.OnLoad(e); | |||
| BLUtil.DeleteSaleOutStoreInfo<SegmentSaleOut_Detail>(); | |||
| billState = 0; | |||
| billStateBox.Text = "未审核"; | |||
| sendDateBox.Text = sendTime.ToString("yyyy-MM-dd"); | |||
| var config = XmlUtil.DeserializeFromFile<SegmentSaleOutFormConfig>(); | |||
| if (config.Store_ID.HasValue) | |||
| { | |||
| storeBox.Text = config.Store_Name; | |||
| storeID = config.Store_ID; | |||
| } | |||
| if (!string.IsNullOrEmpty(config.DiscontWeight)) | |||
| strDiscontWeight = config.DiscontWeight; | |||
| BindProductBatch(); | |||
| BindDiscontBtn(); | |||
| } | |||
| private void BindProductBatch() | |||
| { | |||
| var batchs = SegmentSaleOutBL.GetBatchFromEMS(); | |||
| productBatchSelect.DisplayMember = "Name"; | |||
| productBatchSelect.ValueMember = "ID"; | |||
| productBatchSelect.DataSource = batchs; | |||
| var idx = batchs.FindIndex(x => x.Date == DateTime.Today); | |||
| if (idx > 0) | |||
| productBatchSelect.SelectedIndex = idx; | |||
| productBatchSelect.Refresh(); | |||
| } | |||
| void uScanPanel1_AfterScan() | |||
| { | |||
| var barCode = uScanPanel1.TextBox.Text.Trim(); | |||
| if (string.IsNullOrEmpty(barCode)) | |||
| throw new Exception("条码错误"); | |||
| if (already) | |||
| throw new Exception("正在查看已配货记录,不允许配货"); | |||
| if (details == null || details.Count == 0) | |||
| throw new Exception("没有订货明细"); | |||
| if (weightRecord.Any(x => x.BarCode == barCode)) | |||
| throw new Exception("扫码重复"); | |||
| if (SegmentSaleOutBL.BarCodeUsed(barCode)) | |||
| throw new Exception("扫码重复"); | |||
| if (stockUpSendCheck.Checked) | |||
| BatchInsertByScan(barCode); | |||
| else | |||
| InsertDetailByScan(barCode); | |||
| WinFormControl.SoundPalyUtil.PlaySound(WinFormControl.SoundType.Click); | |||
| } | |||
| void InsertDetailByScan(string barCode) | |||
| { | |||
| //var orderDetail = detailGridView.CurrentRow.DataBoundItem as SaleOutStore_Detail; | |||
| var detail = new SegmentSaleOut_Detail(); | |||
| detail.BarCode = barCode; | |||
| if (weightRecord.Any()) | |||
| detail.Idx = weightRecord.Max(x => x.Idx) + 1; | |||
| else | |||
| detail.Idx = 1; | |||
| var detailID = SegmentSaleOutBL.InsertByCode(details, detail); | |||
| weightRecord.Insert(0, detail); | |||
| weightRecordGridView.FirstDisplayedScrollingRowIndex = 0; | |||
| weightRecordGridView.Refresh(); | |||
| BindDetailByLocal(detailID); | |||
| } | |||
| void BatchInsertByScan(string barCode) | |||
| { | |||
| var results = SegmentSaleOutBL.InsertByStockUp(barCode, details); | |||
| var orderDetail = detailGridView.CurrentRow.DataBoundItem as SaleOutStore_Detail; | |||
| var idx = weightRecord.Any() ? weightRecord.Max(x => x.Idx) + 1 : 1; | |||
| foreach (var item in results) | |||
| { | |||
| item.Idx = idx; | |||
| weightRecord.Insert(0, item); | |||
| idx++; | |||
| } | |||
| weightRecordGridView.FirstDisplayedScrollingRowIndex = 0; | |||
| weightRecordGridView.Refresh(); | |||
| foreach (var item in details) | |||
| { | |||
| item.SNumber = (item.SNumber ?? 0) + results.Where(x => x.DetailID == item.ID).Sum(x => x.Number); | |||
| if (item.SNumber == 0) | |||
| item.SNumber = null; | |||
| item.SSecondNumber = (item.SSecondNumber ?? 0) + results.Where(x => x.DetailID == item.ID).Sum(x => x.SecondNumber); | |||
| if (item.SSecondNumber == 0) | |||
| item.SSecondNumber = null; | |||
| } | |||
| detailGridView.Refresh(); | |||
| } | |||
| private void queryControl_MouseDown(object sender, MouseEventArgs e) | |||
| { | |||
| var simpleLbl = sender as Label; | |||
| switch (simpleLbl.Name) | |||
| { | |||
| case "sendDateBox": | |||
| var cs = new CalendarSelecter(); | |||
| if (cs.ShowDialog() == true) | |||
| { | |||
| sendTime = cs.Result; | |||
| sendDateBox.Text = sendTime.ToString("yyyy-MM-dd"); | |||
| } | |||
| break; | |||
| case "deliverGoodsLineBox": | |||
| var dgl = new SelectDeliverGoodsLineDialog(); | |||
| if (dgl.ShowDialog() == DialogResult.OK) | |||
| { | |||
| simpleLbl.Text = dgl.Result.Item1; | |||
| deliverGoodsLineID = dgl.Result.Item2; | |||
| } | |||
| break; | |||
| case "customerBox": | |||
| var cb = new SelectCustomerDialog(); | |||
| if (cb.ShowDialog() == DialogResult.OK) | |||
| { | |||
| simpleLbl.Text = cb.Result.Item1; | |||
| customerID = cb.Result.Item2; | |||
| } | |||
| break; | |||
| case "billStateBox": | |||
| var bs = new SelectBillStateDialog(); | |||
| if (bs.ShowDialog() == DialogResult.OK) | |||
| { | |||
| simpleLbl.Text = bs.Result.Item1; | |||
| billState = bs.Result.Item2; | |||
| } | |||
| break; | |||
| case "storeBox": | |||
| var sb = new SelectStoreDialog(); | |||
| if (sb.ShowDialog() == DialogResult.OK) | |||
| { | |||
| simpleLbl.Text = sb.Result.Item1; | |||
| storeID = sb.Result.Item2; | |||
| XmlUtil.SerializerObjToFile(new SegmentSaleOutFormConfig { DiscontWeight = strDiscontWeight, Store_ID = storeID, Store_Name = simpleLbl.Text }); | |||
| } | |||
| break; | |||
| } | |||
| } | |||
| private void refreshBtn_Click(object sender, EventArgs e) | |||
| { | |||
| already = false; | |||
| Refersh(); | |||
| } | |||
| private void clearBtn_Click(object sender, EventArgs e) | |||
| { | |||
| billState = 0; | |||
| billStateBox.Text = "未审核"; | |||
| sendTime = DateTime.Today; | |||
| sendDateBox.Text = sendTime.ToString("yyyy-MM-dd"); | |||
| deliverGoodsLineBox.Text = string.Empty; | |||
| deliverGoodsLineID = null; | |||
| customerBox.Text = string.Empty; | |||
| customerID = null; | |||
| storeBox.Text = string.Empty; | |||
| storeID = null; | |||
| } | |||
| private void alreadyViewBtn_Click(object sender, EventArgs e) | |||
| { | |||
| already = true; | |||
| Refersh(); | |||
| } | |||
| void Refersh() | |||
| { | |||
| goodsFinishBtn.Enabled = !already; | |||
| unFinishBtn.Enabled = already; | |||
| deleteBtn.Enabled = !already; | |||
| readBtn.Enabled = !already; | |||
| saleOutStoreList = SegmentSaleOutBL.GetSaleOutStoreList(sendTime, deliverGoodsLineID, customerID, billState, storeID, already); | |||
| orderGridView.DataSource = saleOutStoreList; | |||
| orderGridView.Refresh(); | |||
| BindLabels(saleOutStoreList.FirstOrDefault() ?? new SaleOutStore()); | |||
| BindDetailGrid(); | |||
| } | |||
| private void weightRecordBtn_Click(object sender, EventArgs e) | |||
| { | |||
| if (detailGridView.CurrentRow == null) | |||
| throw new Exception("请选择配货明细"); | |||
| var detail = detailGridView.CurrentRow.DataBoundItem as SaleOutStore_Detail; | |||
| var dg = new SegmentSaleOut_.WeightRecordDialog(details.First(x => x.ID == detail.ID), already, batchID); | |||
| dg.ShowDialog(); | |||
| if (dg.Changed) | |||
| { | |||
| weightRecord = SegmentSaleOutBL.GetWeightRecord(detail.ID); | |||
| weightRecordGridView.DataSource = weightRecord; | |||
| weightRecordGridView.Refresh(); | |||
| BindDetailByLocal(detail.ID); | |||
| } | |||
| } | |||
| private void goodsFinishBtn_Click(object sender, EventArgs e) | |||
| { | |||
| if (orderGridView.CurrentRow == null) | |||
| throw new Exception("请选择要配货完成的发货单"); | |||
| var id = (long)orderGridView.CurrentRow.Cells[0].Value; | |||
| var hasNoAssignDetail = SegmentSaleOutBL.HasNoAssignDetail(id); | |||
| if (hasNoAssignDetail) | |||
| { | |||
| if (MessageBox.Show("有未配货的明细,确认配货完成?", "配货完成确认", MessageBoxButtons.OKCancel) != DialogResult.OK) | |||
| return; | |||
| } | |||
| SegmentSaleOutBL.SetGoodsFinish(id); | |||
| AfterChangeFinishGoods(id); | |||
| MessageBox.Show("配货完成!"); | |||
| } | |||
| private void unFinishBtn_Click(object sender, EventArgs e) | |||
| { | |||
| if (orderGridView.CurrentRow == null) | |||
| throw new Exception("请选择要撤销完毕的发货单"); | |||
| var id = (long)orderGridView.CurrentRow.Cells[0].Value; | |||
| SegmentSaleOutBL.SetGoodsUnFinish(id); | |||
| AfterChangeFinishGoods(id); | |||
| MessageBox.Show("撤销成功!"); | |||
| } | |||
| private void AfterChangeFinishGoods(long id) | |||
| { | |||
| saleOutStoreList.Remove(saleOutStoreList.First(x => x.ID == id)); | |||
| orderGridView.Refresh(); | |||
| details = new BindingList<SaleOutStore_Detail>(); | |||
| detailGridView.DataSource = details; | |||
| detailGridView.Refresh(); | |||
| weightRecord = new BindingList<SegmentSaleOut_Detail>(); | |||
| weightRecordGridView.DataSource = weightRecord; | |||
| weightRecordGridView.Refresh(); | |||
| BindLabels(new SaleOutStore()); | |||
| } | |||
| private void deleteBtn_Click(object sender, EventArgs e) | |||
| { | |||
| if (weightRecordGridView.CurrentRow == null) | |||
| return; | |||
| if (MessageBox.Show("确定删除选中明细?", "删除确认", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK) | |||
| return; | |||
| var id = (long)weightRecordGridView.CurrentRow.Cells[0].Value; | |||
| var tag = weightRecord.First(x => x.ID == id); | |||
| SegmentSaleOutBL.DeleteAndUpdate(tag); | |||
| weightRecord.Remove(tag); | |||
| foreach (var item in weightRecord.Where(x => x.Idx > tag.Idx)) | |||
| item.Idx -= 1; | |||
| weightRecordGridView.Refresh(); | |||
| BindDetailByLocal(tag.DetailID.Value); | |||
| } | |||
| private void readBtn_Click(object sender, EventArgs e) | |||
| { | |||
| if (weightControl1.Weight == 0) | |||
| return; | |||
| if (already) | |||
| throw new Exception("正在查看已配货记录,不允许配货"); | |||
| if (detailGridView.CurrentRow == null) | |||
| throw new Exception("没有订货明细"); | |||
| var weight = weightControl1.Weight - (discont ?? 0); | |||
| if (weight <= 0) | |||
| throw new Exception(string.Format("扣重后重量为{0:#0.##}", weight)); | |||
| InsertDetailByReadWeight(weight); | |||
| } | |||
| private void InsertDetailByReadWeight(decimal weight) | |||
| { | |||
| var orderDetail = detailGridView.CurrentRow.DataBoundItem as SaleOutStore_Detail; | |||
| var detail = new SegmentSaleOut_Detail(); | |||
| detail.Number = weight; | |||
| detail.DiscontWeight = discont; | |||
| if (weightRecord.Any()) | |||
| detail.Idx = weightRecord.Max(x => x.Idx) + 1; | |||
| else | |||
| detail.Idx = 1; | |||
| SegmentSaleOutBL.InsertReadWeight(orderDetail, detail); | |||
| weightRecord.Insert(0, detail); | |||
| weightRecordGridView.FirstDisplayedScrollingRowIndex = 0; | |||
| weightRecordGridView.Refresh(); | |||
| BindDetailByLocal(orderDetail.ID); | |||
| } | |||
| private void orderGridView_CellClick(object sender, DataGridViewCellEventArgs e) | |||
| { | |||
| if (orderGridView.CurrentRow == null) | |||
| return; | |||
| BindLabels(orderGridView.CurrentRow.DataBoundItem as SaleOutStore); | |||
| BindDetailGrid(); | |||
| } | |||
| private void detailGridView_CellClick(object sender, DataGridViewCellEventArgs e) | |||
| { | |||
| BindWeightRecord(); | |||
| } | |||
| void BindDetailGrid() | |||
| { | |||
| var row = orderGridView.CurrentRow; | |||
| if (row == null) | |||
| details = new BindingList<SaleOutStore_Detail>(); | |||
| else | |||
| { | |||
| var id = long.Parse(billIDLabel.Text); | |||
| details = SegmentSaleOutBL.GetSaleOutStoreDetailList(id); | |||
| foreach (var item in details) | |||
| { | |||
| item.SaleOutStore_ID = id; | |||
| item.Customer_Name = customerLabel.Text; | |||
| } | |||
| } | |||
| detailGridView.DataSource = details; | |||
| detailGridView.Refresh(); | |||
| BindWeightRecord(); | |||
| } | |||
| void BindWeightRecord() | |||
| { | |||
| var row = detailGridView.CurrentRow; | |||
| if (row == null) | |||
| weightRecord = new BindingList<SegmentSaleOut_Detail>(); | |||
| else | |||
| weightRecord = SegmentSaleOutBL.GetWeightRecord((long)row.Cells["D_ID"].Value); | |||
| weightRecordGridView.DataSource = weightRecord; | |||
| weightRecordGridView.Refresh(); | |||
| } | |||
| void BindDetailByLocal(long detailID) | |||
| { | |||
| var first = details.First(x => x.ID == detailID); | |||
| var list = weightRecord.Where(x => x.DetailID == detailID); | |||
| first.SNumber = list.Sum(x => x.Number); | |||
| first.SSecondNumber = list.Sum(x => x.SecondNumber ?? 0); | |||
| foreach (DataGridViewRow row in detailGridView.Rows) | |||
| { | |||
| if ((long)row.Cells[0].Value == detailID) | |||
| { | |||
| row.Selected = true; | |||
| break; | |||
| } | |||
| } | |||
| detailGridView.Refresh(); | |||
| } | |||
| void BindLabels(SaleOutStore entity) | |||
| { | |||
| billIDLabel.Text = entity.ID == 0 ? "" : entity.ID.ToString(); | |||
| customerLabel.Text = entity.Customer_Name; | |||
| addressLabel.Text = entity.Address; | |||
| carNumberLabel.Text = entity.CarNumber; | |||
| } | |||
| private void detailGridView_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e) | |||
| { | |||
| DataGridViewRow dgrSingle = detailGridView.Rows[e.RowIndex]; | |||
| var v = (decimal?)dgrSingle.Cells["D_SNumber"].Value; | |||
| if (v.HasValue && v > 0) | |||
| { | |||
| dgrSingle.DefaultCellStyle.BackColor = Color.YellowGreen; | |||
| } | |||
| } | |||
| Color btnColor = Color.FromArgb(10, 106, 201); | |||
| Color selectedColor = Color.FromArgb(255, 0, 25); | |||
| void BindDiscontBtn() | |||
| { | |||
| var arr = strDiscontWeight.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Select(x => decimal.Parse(x)).OrderBy(x => x); | |||
| flowLayoutPanel1.Controls.Clear(); | |||
| foreach (var v in arr) | |||
| { | |||
| var btn = new ColorButton { Width = 84, Height = 35, BackColor = btnColor, SelectedColor = selectedColor, EnableGroup = true, Margin = new Padding(10, 5, 10, 5), Text = v.ToString("#0.##"), Font = new Font("黑体", 12) }; | |||
| btn.Click += delegate { discont = v; disContLbl.Text = discont.Value.ToString("#0.##"); }; | |||
| flowLayoutPanel1.Controls.Add(btn); | |||
| } | |||
| } | |||
| private void discontSetBtn_Click(object sender, EventArgs e) | |||
| { | |||
| var dialog = new DiscontSetDialog(); | |||
| if (dialog.ShowDialog() == DialogResult.OK) | |||
| { | |||
| strDiscontWeight = dialog.disCont; | |||
| BindDiscontBtn(); | |||
| } | |||
| } | |||
| private void disContLbl_Click(object sender, EventArgs e) | |||
| { | |||
| var keyBoard = new NumberPad(); | |||
| if (keyBoard.ShowDialog() == true) | |||
| { | |||
| discont = decimal.Parse(keyBoard.Result); | |||
| disContLbl.Text = discont.Value.ToString("#0.##"); | |||
| } | |||
| } | |||
| } | |||
| } | |||
| @ -1,189 +0,0 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | |||
| <root> | |||
| <!-- | |||
| Microsoft ResX Schema | |||
| Version 2.0 | |||
| The primary goals of this format is to allow a simple XML format | |||
| that is mostly human readable. The generation and parsing of the | |||
| various data types are done through the TypeConverter classes | |||
| associated with the data types. | |||
| Example: | |||
| ... ado.net/XML headers & schema ... | |||
| <resheader name="resmimetype">text/microsoft-resx</resheader> | |||
| <resheader name="version">2.0</resheader> | |||
| <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||
| <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||
| <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||
| <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||
| <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||
| <value>[base64 mime encoded serialized .NET Framework object]</value> | |||
| </data> | |||
| <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||
| <comment>This is a comment</comment> | |||
| </data> | |||
| There are any number of "resheader" rows that contain simple | |||
| name/value pairs. | |||
| Each data row contains a name, and value. The row also contains a | |||
| type or mimetype. Type corresponds to a .NET class that support | |||
| text/value conversion through the TypeConverter architecture. | |||
| Classes that don't support this are serialized and stored with the | |||
| mimetype set. | |||
| The mimetype is used for serialized objects, and tells the | |||
| ResXResourceReader how to depersist the object. This is currently not | |||
| extensible. For a given mimetype the value must be set accordingly: | |||
| Note - application/x-microsoft.net.object.binary.base64 is the format | |||
| that the ResXResourceWriter will generate, however the reader can | |||
| read any of the formats listed below. | |||
| mimetype: application/x-microsoft.net.object.binary.base64 | |||
| value : The object must be serialized with | |||
| : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |||
| : and then encoded with base64 encoding. | |||
| mimetype: application/x-microsoft.net.object.soap.base64 | |||
| value : The object must be serialized with | |||
| : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||
| : and then encoded with base64 encoding. | |||
| mimetype: application/x-microsoft.net.object.bytearray.base64 | |||
| value : The object must be serialized into a byte array | |||
| : using a System.ComponentModel.TypeConverter | |||
| : and then encoded with base64 encoding. | |||
| --> | |||
| <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||
| <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |||
| <xsd:element name="root" msdata:IsDataSet="true"> | |||
| <xsd:complexType> | |||
| <xsd:choice maxOccurs="unbounded"> | |||
| <xsd:element name="metadata"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" use="required" type="xsd:string" /> | |||
| <xsd:attribute name="type" type="xsd:string" /> | |||
| <xsd:attribute name="mimetype" type="xsd:string" /> | |||
| <xsd:attribute ref="xml:space" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="assembly"> | |||
| <xsd:complexType> | |||
| <xsd:attribute name="alias" type="xsd:string" /> | |||
| <xsd:attribute name="name" type="xsd:string" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="data"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
| <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |||
| <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||
| <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||
| <xsd:attribute ref="xml:space" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="resheader"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" type="xsd:string" use="required" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| </xsd:choice> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| </xsd:schema> | |||
| <resheader name="resmimetype"> | |||
| <value>text/microsoft-resx</value> | |||
| </resheader> | |||
| <resheader name="version"> | |||
| <value>2.0</value> | |||
| </resheader> | |||
| <resheader name="reader"> | |||
| <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
| </resheader> | |||
| <resheader name="writer"> | |||
| <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
| </resheader> | |||
| <metadata name="F_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_Idx.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_BarCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_GoodsCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_Goods_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_SecondNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_Number.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_DiscontWeight.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_Time.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_SaleOutStore_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_Customer_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_Goods_Code.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_Goods_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_SecondNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_Number.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_SSecondNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_SNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_DiffNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="M_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="M_Customer_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="M_SendTime.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="M_DeliverGoodsLine_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| </root> | |||
| @ -1,17 +0,0 @@ | |||
| using System; | |||
| using System.Collections.Generic; | |||
| using System.Linq; | |||
| using System.Text; | |||
| using System.Threading.Tasks; | |||
| namespace ButcherFactory.SegmentSaleOut_ | |||
| { | |||
| public class SegmentSaleOutFormConfig | |||
| { | |||
| public long? Store_ID { get; set; } | |||
| public string Store_Name { get; set; } | |||
| public string DiscontWeight { get; set; } | |||
| } | |||
| } | |||
| @ -1,274 +0,0 @@ | |||
| namespace ButcherFactory.SegmentSaleOut_ | |||
| { | |||
| partial class WeightRecordDialog | |||
| { | |||
| /// <summary> | |||
| /// Required designer variable. | |||
| /// </summary> | |||
| private System.ComponentModel.IContainer components = null; | |||
| /// <summary> | |||
| /// Clean up any resources being used. | |||
| /// </summary> | |||
| /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | |||
| protected override void Dispose(bool disposing) | |||
| { | |||
| if (disposing && (components != null)) | |||
| { | |||
| components.Dispose(); | |||
| } | |||
| base.Dispose(disposing); | |||
| } | |||
| #region Windows Form Designer generated code | |||
| /// <summary> | |||
| /// Required method for Designer support - do not modify | |||
| /// the contents of this method with the code editor. | |||
| /// </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 dataGridViewCellStyle6 = 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(); | |||
| this.panel1 = new System.Windows.Forms.Panel(); | |||
| this.closeBtn = new ButcherFactory.Controls.ColorButton(); | |||
| this.deleteBtn = new ButcherFactory.Controls.ColorButton(); | |||
| this.addBtn = new ButcherFactory.Controls.ColorButton(); | |||
| this.uDataGridView1 = new WinFormControl.UDataGridView(); | |||
| this.R_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.R_Idx = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.R_BarCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.R_Goods_Code = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.R_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.R_SecondNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.R_Number = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.R_DiscontWeight = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.R_Operator = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.R_Time = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.panel1.SuspendLayout(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).BeginInit(); | |||
| this.SuspendLayout(); | |||
| // | |||
| // panel1 | |||
| // | |||
| this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | |||
| | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.panel1.Controls.Add(this.closeBtn); | |||
| this.panel1.Controls.Add(this.deleteBtn); | |||
| this.panel1.Controls.Add(this.addBtn); | |||
| this.panel1.Location = new System.Drawing.Point(185, 461); | |||
| this.panel1.Name = "panel1"; | |||
| this.panel1.Size = new System.Drawing.Size(744, 52); | |||
| this.panel1.TabIndex = 4; | |||
| // | |||
| // closeBtn | |||
| // | |||
| this.closeBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245))))); | |||
| this.closeBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); | |||
| this.closeBtn.ForeColor = System.Drawing.Color.White; | |||
| this.closeBtn.Location = new System.Drawing.Point(537, 5); | |||
| this.closeBtn.Name = "closeBtn"; | |||
| this.closeBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107))))); | |||
| this.closeBtn.Size = new System.Drawing.Size(117, 43); | |||
| this.closeBtn.TabIndex = 3; | |||
| this.closeBtn.Text = "关闭"; | |||
| this.closeBtn.UseVisualStyleBackColor = false; | |||
| this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click); | |||
| // | |||
| // deleteBtn | |||
| // | |||
| this.deleteBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(25))))); | |||
| this.deleteBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); | |||
| this.deleteBtn.ForeColor = System.Drawing.Color.White; | |||
| this.deleteBtn.Location = new System.Drawing.Point(328, 5); | |||
| this.deleteBtn.Name = "deleteBtn"; | |||
| this.deleteBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107))))); | |||
| this.deleteBtn.Size = new System.Drawing.Size(117, 43); | |||
| this.deleteBtn.TabIndex = 5; | |||
| this.deleteBtn.Text = "删除且更新"; | |||
| this.deleteBtn.UseVisualStyleBackColor = false; | |||
| this.deleteBtn.Click += new System.EventHandler(this.deleteBtn_Click); | |||
| // | |||
| // addBtn | |||
| // | |||
| this.addBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(198)))), ((int)(((byte)(58))))); | |||
| this.addBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); | |||
| this.addBtn.ForeColor = System.Drawing.Color.White; | |||
| this.addBtn.Location = new System.Drawing.Point(128, 5); | |||
| this.addBtn.Name = "addBtn"; | |||
| this.addBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107))))); | |||
| this.addBtn.Size = new System.Drawing.Size(117, 43); | |||
| this.addBtn.TabIndex = 3; | |||
| this.addBtn.Text = "新增"; | |||
| this.addBtn.UseVisualStyleBackColor = false; | |||
| this.addBtn.Click += new System.EventHandler(this.addBtn_Click); | |||
| // | |||
| // uDataGridView1 | |||
| // | |||
| this.uDataGridView1.AllowUserToAddRows = false; | |||
| this.uDataGridView1.AllowUserToDeleteRows = false; | |||
| this.uDataGridView1.AllowUserToResizeColumns = false; | |||
| this.uDataGridView1.AllowUserToResizeRows = false; | |||
| dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); | |||
| this.uDataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; | |||
| this.uDataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| | System.Windows.Forms.AnchorStyles.Left) | |||
| | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.uDataGridView1.BackgroundColor = System.Drawing.Color.White; | |||
| this.uDataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None; | |||
| dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; | |||
| dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 12F); | |||
| dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; | |||
| dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | |||
| this.uDataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; | |||
| this.uDataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; | |||
| this.uDataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | |||
| this.R_ID, | |||
| this.R_Idx, | |||
| this.R_BarCode, | |||
| this.R_Goods_Code, | |||
| this.R_Goods_Name, | |||
| this.R_SecondNumber, | |||
| this.R_Number, | |||
| this.R_DiscontWeight, | |||
| this.R_Operator, | |||
| this.R_Time}); | |||
| this.uDataGridView1.Location = new System.Drawing.Point(12, 15); | |||
| this.uDataGridView1.MultiSelect = false; | |||
| this.uDataGridView1.Name = "uDataGridView1"; | |||
| this.uDataGridView1.ReadOnly = true; | |||
| this.uDataGridView1.RowHeadersVisible = false; | |||
| dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); | |||
| dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); | |||
| this.uDataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle6; | |||
| this.uDataGridView1.RowTemplate.Height = 40; | |||
| this.uDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; | |||
| this.uDataGridView1.Size = new System.Drawing.Size(1045, 434); | |||
| this.uDataGridView1.TabIndex = 3; | |||
| // | |||
| // R_ID | |||
| // | |||
| this.R_ID.DataPropertyName = "ID"; | |||
| this.R_ID.HeaderText = "ID"; | |||
| this.R_ID.Name = "R_ID"; | |||
| this.R_ID.ReadOnly = true; | |||
| this.R_ID.Visible = false; | |||
| // | |||
| // R_Idx | |||
| // | |||
| this.R_Idx.DataPropertyName = "Idx"; | |||
| this.R_Idx.HeaderText = "序号"; | |||
| this.R_Idx.Name = "R_Idx"; | |||
| this.R_Idx.ReadOnly = true; | |||
| this.R_Idx.Width = 75; | |||
| // | |||
| // R_BarCode | |||
| // | |||
| this.R_BarCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.R_BarCode.DataPropertyName = "ShortCode"; | |||
| this.R_BarCode.HeaderText = "存货条码"; | |||
| this.R_BarCode.MinimumWidth = 100; | |||
| this.R_BarCode.Name = "R_BarCode"; | |||
| this.R_BarCode.ReadOnly = true; | |||
| // | |||
| // R_Goods_Code | |||
| // | |||
| this.R_Goods_Code.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.R_Goods_Code.DataPropertyName = "Goods_Code"; | |||
| this.R_Goods_Code.HeaderText = "产品编码"; | |||
| this.R_Goods_Code.Name = "R_Goods_Code"; | |||
| this.R_Goods_Code.ReadOnly = true; | |||
| // | |||
| // R_Goods_Name | |||
| // | |||
| this.R_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.R_Goods_Name.DataPropertyName = "Goods_Name"; | |||
| this.R_Goods_Name.HeaderText = "产品名称"; | |||
| this.R_Goods_Name.MinimumWidth = 100; | |||
| this.R_Goods_Name.Name = "R_Goods_Name"; | |||
| this.R_Goods_Name.ReadOnly = true; | |||
| // | |||
| // R_SecondNumber | |||
| // | |||
| this.R_SecondNumber.DataPropertyName = "SecondNumber"; | |||
| dataGridViewCellStyle3.Format = "#0.######"; | |||
| this.R_SecondNumber.DefaultCellStyle = dataGridViewCellStyle3; | |||
| this.R_SecondNumber.HeaderText = "辅数量"; | |||
| this.R_SecondNumber.Name = "R_SecondNumber"; | |||
| this.R_SecondNumber.ReadOnly = true; | |||
| // | |||
| // R_Number | |||
| // | |||
| this.R_Number.DataPropertyName = "Number"; | |||
| dataGridViewCellStyle4.Format = "#0.######"; | |||
| this.R_Number.DefaultCellStyle = dataGridViewCellStyle4; | |||
| this.R_Number.HeaderText = "报价数量"; | |||
| this.R_Number.Name = "R_Number"; | |||
| this.R_Number.ReadOnly = true; | |||
| // | |||
| // R_DiscontWeight | |||
| // | |||
| this.R_DiscontWeight.DataPropertyName = "DiscontWeight"; | |||
| dataGridViewCellStyle5.Format = "#0.######"; | |||
| this.R_DiscontWeight.DefaultCellStyle = dataGridViewCellStyle5; | |||
| this.R_DiscontWeight.HeaderText = "扣重"; | |||
| this.R_DiscontWeight.Name = "R_DiscontWeight"; | |||
| this.R_DiscontWeight.ReadOnly = true; | |||
| // | |||
| // R_Operator | |||
| // | |||
| this.R_Operator.DataPropertyName = "Operator"; | |||
| this.R_Operator.HeaderText = "操作员"; | |||
| this.R_Operator.Name = "R_Operator"; | |||
| this.R_Operator.ReadOnly = true; | |||
| this.R_Operator.Width = 150; | |||
| // | |||
| // R_Time | |||
| // | |||
| this.R_Time.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.R_Time.DataPropertyName = "Time"; | |||
| this.R_Time.HeaderText = "时间"; | |||
| this.R_Time.MinimumWidth = 120; | |||
| this.R_Time.Name = "R_Time"; | |||
| this.R_Time.ReadOnly = true; | |||
| // | |||
| // WeightRecordDialog | |||
| // | |||
| this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); | |||
| this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |||
| this.BackColor = System.Drawing.Color.White; | |||
| this.ClientSize = new System.Drawing.Size(1069, 528); | |||
| this.Controls.Add(this.panel1); | |||
| this.Controls.Add(this.uDataGridView1); | |||
| this.Name = "WeightRecordDialog"; | |||
| this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; | |||
| this.Text = "称重记录"; | |||
| this.panel1.ResumeLayout(false); | |||
| ((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).EndInit(); | |||
| this.ResumeLayout(false); | |||
| } | |||
| #endregion | |||
| private System.Windows.Forms.Panel panel1; | |||
| private Controls.ColorButton closeBtn; | |||
| private Controls.ColorButton deleteBtn; | |||
| private Controls.ColorButton addBtn; | |||
| private WinFormControl.UDataGridView uDataGridView1; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn R_ID; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn R_Idx; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn R_BarCode; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn R_Goods_Code; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn R_Goods_Name; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn R_SecondNumber; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn R_Number; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn R_DiscontWeight; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn R_Operator; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn R_Time; | |||
| } | |||
| } | |||
| @ -1,122 +0,0 @@ | |||
| using ButcherFactory.BO; | |||
| using ButcherFactory.BO.LocalBL; | |||
| using System; | |||
| using System.Collections.Generic; | |||
| using System.ComponentModel; | |||
| using System.Data; | |||
| using System.Drawing; | |||
| using System.Linq; | |||
| using System.Text; | |||
| using System.Threading.Tasks; | |||
| using System.Windows.Forms; | |||
| namespace ButcherFactory.SegmentSaleOut_ | |||
| { | |||
| public partial class WeightRecordDialog : Form | |||
| { | |||
| BindingList<SegmentSaleOut_Detail> list; | |||
| SaleOutStore_Detail mDetail; | |||
| long? mBatchID = null; | |||
| public bool Changed = false; | |||
| public WeightRecordDialog(SaleOutStore_Detail detail, bool readOnly, long? batchID) | |||
| { | |||
| InitializeComponent(); | |||
| mDetail = detail; | |||
| mBatchID = batchID; | |||
| if (readOnly) | |||
| { | |||
| addBtn.Enabled = false; | |||
| deleteBtn.Enabled = false; | |||
| } | |||
| uDataGridView1.BorderStyle = BorderStyle.FixedSingle; | |||
| BindGrid(); | |||
| uDataGridView1.RowPrePaint += uDataGridView1_RowPrePaint; | |||
| uDataGridView1.CellPainting += uDataGridView1_CellPainting; | |||
| } | |||
| void uDataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e) | |||
| { | |||
| var last = uDataGridView1.Rows.Count - 1; | |||
| if (e.RowIndex == last) | |||
| { | |||
| if (e.ColumnIndex == 2) | |||
| { | |||
| e.PaintBackground(e.ClipBounds, false); | |||
| e.Handled = true; | |||
| } | |||
| else if (e.ColumnIndex == 3) | |||
| { | |||
| using (Brush foreColor = new SolidBrush(e.CellStyle.ForeColor)) | |||
| { | |||
| e.PaintBackground(e.ClipBounds, false); | |||
| StringFormat drawFormat = new StringFormat(); | |||
| drawFormat.LineAlignment = StringAlignment.Center; | |||
| drawFormat.Alignment = System.Drawing.StringAlignment.Center; | |||
| e.Graphics.DrawString("合计", e.CellStyle.Font, foreColor, e.CellBounds, drawFormat); | |||
| e.Handled = true; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| void uDataGridView1_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e) | |||
| { | |||
| if (e.RowIndex == uDataGridView1.Rows.Count - 1) | |||
| { | |||
| var row = uDataGridView1.Rows[e.RowIndex]; | |||
| row.DefaultCellStyle.SelectionForeColor = Color.Black; | |||
| row.DefaultCellStyle.BackColor = Color.Khaki; | |||
| row.DefaultCellStyle.SelectionBackColor = Color.Khaki; | |||
| } | |||
| } | |||
| void BindGrid() | |||
| { | |||
| list = SegmentSaleOutBL.GetWeightRecord(mDetail.ID); | |||
| var total = new SegmentSaleOut_Detail(); | |||
| total.Number = list.Sum(x => x.Number); | |||
| total.SecondNumber = list.Sum(x => x.SecondNumber); | |||
| list.Add(total); | |||
| uDataGridView1.DataSource = list; | |||
| ReBuildTotalRow(); | |||
| uDataGridView1.Refresh(); | |||
| } | |||
| private void ReBuildTotalRow() | |||
| { | |||
| var row = uDataGridView1.Rows[list.Count - 1]; | |||
| row.Cells["R_Time"].Value = null; | |||
| } | |||
| private void addBtn_Click(object sender, EventArgs e) | |||
| { | |||
| if (new AddWeightRecord(mDetail, mBatchID).ShowDialog() == DialogResult.OK) | |||
| { | |||
| BindGrid(); | |||
| Changed = true; | |||
| } | |||
| } | |||
| private void deleteBtn_Click(object sender, EventArgs e) | |||
| { | |||
| if (uDataGridView1.CurrentRow == null) | |||
| return; | |||
| var id = (long)uDataGridView1.CurrentRow.Cells[0].Value; | |||
| if (id == 0) | |||
| return; | |||
| var tag = list.First(x => x.ID == id); | |||
| SegmentSaleOutBL.DeleteAndUpdate(tag); | |||
| BindGrid(); | |||
| Changed = true; | |||
| } | |||
| private void closeBtn_Click(object sender, EventArgs e) | |||
| { | |||
| Close(); | |||
| } | |||
| } | |||
| } | |||
| @ -1,150 +0,0 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | |||
| <root> | |||
| <!-- | |||
| Microsoft ResX Schema | |||
| Version 2.0 | |||
| The primary goals of this format is to allow a simple XML format | |||
| that is mostly human readable. The generation and parsing of the | |||
| various data types are done through the TypeConverter classes | |||
| associated with the data types. | |||
| Example: | |||
| ... ado.net/XML headers & schema ... | |||
| <resheader name="resmimetype">text/microsoft-resx</resheader> | |||
| <resheader name="version">2.0</resheader> | |||
| <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||
| <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||
| <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||
| <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||
| <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||
| <value>[base64 mime encoded serialized .NET Framework object]</value> | |||
| </data> | |||
| <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||
| <comment>This is a comment</comment> | |||
| </data> | |||
| There are any number of "resheader" rows that contain simple | |||
| name/value pairs. | |||
| Each data row contains a name, and value. The row also contains a | |||
| type or mimetype. Type corresponds to a .NET class that support | |||
| text/value conversion through the TypeConverter architecture. | |||
| Classes that don't support this are serialized and stored with the | |||
| mimetype set. | |||
| The mimetype is used for serialized objects, and tells the | |||
| ResXResourceReader how to depersist the object. This is currently not | |||
| extensible. For a given mimetype the value must be set accordingly: | |||
| Note - application/x-microsoft.net.object.binary.base64 is the format | |||
| that the ResXResourceWriter will generate, however the reader can | |||
| read any of the formats listed below. | |||
| mimetype: application/x-microsoft.net.object.binary.base64 | |||
| value : The object must be serialized with | |||
| : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |||
| : and then encoded with base64 encoding. | |||
| mimetype: application/x-microsoft.net.object.soap.base64 | |||
| value : The object must be serialized with | |||
| : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||
| : and then encoded with base64 encoding. | |||
| mimetype: application/x-microsoft.net.object.bytearray.base64 | |||
| value : The object must be serialized into a byte array | |||
| : using a System.ComponentModel.TypeConverter | |||
| : and then encoded with base64 encoding. | |||
| --> | |||
| <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||
| <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |||
| <xsd:element name="root" msdata:IsDataSet="true"> | |||
| <xsd:complexType> | |||
| <xsd:choice maxOccurs="unbounded"> | |||
| <xsd:element name="metadata"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" use="required" type="xsd:string" /> | |||
| <xsd:attribute name="type" type="xsd:string" /> | |||
| <xsd:attribute name="mimetype" type="xsd:string" /> | |||
| <xsd:attribute ref="xml:space" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="assembly"> | |||
| <xsd:complexType> | |||
| <xsd:attribute name="alias" type="xsd:string" /> | |||
| <xsd:attribute name="name" type="xsd:string" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="data"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
| <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |||
| <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||
| <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||
| <xsd:attribute ref="xml:space" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="resheader"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" type="xsd:string" use="required" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| </xsd:choice> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| </xsd:schema> | |||
| <resheader name="resmimetype"> | |||
| <value>text/microsoft-resx</value> | |||
| </resheader> | |||
| <resheader name="version"> | |||
| <value>2.0</value> | |||
| </resheader> | |||
| <resheader name="reader"> | |||
| <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
| </resheader> | |||
| <resheader name="writer"> | |||
| <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
| </resheader> | |||
| <metadata name="R_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="R_Idx.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="R_BarCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="R_Goods_Code.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="R_Goods_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="R_SecondNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="R_Number.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="R_DiscontWeight.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="R_Operator.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="R_Time.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| </root> | |||
| @ -1,78 +0,0 @@ | |||
| namespace ButcherFactory.SegmentStockUp_ | |||
| { | |||
| partial class DeliverLineGroupSelectDialog | |||
| { | |||
| /// <summary> | |||
| /// Required designer variable. | |||
| /// </summary> | |||
| private System.ComponentModel.IContainer components = null; | |||
| /// <summary> | |||
| /// Clean up any resources being used. | |||
| /// </summary> | |||
| /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | |||
| protected override void Dispose(bool disposing) | |||
| { | |||
| if (disposing && (components != null)) | |||
| { | |||
| components.Dispose(); | |||
| } | |||
| base.Dispose(disposing); | |||
| } | |||
| #region Windows Form Designer generated code | |||
| /// <summary> | |||
| /// Required method for Designer support - do not modify | |||
| /// the contents of this method with the code editor. | |||
| /// </summary> | |||
| private void InitializeComponent() | |||
| { | |||
| this.closeBtn = new ButcherFactory.Controls.ColorButton(); | |||
| this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); | |||
| this.SuspendLayout(); | |||
| // | |||
| // closeBtn | |||
| // | |||
| this.closeBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.closeBtn.BackColor = System.Drawing.Color.Red; | |||
| this.closeBtn.Font = new System.Drawing.Font("宋体", 12F); | |||
| this.closeBtn.ForeColor = System.Drawing.Color.White; | |||
| this.closeBtn.Location = new System.Drawing.Point(716, 24); | |||
| this.closeBtn.Name = "closeBtn"; | |||
| this.closeBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107))))); | |||
| this.closeBtn.Size = new System.Drawing.Size(88, 39); | |||
| this.closeBtn.TabIndex = 6; | |||
| this.closeBtn.Text = "关闭"; | |||
| this.closeBtn.UseVisualStyleBackColor = false; | |||
| this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click); | |||
| // | |||
| // flowLayoutPanel1 | |||
| // | |||
| this.flowLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| | System.Windows.Forms.AnchorStyles.Left) | |||
| | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.flowLayoutPanel1.Location = new System.Drawing.Point(18, 84); | |||
| this.flowLayoutPanel1.Name = "flowLayoutPanel1"; | |||
| this.flowLayoutPanel1.Size = new System.Drawing.Size(789, 452); | |||
| this.flowLayoutPanel1.TabIndex = 5; | |||
| // | |||
| // DeliverLineGroupSelectDialog | |||
| // | |||
| this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); | |||
| this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |||
| this.ClientSize = new System.Drawing.Size(824, 560); | |||
| this.Controls.Add(this.closeBtn); | |||
| this.Controls.Add(this.flowLayoutPanel1); | |||
| this.Name = "DeliverLineGroupSelectDialog"; | |||
| this.Text = "选择线路分组"; | |||
| this.ResumeLayout(false); | |||
| } | |||
| #endregion | |||
| private Controls.ColorButton closeBtn; | |||
| private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; | |||
| } | |||
| } | |||
| @ -1,75 +0,0 @@ | |||
| using ButcherFactory.BO; | |||
| using ButcherFactory.BO.LocalBL; | |||
| using ButcherFactory.BO.Utils; | |||
| using ButcherFactory.Controls; | |||
| using System; | |||
| using System.Collections.Generic; | |||
| using System.ComponentModel; | |||
| using System.Data; | |||
| using System.Drawing; | |||
| using System.Linq; | |||
| using System.Text; | |||
| using System.Threading.Tasks; | |||
| using System.Windows.Forms; | |||
| namespace ButcherFactory.SegmentStockUp_ | |||
| { | |||
| public partial class DeliverLineGroupSelectDialog : Form | |||
| { | |||
| Color color = Color.FromArgb(105, 105, 105); | |||
| Color selectColor = Color.FromArgb(250, 120, 24); | |||
| SegmentStockUpConfig config; | |||
| public DeliverLineGroupSelectDialog() | |||
| { | |||
| InitializeComponent(); | |||
| this.FormClosing += DeliverLineGroupSelectDialog_FormClosing; | |||
| } | |||
| void DeliverLineGroupSelectDialog_FormClosing(object sender, FormClosingEventArgs e) | |||
| { | |||
| XmlUtil.SerializerObjToFile(config); | |||
| } | |||
| protected override void OnLoad(EventArgs e) | |||
| { | |||
| base.OnLoad(e); | |||
| config = XmlUtil.DeserializeFromFile<SegmentStockUpConfig>(); | |||
| BindList(); | |||
| } | |||
| void BindList() | |||
| { | |||
| flowLayoutPanel1.Controls.Clear(); | |||
| var list = SegmentStockUpBL.GetDeliverLineGroupList(); | |||
| foreach (var item in list) | |||
| { | |||
| var btn = new ColorButton() { Width = 150, Height = 60, Text = item.Name, Tag = item, Font = new Font("宋体", 14), Margin = new Padding(30) }; | |||
| btn.BackColor = config.LineGroup.Any(x => x.ID == item.ID) ? selectColor : color; | |||
| btn.Click += ItemClick; | |||
| flowLayoutPanel1.Controls.Add(btn); | |||
| } | |||
| } | |||
| private void ItemClick(object sender, EventArgs e) | |||
| { | |||
| var btn = sender as ColorButton; | |||
| var item = (DeliverLineGroup)btn.Tag; | |||
| var first = config.LineGroup.FirstOrDefault(x => x.ID == item.ID); | |||
| if (first == null) | |||
| { | |||
| config.LineGroup.Add(item); | |||
| btn.BackColor = selectColor; | |||
| } | |||
| else | |||
| { | |||
| config.LineGroup.Remove(first); | |||
| btn.BackColor = color; | |||
| } | |||
| } | |||
| private void closeBtn_Click(object sender, EventArgs e) | |||
| { | |||
| this.Close(); | |||
| } | |||
| } | |||
| } | |||
| @ -1,120 +0,0 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | |||
| <root> | |||
| <!-- | |||
| Microsoft ResX Schema | |||
| Version 2.0 | |||
| The primary goals of this format is to allow a simple XML format | |||
| that is mostly human readable. The generation and parsing of the | |||
| various data types are done through the TypeConverter classes | |||
| associated with the data types. | |||
| Example: | |||
| ... ado.net/XML headers & schema ... | |||
| <resheader name="resmimetype">text/microsoft-resx</resheader> | |||
| <resheader name="version">2.0</resheader> | |||
| <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||
| <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||
| <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||
| <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||
| <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||
| <value>[base64 mime encoded serialized .NET Framework object]</value> | |||
| </data> | |||
| <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||
| <comment>This is a comment</comment> | |||
| </data> | |||
| There are any number of "resheader" rows that contain simple | |||
| name/value pairs. | |||
| Each data row contains a name, and value. The row also contains a | |||
| type or mimetype. Type corresponds to a .NET class that support | |||
| text/value conversion through the TypeConverter architecture. | |||
| Classes that don't support this are serialized and stored with the | |||
| mimetype set. | |||
| The mimetype is used for serialized objects, and tells the | |||
| ResXResourceReader how to depersist the object. This is currently not | |||
| extensible. For a given mimetype the value must be set accordingly: | |||
| Note - application/x-microsoft.net.object.binary.base64 is the format | |||
| that the ResXResourceWriter will generate, however the reader can | |||
| read any of the formats listed below. | |||
| mimetype: application/x-microsoft.net.object.binary.base64 | |||
| value : The object must be serialized with | |||
| : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |||
| : and then encoded with base64 encoding. | |||
| mimetype: application/x-microsoft.net.object.soap.base64 | |||
| value : The object must be serialized with | |||
| : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||
| : and then encoded with base64 encoding. | |||
| mimetype: application/x-microsoft.net.object.bytearray.base64 | |||
| value : The object must be serialized into a byte array | |||
| : using a System.ComponentModel.TypeConverter | |||
| : and then encoded with base64 encoding. | |||
| --> | |||
| <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||
| <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |||
| <xsd:element name="root" msdata:IsDataSet="true"> | |||
| <xsd:complexType> | |||
| <xsd:choice maxOccurs="unbounded"> | |||
| <xsd:element name="metadata"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" use="required" type="xsd:string" /> | |||
| <xsd:attribute name="type" type="xsd:string" /> | |||
| <xsd:attribute name="mimetype" type="xsd:string" /> | |||
| <xsd:attribute ref="xml:space" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="assembly"> | |||
| <xsd:complexType> | |||
| <xsd:attribute name="alias" type="xsd:string" /> | |||
| <xsd:attribute name="name" type="xsd:string" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="data"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
| <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |||
| <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||
| <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||
| <xsd:attribute ref="xml:space" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="resheader"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" type="xsd:string" use="required" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| </xsd:choice> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| </xsd:schema> | |||
| <resheader name="resmimetype"> | |||
| <value>text/microsoft-resx</value> | |||
| </resheader> | |||
| <resheader name="version"> | |||
| <value>2.0</value> | |||
| </resheader> | |||
| <resheader name="reader"> | |||
| <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
| </resheader> | |||
| <resheader name="writer"> | |||
| <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
| </resheader> | |||
| </root> | |||
| @ -1,43 +0,0 @@ | |||
| using System; | |||
| using System.Collections.Generic; | |||
| using System.Linq; | |||
| using System.Runtime.InteropServices; | |||
| using System.Text; | |||
| using System.Threading.Tasks; | |||
| namespace ButcherFactory.SegmentStockUp_ | |||
| { | |||
| 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(); | |||
| } | |||
| } | |||
| @ -1,17 +0,0 @@ | |||
| using ButcherFactory.BO; | |||
| using System; | |||
| using System.Collections.Generic; | |||
| using System.Linq; | |||
| using System.Text; | |||
| using System.Threading.Tasks; | |||
| namespace ButcherFactory.SegmentStockUp_ | |||
| { | |||
| public class SegmentStockUpConfig | |||
| { | |||
| public decimal? AllowDownWeight { get; set; } | |||
| private List<DeliverLineGroup> mLineGroup = new List<DeliverLineGroup>(); | |||
| public List<DeliverLineGroup> LineGroup { get { return mLineGroup; } } | |||
| } | |||
| } | |||
| @ -1,879 +0,0 @@ | |||
| namespace ButcherFactory.SegmentStockUp_ | |||
| { | |||
| partial class SegmentStockUpForm | |||
| { | |||
| /// <summary> | |||
| /// Required designer variable. | |||
| /// </summary> | |||
| private System.ComponentModel.IContainer components = null; | |||
| /// <summary> | |||
| /// Clean up any resources being used. | |||
| /// </summary> | |||
| /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | |||
| protected override void Dispose(bool disposing) | |||
| { | |||
| if (disposing && (components != null)) | |||
| { | |||
| components.Dispose(); | |||
| } | |||
| base.Dispose(disposing); | |||
| } | |||
| #region Windows Form Designer generated code | |||
| /// <summary> | |||
| /// Required method for Designer support - do not modify | |||
| /// the contents of this method with the code editor. | |||
| /// </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 dataGridViewCellStyle7 = 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 dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); | |||
| System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); | |||
| System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = 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 dataGridViewCellStyle19 = 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(); | |||
| this.tabControl1 = new System.Windows.Forms.TabControl(); | |||
| this.tabPage1 = new System.Windows.Forms.TabPage(); | |||
| this.downWeightBox = new System.Windows.Forms.Label(); | |||
| this.label5 = new System.Windows.Forms.Label(); | |||
| this.label2 = new System.Windows.Forms.Label(); | |||
| this.label1 = new System.Windows.Forms.Label(); | |||
| this.panel7 = new System.Windows.Forms.Panel(); | |||
| this.colorButton1 = new ButcherFactory.Controls.ColorButton(); | |||
| this.printCk = new System.Windows.Forms.CheckBox(); | |||
| this.refresh = new ButcherFactory.Controls.ColorButton(); | |||
| this.bhUnitNumLbl = new System.Windows.Forms.Label(); | |||
| this.label9 = new System.Windows.Forms.Label(); | |||
| this.bhNumberLbl = new System.Windows.Forms.Label(); | |||
| this.label11 = new System.Windows.Forms.Label(); | |||
| this.dhUnitNumLbl = new System.Windows.Forms.Label(); | |||
| this.label7 = new System.Windows.Forms.Label(); | |||
| this.panel6 = new System.Windows.Forms.Panel(); | |||
| this.finishGrid = new WinFormControl.UDataGridView(); | |||
| this.F_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.F_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.F_UnitNum = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.F_SecondNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.F_SUnitNum = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.F_SSecondNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.label13 = new System.Windows.Forms.Label(); | |||
| this.detailGridView = new WinFormControl.UDataGridView(); | |||
| this.B_Customer_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.B_ShortCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.B_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.B_SaleOutStoreID = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.B_SecondNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.B_UnitNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.panel5 = new System.Windows.Forms.Panel(); | |||
| this.mainGridView = new WinFormControl.UDataGridView(); | |||
| this.D_Finishd = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.D_Customer_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.D_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.D_Goods_Spec = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.D_SecondNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.D_UnitNum = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.D_SSecondNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.D_SUnitNum = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||
| this.label12 = new System.Windows.Forms.Label(); | |||
| this.dhNumberLbl = new System.Windows.Forms.Label(); | |||
| this.label4 = new System.Windows.Forms.Label(); | |||
| this.driveLineLbl = new System.Windows.Forms.Label(); | |||
| this.goodsLbl = new System.Windows.Forms.Label(); | |||
| this.panel4 = new System.Windows.Forms.Panel(); | |||
| this.uScanPanel1 = new WinFormControl.UScanPanel(); | |||
| this.tabPage2 = new System.Windows.Forms.TabPage(); | |||
| this.lineGroupSetBtn = new ButcherFactory.Controls.ColorButton(); | |||
| this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); | |||
| this.roundPanel1.SuspendLayout(); | |||
| this.tabControl1.SuspendLayout(); | |||
| this.tabPage1.SuspendLayout(); | |||
| this.panel7.SuspendLayout(); | |||
| this.panel6.SuspendLayout(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.finishGrid)).BeginInit(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.detailGridView)).BeginInit(); | |||
| this.panel5.SuspendLayout(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.mainGridView)).BeginInit(); | |||
| this.tabPage2.SuspendLayout(); | |||
| this.SuspendLayout(); | |||
| // | |||
| // roundPanel1 | |||
| // | |||
| this.roundPanel1.Controls.Add(this.tabControl1); | |||
| this.roundPanel1.Size = new System.Drawing.Size(1187, 530); | |||
| // | |||
| // label3 | |||
| // | |||
| this.label3.Location = new System.Drawing.Point(495, 599); | |||
| // | |||
| // tabControl1 | |||
| // | |||
| this.tabControl1.Controls.Add(this.tabPage1); | |||
| this.tabControl1.Controls.Add(this.tabPage2); | |||
| this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill; | |||
| this.tabControl1.ItemSize = new System.Drawing.Size(48, 40); | |||
| this.tabControl1.Location = new System.Drawing.Point(0, 0); | |||
| this.tabControl1.Margin = new System.Windows.Forms.Padding(0); | |||
| this.tabControl1.Name = "tabControl1"; | |||
| this.tabControl1.Padding = new System.Drawing.Point(60, 3); | |||
| this.tabControl1.SelectedIndex = 0; | |||
| this.tabControl1.Size = new System.Drawing.Size(1187, 530); | |||
| this.tabControl1.TabIndex = 0; | |||
| // | |||
| // tabPage1 | |||
| // | |||
| this.tabPage1.Controls.Add(this.downWeightBox); | |||
| this.tabPage1.Controls.Add(this.label5); | |||
| this.tabPage1.Controls.Add(this.label2); | |||
| this.tabPage1.Controls.Add(this.label1); | |||
| this.tabPage1.Controls.Add(this.panel7); | |||
| this.tabPage1.Controls.Add(this.bhUnitNumLbl); | |||
| this.tabPage1.Controls.Add(this.label9); | |||
| this.tabPage1.Controls.Add(this.bhNumberLbl); | |||
| this.tabPage1.Controls.Add(this.label11); | |||
| this.tabPage1.Controls.Add(this.dhUnitNumLbl); | |||
| this.tabPage1.Controls.Add(this.label7); | |||
| this.tabPage1.Controls.Add(this.panel6); | |||
| this.tabPage1.Controls.Add(this.panel5); | |||
| this.tabPage1.Controls.Add(this.dhNumberLbl); | |||
| this.tabPage1.Controls.Add(this.label4); | |||
| this.tabPage1.Controls.Add(this.driveLineLbl); | |||
| this.tabPage1.Controls.Add(this.goodsLbl); | |||
| this.tabPage1.Controls.Add(this.panel4); | |||
| this.tabPage1.Controls.Add(this.uScanPanel1); | |||
| this.tabPage1.Location = new System.Drawing.Point(4, 44); | |||
| this.tabPage1.Name = "tabPage1"; | |||
| this.tabPage1.Padding = new System.Windows.Forms.Padding(3); | |||
| this.tabPage1.Size = new System.Drawing.Size(1179, 482); | |||
| this.tabPage1.TabIndex = 0; | |||
| this.tabPage1.Text = "备货"; | |||
| this.tabPage1.UseVisualStyleBackColor = true; | |||
| // | |||
| // downWeightBox | |||
| // | |||
| this.downWeightBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.downWeightBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; | |||
| this.downWeightBox.Font = new System.Drawing.Font("宋体", 14F); | |||
| this.downWeightBox.ForeColor = System.Drawing.Color.Red; | |||
| this.downWeightBox.Location = new System.Drawing.Point(1070, 82); | |||
| this.downWeightBox.Name = "downWeightBox"; | |||
| this.downWeightBox.Size = new System.Drawing.Size(102, 30); | |||
| this.downWeightBox.TabIndex = 43; | |||
| this.downWeightBox.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
| this.downWeightBox.Click += new System.EventHandler(this.downWeightBox_Click); | |||
| // | |||
| // label5 | |||
| // | |||
| this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.label5.AutoSize = true; | |||
| this.label5.Font = new System.Drawing.Font("宋体", 14F); | |||
| this.label5.ForeColor = System.Drawing.Color.Blue; | |||
| this.label5.Location = new System.Drawing.Point(973, 88); | |||
| this.label5.Name = "label5"; | |||
| this.label5.Size = new System.Drawing.Size(104, 19); | |||
| this.label5.TabIndex = 42; | |||
| this.label5.Text = "下浮重量:"; | |||
| // | |||
| // label2 | |||
| // | |||
| this.label2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; | |||
| this.label2.FlatStyle = System.Windows.Forms.FlatStyle.Popup; | |||
| this.label2.Font = new System.Drawing.Font("宋体", 14F); | |||
| this.label2.ForeColor = System.Drawing.Color.Red; | |||
| this.label2.Location = new System.Drawing.Point(470, 5); | |||
| this.label2.Name = "label2"; | |||
| this.label2.Size = new System.Drawing.Size(332, 32); | |||
| this.label2.TabIndex = 41; | |||
| this.label2.Text = "请选择"; | |||
| this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; | |||
| this.label2.Click += new System.EventHandler(this.label2_Click); | |||
| // | |||
| // label1 | |||
| // | |||
| this.label1.AutoSize = true; | |||
| this.label1.Font = new System.Drawing.Font("宋体", 14F); | |||
| this.label1.Location = new System.Drawing.Point(373, 12); | |||
| this.label1.Name = "label1"; | |||
| this.label1.Size = new System.Drawing.Size(104, 19); | |||
| this.label1.TabIndex = 40; | |||
| this.label1.Text = "选择客户:"; | |||
| // | |||
| // panel7 | |||
| // | |||
| this.panel7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.panel7.Controls.Add(this.colorButton1); | |||
| this.panel7.Controls.Add(this.printCk); | |||
| this.panel7.Controls.Add(this.refresh); | |||
| this.panel7.Location = new System.Drawing.Point(829, -1); | |||
| this.panel7.Name = "panel7"; | |||
| this.panel7.Size = new System.Drawing.Size(346, 44); | |||
| this.panel7.TabIndex = 39; | |||
| // | |||
| // colorButton1 | |||
| // | |||
| this.colorButton1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245))))); | |||
| this.colorButton1.ForeColor = System.Drawing.Color.White; | |||
| this.colorButton1.Location = new System.Drawing.Point(136, 5); | |||
| this.colorButton1.Name = "colorButton1"; | |||
| this.colorButton1.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106))))); | |||
| this.colorButton1.Size = new System.Drawing.Size(75, 35); | |||
| this.colorButton1.TabIndex = 2; | |||
| this.colorButton1.Text = "打印测试"; | |||
| this.colorButton1.UseVisualStyleBackColor = false; | |||
| this.colorButton1.Click += new System.EventHandler(this.colorButton1_Click); | |||
| // | |||
| // printCk | |||
| // | |||
| this.printCk.AutoSize = true; | |||
| this.printCk.Checked = true; | |||
| this.printCk.CheckState = System.Windows.Forms.CheckState.Checked; | |||
| this.printCk.Font = new System.Drawing.Font("黑体", 12F); | |||
| this.printCk.Location = new System.Drawing.Point(14, 13); | |||
| this.printCk.Name = "printCk"; | |||
| this.printCk.Size = new System.Drawing.Size(91, 20); | |||
| this.printCk.TabIndex = 1; | |||
| this.printCk.Text = "打印条码"; | |||
| this.printCk.UseVisualStyleBackColor = true; | |||
| // | |||
| // refresh | |||
| // | |||
| this.refresh.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245))))); | |||
| this.refresh.ForeColor = System.Drawing.Color.White; | |||
| this.refresh.Location = new System.Drawing.Point(268, 4); | |||
| this.refresh.Name = "refresh"; | |||
| this.refresh.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106))))); | |||
| this.refresh.Size = new System.Drawing.Size(75, 35); | |||
| this.refresh.TabIndex = 0; | |||
| this.refresh.Text = "刷新"; | |||
| this.refresh.UseVisualStyleBackColor = false; | |||
| this.refresh.Click += new System.EventHandler(this.refresh_Click); | |||
| // | |||
| // bhUnitNumLbl | |||
| // | |||
| this.bhUnitNumLbl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; | |||
| this.bhUnitNumLbl.Font = new System.Drawing.Font("宋体", 14F); | |||
| this.bhUnitNumLbl.ForeColor = System.Drawing.Color.Red; | |||
| this.bhUnitNumLbl.Location = new System.Drawing.Point(768, 82); | |||
| this.bhUnitNumLbl.Name = "bhUnitNumLbl"; | |||
| this.bhUnitNumLbl.Size = new System.Drawing.Size(120, 30); | |||
| this.bhUnitNumLbl.TabIndex = 37; | |||
| this.bhUnitNumLbl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
| // | |||
| // label9 | |||
| // | |||
| this.label9.AutoSize = true; | |||
| this.label9.Font = new System.Drawing.Font("宋体", 14F); | |||
| this.label9.Location = new System.Drawing.Point(675, 88); | |||
| this.label9.Name = "label9"; | |||
| this.label9.Size = new System.Drawing.Size(85, 19); | |||
| this.label9.TabIndex = 38; | |||
| this.label9.Text = "备货重量"; | |||
| // | |||
| // bhNumberLbl | |||
| // | |||
| this.bhNumberLbl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; | |||
| this.bhNumberLbl.Font = new System.Drawing.Font("宋体", 14F); | |||
| this.bhNumberLbl.ForeColor = System.Drawing.Color.Red; | |||
| this.bhNumberLbl.Location = new System.Drawing.Point(542, 82); | |||
| this.bhNumberLbl.Name = "bhNumberLbl"; | |||
| this.bhNumberLbl.Size = new System.Drawing.Size(120, 30); | |||
| this.bhNumberLbl.TabIndex = 35; | |||
| this.bhNumberLbl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
| // | |||
| // label11 | |||
| // | |||
| this.label11.AutoSize = true; | |||
| this.label11.Font = new System.Drawing.Font("宋体", 14F); | |||
| this.label11.Location = new System.Drawing.Point(455, 88); | |||
| this.label11.Name = "label11"; | |||
| this.label11.Size = new System.Drawing.Size(85, 19); | |||
| this.label11.TabIndex = 36; | |||
| this.label11.Text = "备货数量"; | |||
| // | |||
| // dhUnitNumLbl | |||
| // | |||
| this.dhUnitNumLbl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; | |||
| this.dhUnitNumLbl.Font = new System.Drawing.Font("宋体", 14F); | |||
| this.dhUnitNumLbl.ForeColor = System.Drawing.Color.Red; | |||
| this.dhUnitNumLbl.Location = new System.Drawing.Point(321, 82); | |||
| this.dhUnitNumLbl.Name = "dhUnitNumLbl"; | |||
| this.dhUnitNumLbl.Size = new System.Drawing.Size(120, 30); | |||
| this.dhUnitNumLbl.TabIndex = 33; | |||
| this.dhUnitNumLbl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
| // | |||
| // label7 | |||
| // | |||
| this.label7.AutoSize = true; | |||
| this.label7.Font = new System.Drawing.Font("宋体", 14F); | |||
| this.label7.Location = new System.Drawing.Point(231, 88); | |||
| this.label7.Name = "label7"; | |||
| this.label7.Size = new System.Drawing.Size(85, 19); | |||
| this.label7.TabIndex = 34; | |||
| this.label7.Text = "订货重量"; | |||
| // | |||
| // panel6 | |||
| // | |||
| this.panel6.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.panel6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247))))); | |||
| this.panel6.Controls.Add(this.finishGrid); | |||
| this.panel6.Controls.Add(this.label13); | |||
| this.panel6.Controls.Add(this.detailGridView); | |||
| this.panel6.Location = new System.Drawing.Point(575, 128); | |||
| this.panel6.Name = "panel6"; | |||
| this.panel6.Size = new System.Drawing.Size(600, 355); | |||
| this.panel6.TabIndex = 32; | |||
| // | |||
| // finishGrid | |||
| // | |||
| this.finishGrid.AllowUserToAddRows = false; | |||
| this.finishGrid.AllowUserToDeleteRows = false; | |||
| this.finishGrid.AllowUserToResizeColumns = false; | |||
| this.finishGrid.AllowUserToResizeRows = false; | |||
| dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(228)))), ((int)(((byte)(203))))); | |||
| this.finishGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; | |||
| this.finishGrid.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| | System.Windows.Forms.AnchorStyles.Left) | |||
| | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.finishGrid.BackgroundColor = System.Drawing.Color.White; | |||
| this.finishGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; | |||
| this.finishGrid.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; | |||
| this.finishGrid.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; | |||
| dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; | |||
| dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(129)))), ((int)(((byte)(213)))), ((int)(((byte)(68))))); | |||
| dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 10F); | |||
| dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; | |||
| dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | |||
| this.finishGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; | |||
| this.finishGrid.ColumnHeadersHeight = 30; | |||
| this.finishGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; | |||
| this.finishGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | |||
| this.F_RowIndex, | |||
| this.F_Name, | |||
| this.F_UnitNum, | |||
| this.F_SecondNumber, | |||
| this.F_SUnitNum, | |||
| this.F_SSecondNumber}); | |||
| this.finishGrid.EnableHeadersVisualStyles = false; | |||
| this.finishGrid.Location = new System.Drawing.Point(10, 313); | |||
| this.finishGrid.MultiSelect = false; | |||
| this.finishGrid.Name = "finishGrid"; | |||
| this.finishGrid.ReadOnly = true; | |||
| this.finishGrid.RowHeadersVisible = false; | |||
| dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(247)))), ((int)(((byte)(240))))); | |||
| dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 10F); | |||
| dataGridViewCellStyle7.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(129)))), ((int)(((byte)(213)))), ((int)(((byte)(68))))); | |||
| this.finishGrid.RowsDefaultCellStyle = dataGridViewCellStyle7; | |||
| this.finishGrid.RowTemplate.Height = 40; | |||
| this.finishGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; | |||
| this.finishGrid.Size = new System.Drawing.Size(580, 40); | |||
| this.finishGrid.TabIndex = 8; | |||
| // | |||
| // F_RowIndex | |||
| // | |||
| this.F_RowIndex.DataPropertyName = "RowIndex"; | |||
| this.F_RowIndex.HeaderText = "序号"; | |||
| this.F_RowIndex.Name = "F_RowIndex"; | |||
| this.F_RowIndex.ReadOnly = true; | |||
| this.F_RowIndex.Width = 80; | |||
| // | |||
| // F_Name | |||
| // | |||
| this.F_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.F_Name.DataPropertyName = "Name"; | |||
| this.F_Name.HeaderText = "客户"; | |||
| this.F_Name.MinimumWidth = 100; | |||
| this.F_Name.Name = "F_Name"; | |||
| this.F_Name.ReadOnly = true; | |||
| // | |||
| // F_UnitNum | |||
| // | |||
| this.F_UnitNum.DataPropertyName = "UnitNum"; | |||
| dataGridViewCellStyle3.Format = "#0.######"; | |||
| this.F_UnitNum.DefaultCellStyle = dataGridViewCellStyle3; | |||
| this.F_UnitNum.HeaderText = "订货重量"; | |||
| this.F_UnitNum.Name = "F_UnitNum"; | |||
| this.F_UnitNum.ReadOnly = true; | |||
| // | |||
| // F_SecondNumber | |||
| // | |||
| this.F_SecondNumber.DataPropertyName = "SecondNumber"; | |||
| dataGridViewCellStyle4.Format = "#0.######"; | |||
| this.F_SecondNumber.DefaultCellStyle = dataGridViewCellStyle4; | |||
| this.F_SecondNumber.HeaderText = "订货数量"; | |||
| this.F_SecondNumber.Name = "F_SecondNumber"; | |||
| this.F_SecondNumber.ReadOnly = true; | |||
| // | |||
| // F_SUnitNum | |||
| // | |||
| this.F_SUnitNum.DataPropertyName = "SUnitNum"; | |||
| dataGridViewCellStyle5.Format = "#0.######"; | |||
| this.F_SUnitNum.DefaultCellStyle = dataGridViewCellStyle5; | |||
| this.F_SUnitNum.HeaderText = "备货重量"; | |||
| this.F_SUnitNum.Name = "F_SUnitNum"; | |||
| this.F_SUnitNum.ReadOnly = true; | |||
| // | |||
| // F_SSecondNumber | |||
| // | |||
| this.F_SSecondNumber.DataPropertyName = "SSecondNumber"; | |||
| dataGridViewCellStyle6.Format = "#0.######"; | |||
| this.F_SSecondNumber.DefaultCellStyle = dataGridViewCellStyle6; | |||
| this.F_SSecondNumber.HeaderText = "备货数量"; | |||
| this.F_SSecondNumber.Name = "F_SSecondNumber"; | |||
| this.F_SSecondNumber.ReadOnly = true; | |||
| // | |||
| // label13 | |||
| // | |||
| this.label13.AutoSize = true; | |||
| this.label13.Font = new System.Drawing.Font("宋体", 10F); | |||
| this.label13.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(126)))), ((int)(((byte)(51))))); | |||
| this.label13.Location = new System.Drawing.Point(13, 10); | |||
| this.label13.Name = "label13"; | |||
| this.label13.Size = new System.Drawing.Size(77, 14); | |||
| this.label13.TabIndex = 7; | |||
| this.label13.Text = "销售订货:"; | |||
| // | |||
| // detailGridView | |||
| // | |||
| this.detailGridView.AllowUserToAddRows = false; | |||
| this.detailGridView.AllowUserToDeleteRows = false; | |||
| this.detailGridView.AllowUserToResizeColumns = false; | |||
| this.detailGridView.AllowUserToResizeRows = false; | |||
| dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(228)))), ((int)(((byte)(203))))); | |||
| this.detailGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle8; | |||
| this.detailGridView.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | |||
| | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.detailGridView.BackgroundColor = System.Drawing.Color.White; | |||
| this.detailGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; | |||
| this.detailGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; | |||
| this.detailGridView.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; | |||
| dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; | |||
| dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(148)))), ((int)(((byte)(74))))); | |||
| dataGridViewCellStyle9.Font = new System.Drawing.Font("宋体", 10F); | |||
| dataGridViewCellStyle9.ForeColor = System.Drawing.Color.White; | |||
| dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | |||
| this.detailGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle9; | |||
| this.detailGridView.ColumnHeadersHeight = 30; | |||
| this.detailGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; | |||
| this.detailGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | |||
| this.B_Customer_Name, | |||
| this.B_ShortCode, | |||
| this.B_Goods_Name, | |||
| this.B_SaleOutStoreID, | |||
| this.B_SecondNumber, | |||
| this.B_UnitNumber}); | |||
| this.detailGridView.EnableHeadersVisualStyles = false; | |||
| this.detailGridView.Location = new System.Drawing.Point(10, 31); | |||
| this.detailGridView.MultiSelect = false; | |||
| this.detailGridView.Name = "detailGridView"; | |||
| this.detailGridView.ReadOnly = true; | |||
| this.detailGridView.RowHeadersVisible = false; | |||
| dataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(247)))), ((int)(((byte)(240))))); | |||
| dataGridViewCellStyle12.Font = new System.Drawing.Font("宋体", 10F); | |||
| dataGridViewCellStyle12.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(148)))), ((int)(((byte)(74))))); | |||
| this.detailGridView.RowsDefaultCellStyle = dataGridViewCellStyle12; | |||
| this.detailGridView.RowTemplate.Height = 40; | |||
| this.detailGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; | |||
| this.detailGridView.Size = new System.Drawing.Size(580, 268); | |||
| this.detailGridView.TabIndex = 6; | |||
| // | |||
| // B_Customer_Name | |||
| // | |||
| this.B_Customer_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.B_Customer_Name.DataPropertyName = "Customer_Name"; | |||
| this.B_Customer_Name.HeaderText = "客户"; | |||
| this.B_Customer_Name.MinimumWidth = 100; | |||
| this.B_Customer_Name.Name = "B_Customer_Name"; | |||
| this.B_Customer_Name.ReadOnly = true; | |||
| // | |||
| // B_ShortCode | |||
| // | |||
| this.B_ShortCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.B_ShortCode.DataPropertyName = "ShortCode"; | |||
| this.B_ShortCode.HeaderText = "条码"; | |||
| this.B_ShortCode.MinimumWidth = 90; | |||
| this.B_ShortCode.Name = "B_ShortCode"; | |||
| this.B_ShortCode.ReadOnly = true; | |||
| // | |||
| // B_Goods_Name | |||
| // | |||
| this.B_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.B_Goods_Name.DataPropertyName = "Goods_Name"; | |||
| this.B_Goods_Name.HeaderText = "产品名称"; | |||
| this.B_Goods_Name.MinimumWidth = 100; | |||
| this.B_Goods_Name.Name = "B_Goods_Name"; | |||
| this.B_Goods_Name.ReadOnly = true; | |||
| // | |||
| // B_SaleOutStoreID | |||
| // | |||
| this.B_SaleOutStoreID.DataPropertyName = "SaleOutStoreID"; | |||
| this.B_SaleOutStoreID.HeaderText = "销售出库单"; | |||
| this.B_SaleOutStoreID.Name = "B_SaleOutStoreID"; | |||
| this.B_SaleOutStoreID.ReadOnly = true; | |||
| this.B_SaleOutStoreID.Visible = false; | |||
| // | |||
| // B_SecondNumber | |||
| // | |||
| this.B_SecondNumber.DataPropertyName = "SecondNumber"; | |||
| dataGridViewCellStyle10.Format = "#0.######"; | |||
| this.B_SecondNumber.DefaultCellStyle = dataGridViewCellStyle10; | |||
| this.B_SecondNumber.HeaderText = "数量"; | |||
| this.B_SecondNumber.Name = "B_SecondNumber"; | |||
| this.B_SecondNumber.ReadOnly = true; | |||
| this.B_SecondNumber.Width = 80; | |||
| // | |||
| // B_UnitNumber | |||
| // | |||
| this.B_UnitNumber.DataPropertyName = "UnitNumber"; | |||
| dataGridViewCellStyle11.Format = "#0.######"; | |||
| this.B_UnitNumber.DefaultCellStyle = dataGridViewCellStyle11; | |||
| this.B_UnitNumber.HeaderText = "重量"; | |||
| this.B_UnitNumber.Name = "B_UnitNumber"; | |||
| this.B_UnitNumber.ReadOnly = true; | |||
| this.B_UnitNumber.Width = 80; | |||
| // | |||
| // panel5 | |||
| // | |||
| this.panel5.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| | System.Windows.Forms.AnchorStyles.Left) | |||
| | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.panel5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247))))); | |||
| this.panel5.Controls.Add(this.mainGridView); | |||
| this.panel5.Controls.Add(this.label12); | |||
| this.panel5.Location = new System.Drawing.Point(2, 128); | |||
| this.panel5.Name = "panel5"; | |||
| this.panel5.Size = new System.Drawing.Size(567, 355); | |||
| this.panel5.TabIndex = 31; | |||
| // | |||
| // mainGridView | |||
| // | |||
| this.mainGridView.AllowUserToAddRows = false; | |||
| this.mainGridView.AllowUserToDeleteRows = false; | |||
| this.mainGridView.AllowUserToResizeColumns = false; | |||
| this.mainGridView.AllowUserToResizeRows = false; | |||
| dataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(238)))), ((int)(((byte)(255))))); | |||
| this.mainGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle13; | |||
| this.mainGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| | System.Windows.Forms.AnchorStyles.Left) | |||
| | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.mainGridView.BackgroundColor = System.Drawing.Color.White; | |||
| this.mainGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; | |||
| this.mainGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; | |||
| this.mainGridView.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; | |||
| dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; | |||
| dataGridViewCellStyle14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245))))); | |||
| dataGridViewCellStyle14.Font = new System.Drawing.Font("宋体", 10F); | |||
| dataGridViewCellStyle14.ForeColor = System.Drawing.Color.White; | |||
| dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | |||
| this.mainGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle14; | |||
| this.mainGridView.ColumnHeadersHeight = 30; | |||
| this.mainGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; | |||
| this.mainGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | |||
| this.D_Finishd, | |||
| this.D_Customer_Name, | |||
| this.D_Goods_Name, | |||
| this.D_Goods_Spec, | |||
| this.D_SecondNumber, | |||
| this.D_UnitNum, | |||
| this.D_SSecondNumber, | |||
| this.D_SUnitNum}); | |||
| this.mainGridView.EnableHeadersVisualStyles = false; | |||
| this.mainGridView.Location = new System.Drawing.Point(11, 31); | |||
| this.mainGridView.MultiSelect = false; | |||
| this.mainGridView.Name = "mainGridView"; | |||
| this.mainGridView.ReadOnly = true; | |||
| this.mainGridView.RowHeadersVisible = false; | |||
| dataGridViewCellStyle19.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(243)))), ((int)(((byte)(250))))); | |||
| dataGridViewCellStyle19.Font = new System.Drawing.Font("宋体", 9F); | |||
| dataGridViewCellStyle19.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245))))); | |||
| this.mainGridView.RowsDefaultCellStyle = dataGridViewCellStyle19; | |||
| this.mainGridView.RowTemplate.Height = 40; | |||
| this.mainGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; | |||
| this.mainGridView.Size = new System.Drawing.Size(545, 320); | |||
| this.mainGridView.TabIndex = 7; | |||
| this.mainGridView.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.mainGridView_CellClick); | |||
| this.mainGridView.RowPrePaint += new System.Windows.Forms.DataGridViewRowPrePaintEventHandler(this.mainGridView_RowPrePaint); | |||
| // | |||
| // D_Finishd | |||
| // | |||
| this.D_Finishd.DataPropertyName = "Finishd"; | |||
| this.D_Finishd.HeaderText = "Finishd"; | |||
| this.D_Finishd.Name = "D_Finishd"; | |||
| this.D_Finishd.ReadOnly = true; | |||
| this.D_Finishd.Visible = false; | |||
| // | |||
| // D_Customer_Name | |||
| // | |||
| this.D_Customer_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.D_Customer_Name.DataPropertyName = "Customer_Name"; | |||
| this.D_Customer_Name.HeaderText = "客户"; | |||
| this.D_Customer_Name.MinimumWidth = 100; | |||
| this.D_Customer_Name.Name = "D_Customer_Name"; | |||
| this.D_Customer_Name.ReadOnly = true; | |||
| // | |||
| // D_Goods_Name | |||
| // | |||
| this.D_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | |||
| this.D_Goods_Name.DataPropertyName = "Goods_Name"; | |||
| this.D_Goods_Name.HeaderText = "产品名称"; | |||
| this.D_Goods_Name.MinimumWidth = 100; | |||
| this.D_Goods_Name.Name = "D_Goods_Name"; | |||
| this.D_Goods_Name.ReadOnly = true; | |||
| // | |||
| // D_Goods_Spec | |||
| // | |||
| this.D_Goods_Spec.DataPropertyName = "Goods_Spec"; | |||
| this.D_Goods_Spec.HeaderText = "规格"; | |||
| this.D_Goods_Spec.MinimumWidth = 70; | |||
| this.D_Goods_Spec.Name = "D_Goods_Spec"; | |||
| this.D_Goods_Spec.ReadOnly = true; | |||
| this.D_Goods_Spec.Width = 70; | |||
| // | |||
| // D_SecondNumber | |||
| // | |||
| this.D_SecondNumber.DataPropertyName = "SecondNumber"; | |||
| dataGridViewCellStyle15.Format = "#0.######"; | |||
| this.D_SecondNumber.DefaultCellStyle = dataGridViewCellStyle15; | |||
| this.D_SecondNumber.HeaderText = "订货数量"; | |||
| this.D_SecondNumber.Name = "D_SecondNumber"; | |||
| this.D_SecondNumber.ReadOnly = true; | |||
| this.D_SecondNumber.Width = 90; | |||
| // | |||
| // D_UnitNum | |||
| // | |||
| this.D_UnitNum.DataPropertyName = "UnitNum"; | |||
| dataGridViewCellStyle16.Format = "#0.######"; | |||
| this.D_UnitNum.DefaultCellStyle = dataGridViewCellStyle16; | |||
| this.D_UnitNum.HeaderText = "订货重量"; | |||
| this.D_UnitNum.Name = "D_UnitNum"; | |||
| this.D_UnitNum.ReadOnly = true; | |||
| this.D_UnitNum.Width = 90; | |||
| // | |||
| // D_SSecondNumber | |||
| // | |||
| this.D_SSecondNumber.DataPropertyName = "SSecondNumber"; | |||
| dataGridViewCellStyle17.Format = "#0.######"; | |||
| this.D_SSecondNumber.DefaultCellStyle = dataGridViewCellStyle17; | |||
| this.D_SSecondNumber.HeaderText = "备货数量"; | |||
| this.D_SSecondNumber.Name = "D_SSecondNumber"; | |||
| this.D_SSecondNumber.ReadOnly = true; | |||
| this.D_SSecondNumber.Width = 90; | |||
| // | |||
| // D_SUnitNum | |||
| // | |||
| this.D_SUnitNum.DataPropertyName = "SUnitNum"; | |||
| dataGridViewCellStyle18.Format = "#0.######"; | |||
| this.D_SUnitNum.DefaultCellStyle = dataGridViewCellStyle18; | |||
| this.D_SUnitNum.HeaderText = "备货重量"; | |||
| this.D_SUnitNum.Name = "D_SUnitNum"; | |||
| this.D_SUnitNum.ReadOnly = true; | |||
| this.D_SUnitNum.Width = 90; | |||
| // | |||
| // label12 | |||
| // | |||
| this.label12.AutoSize = true; | |||
| this.label12.Font = new System.Drawing.Font("宋体", 10F); | |||
| this.label12.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(33)))), ((int)(((byte)(99)))), ((int)(((byte)(219))))); | |||
| this.label12.Location = new System.Drawing.Point(14, 10); | |||
| this.label12.Name = "label12"; | |||
| this.label12.Size = new System.Drawing.Size(77, 14); | |||
| this.label12.TabIndex = 6; | |||
| this.label12.Text = "销售订货:"; | |||
| // | |||
| // dhNumberLbl | |||
| // | |||
| this.dhNumberLbl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; | |||
| this.dhNumberLbl.Font = new System.Drawing.Font("宋体", 14F); | |||
| this.dhNumberLbl.ForeColor = System.Drawing.Color.Red; | |||
| this.dhNumberLbl.Location = new System.Drawing.Point(99, 82); | |||
| this.dhNumberLbl.Name = "dhNumberLbl"; | |||
| this.dhNumberLbl.Size = new System.Drawing.Size(120, 30); | |||
| this.dhNumberLbl.TabIndex = 30; | |||
| this.dhNumberLbl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
| // | |||
| // label4 | |||
| // | |||
| this.label4.AutoSize = true; | |||
| this.label4.Font = new System.Drawing.Font("宋体", 14F); | |||
| this.label4.Location = new System.Drawing.Point(11, 88); | |||
| this.label4.Name = "label4"; | |||
| this.label4.Size = new System.Drawing.Size(85, 19); | |||
| this.label4.TabIndex = 29; | |||
| this.label4.Text = "订货数量"; | |||
| // | |||
| // driveLineLbl | |||
| // | |||
| this.driveLineLbl.AutoSize = true; | |||
| this.driveLineLbl.Font = new System.Drawing.Font("宋体", 14F); | |||
| this.driveLineLbl.ForeColor = System.Drawing.Color.Red; | |||
| this.driveLineLbl.Location = new System.Drawing.Point(11, 51); | |||
| this.driveLineLbl.Name = "driveLineLbl"; | |||
| this.driveLineLbl.Size = new System.Drawing.Size(85, 19); | |||
| this.driveLineLbl.TabIndex = 28; | |||
| this.driveLineLbl.Text = "送货线路"; | |||
| // | |||
| // goodsLbl | |||
| // | |||
| this.goodsLbl.AutoSize = true; | |||
| this.goodsLbl.Font = new System.Drawing.Font("宋体", 14F); | |||
| this.goodsLbl.ForeColor = System.Drawing.Color.Red; | |||
| this.goodsLbl.Location = new System.Drawing.Point(231, 51); | |||
| this.goodsLbl.Name = "goodsLbl"; | |||
| this.goodsLbl.Size = new System.Drawing.Size(85, 19); | |||
| this.goodsLbl.TabIndex = 27; | |||
| this.goodsLbl.Text = "存货名称"; | |||
| // | |||
| // panel4 | |||
| // | |||
| this.panel4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | |||
| | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.panel4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(243)))), ((int)(((byte)(243))))); | |||
| this.panel4.Location = new System.Drawing.Point(2, 41); | |||
| this.panel4.Name = "panel4"; | |||
| this.panel4.Size = new System.Drawing.Size(1174, 1); | |||
| this.panel4.TabIndex = 26; | |||
| // | |||
| // uScanPanel1 | |||
| // | |||
| this.uScanPanel1.BackColor = System.Drawing.Color.Transparent; | |||
| this.uScanPanel1.Location = new System.Drawing.Point(13, 3); | |||
| this.uScanPanel1.Name = "uScanPanel1"; | |||
| this.uScanPanel1.Size = new System.Drawing.Size(303, 32); | |||
| this.uScanPanel1.TabIndex = 25; | |||
| // | |||
| // tabPage2 | |||
| // | |||
| this.tabPage2.Controls.Add(this.lineGroupSetBtn); | |||
| this.tabPage2.Controls.Add(this.flowLayoutPanel1); | |||
| this.tabPage2.Location = new System.Drawing.Point(4, 44); | |||
| this.tabPage2.Name = "tabPage2"; | |||
| this.tabPage2.Padding = new System.Windows.Forms.Padding(3); | |||
| this.tabPage2.Size = new System.Drawing.Size(1179, 482); | |||
| this.tabPage2.TabIndex = 1; | |||
| this.tabPage2.Text = "线路分组"; | |||
| this.tabPage2.UseVisualStyleBackColor = true; | |||
| // | |||
| // lineGroupSetBtn | |||
| // | |||
| this.lineGroupSetBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245))))); | |||
| this.lineGroupSetBtn.Font = new System.Drawing.Font("宋体", 12F); | |||
| this.lineGroupSetBtn.ForeColor = System.Drawing.Color.White; | |||
| this.lineGroupSetBtn.Location = new System.Drawing.Point(22, 21); | |||
| this.lineGroupSetBtn.Name = "lineGroupSetBtn"; | |||
| this.lineGroupSetBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107))))); | |||
| this.lineGroupSetBtn.Size = new System.Drawing.Size(137, 47); | |||
| this.lineGroupSetBtn.TabIndex = 1; | |||
| this.lineGroupSetBtn.Text = "选择线路分组"; | |||
| this.lineGroupSetBtn.UseVisualStyleBackColor = false; | |||
| this.lineGroupSetBtn.Click += new System.EventHandler(this.lineGroupSetBtn_Click); | |||
| // | |||
| // flowLayoutPanel1 | |||
| // | |||
| this.flowLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| | System.Windows.Forms.AnchorStyles.Left) | |||
| | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.flowLayoutPanel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; | |||
| this.flowLayoutPanel1.Location = new System.Drawing.Point(22, 78); | |||
| this.flowLayoutPanel1.Name = "flowLayoutPanel1"; | |||
| this.flowLayoutPanel1.Size = new System.Drawing.Size(1133, 385); | |||
| this.flowLayoutPanel1.TabIndex = 0; | |||
| // | |||
| // SegmentStockUpForm | |||
| // | |||
| this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); | |||
| this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |||
| this.ClientSize = new System.Drawing.Size(1212, 620); | |||
| this.ImeMode = System.Windows.Forms.ImeMode.Disable; | |||
| this.KeyPreview = true; | |||
| this.Name = "SegmentStockUpForm"; | |||
| this.Text = "销售备货"; | |||
| this.roundPanel1.ResumeLayout(false); | |||
| this.tabControl1.ResumeLayout(false); | |||
| this.tabPage1.ResumeLayout(false); | |||
| this.tabPage1.PerformLayout(); | |||
| this.panel7.ResumeLayout(false); | |||
| this.panel7.PerformLayout(); | |||
| this.panel6.ResumeLayout(false); | |||
| this.panel6.PerformLayout(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.finishGrid)).EndInit(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.detailGridView)).EndInit(); | |||
| this.panel5.ResumeLayout(false); | |||
| this.panel5.PerformLayout(); | |||
| ((System.ComponentModel.ISupportInitialize)(this.mainGridView)).EndInit(); | |||
| this.tabPage2.ResumeLayout(false); | |||
| this.ResumeLayout(false); | |||
| this.PerformLayout(); | |||
| } | |||
| #endregion | |||
| private System.Windows.Forms.TabControl tabControl1; | |||
| private System.Windows.Forms.TabPage tabPage1; | |||
| private System.Windows.Forms.Label downWeightBox; | |||
| private System.Windows.Forms.Label label5; | |||
| private System.Windows.Forms.Label label2; | |||
| private System.Windows.Forms.Label label1; | |||
| private System.Windows.Forms.Panel panel7; | |||
| private Controls.ColorButton colorButton1; | |||
| private System.Windows.Forms.CheckBox printCk; | |||
| private Controls.ColorButton refresh; | |||
| private System.Windows.Forms.Label bhUnitNumLbl; | |||
| private System.Windows.Forms.Label label9; | |||
| private System.Windows.Forms.Label bhNumberLbl; | |||
| private System.Windows.Forms.Label label11; | |||
| private System.Windows.Forms.Label dhUnitNumLbl; | |||
| private System.Windows.Forms.Label label7; | |||
| private System.Windows.Forms.Panel panel6; | |||
| private WinFormControl.UDataGridView finishGrid; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn F_RowIndex; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn F_Name; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn F_UnitNum; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn F_SecondNumber; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn F_SUnitNum; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn F_SSecondNumber; | |||
| private System.Windows.Forms.Label label13; | |||
| private WinFormControl.UDataGridView detailGridView; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn B_Customer_Name; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn B_ShortCode; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn B_Goods_Name; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn B_SaleOutStoreID; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn B_SecondNumber; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn B_UnitNumber; | |||
| private System.Windows.Forms.Panel panel5; | |||
| private WinFormControl.UDataGridView mainGridView; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn D_Finishd; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn D_Customer_Name; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn D_Goods_Name; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn D_Goods_Spec; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn D_SecondNumber; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn D_UnitNum; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn D_SSecondNumber; | |||
| private System.Windows.Forms.DataGridViewTextBoxColumn D_SUnitNum; | |||
| private System.Windows.Forms.Label label12; | |||
| private System.Windows.Forms.Label dhNumberLbl; | |||
| private System.Windows.Forms.Label label4; | |||
| private System.Windows.Forms.Label driveLineLbl; | |||
| private System.Windows.Forms.Label goodsLbl; | |||
| private System.Windows.Forms.Panel panel4; | |||
| private WinFormControl.UScanPanel uScanPanel1; | |||
| private System.Windows.Forms.TabPage tabPage2; | |||
| private Controls.ColorButton lineGroupSetBtn; | |||
| private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; | |||
| } | |||
| } | |||
| @ -1,538 +0,0 @@ | |||
| using ButcherFactory.BO; | |||
| using ButcherFactory.BO.LocalBL; | |||
| using ButcherFactory.BO.Utils; | |||
| using ButcherFactory.Controls; | |||
| using ButcherFactory.Dialogs; | |||
| using System; | |||
| using System.Collections.Generic; | |||
| using System.ComponentModel; | |||
| using System.Data; | |||
| using System.Drawing; | |||
| using System.Linq; | |||
| using System.Text; | |||
| using System.Threading; | |||
| using System.Threading.Tasks; | |||
| using System.Windows.Forms; | |||
| using WinFormControl; | |||
| namespace ButcherFactory.SegmentStockUp_ | |||
| { | |||
| public partial class SegmentStockUpForm : FormTemplate, IWithRoleForm | |||
| { | |||
| #region IWithRoleForm | |||
| public List<short> RoleName | |||
| { | |||
| get { return new List<short> { (short)设备类别.销售备货 }; } | |||
| } | |||
| public Form Generate() | |||
| { | |||
| return this; | |||
| } | |||
| #endregion | |||
| Tuple<string, long> selectedCustomer; | |||
| DateTime sendTime = DateTime.Today; | |||
| SegmentStockUpConfig config; | |||
| BindingList<SaleOutStoreInfo> mainList; | |||
| BindingList<SegmentStockUp> detailList; | |||
| BindingList<DeliverGoodsLineTemp> finishList; | |||
| List<SaleOutStoreInfo> allMain; | |||
| List<SegmentStockUp> allDetail; | |||
| List<AlreadyStockUp> alreadyList; | |||
| Thread syncStockdNumber; | |||
| Thread refreshFromServer; | |||
| Thread loadBindTask;//onetime | |||
| List<long> mLineGroupIds = new List<long>(); | |||
| public SegmentStockUpForm() | |||
| { | |||
| config = XmlUtil.DeserializeFromFile<SegmentStockUpConfig>(); | |||
| InitializeComponent(); | |||
| finishList = new BindingList<DeliverGoodsLineTemp>(); | |||
| allMain = new List<SaleOutStoreInfo>(); | |||
| allDetail = new List<SegmentStockUp>(); | |||
| alreadyList = new List<AlreadyStockUp>(); | |||
| // dataPicker.Text = sendTime.ToString("yyyy-MM-dd"); | |||
| uScanPanel1.AfterScan += uScanPanel1_AfterScan; | |||
| this.FormClosing += delegate | |||
| { | |||
| AbortTask(); | |||
| }; | |||
| } | |||
| void AbortTask() | |||
| { | |||
| if (loadBindTask != null && loadBindTask.IsAlive) | |||
| loadBindTask.Abort(); | |||
| if (syncStockdNumber != null && syncStockdNumber.IsAlive) | |||
| syncStockdNumber.Abort(); | |||
| if (refreshFromServer != null && refreshFromServer.IsAlive) | |||
| refreshFromServer.Abort(); | |||
| } | |||
| protected override void OnLoad(EventArgs e) | |||
| { | |||
| BindDeliverLineGroup(false); | |||
| downWeightBox.Text = string.Format("{0:#0.######}", config.AllowDownWeight); | |||
| StartTask(); | |||
| base.OnLoad(e); | |||
| } | |||
| void StartTask() | |||
| { | |||
| allDetail = SegmentStockUpBL.GetLocalList(sendTime); | |||
| loadBindTask = new Thread(LoadBind); | |||
| loadBindTask.Start(); | |||
| syncStockdNumber = new Thread(SyncStockdNumber); | |||
| syncStockdNumber.Start(); | |||
| refreshFromServer = new Thread(RefreshFromServer); | |||
| refreshFromServer.Start(); | |||
| } | |||
| private void LoadBind() | |||
| { | |||
| var mainList = SegmentStockUpBL.GetSaleOutStoreList(sendTime); | |||
| var appendAlready = SegmentStockUpBL.SyncAlreadyNumber(mainList.Select(x => x.DetailID), null); | |||
| ReBind(mainList, appendAlready); | |||
| } | |||
| object _lock = new object(); | |||
| //loadBind,Refresh, taskMain,taskAlready,Scan | |||
| void ReBind(List<SaleOutStoreInfo> mainList, List<AlreadyStockUp> appendAlready) | |||
| { | |||
| lock (_lock) | |||
| { | |||
| AppendData(mainList, appendAlready); | |||
| var needRefresh = PrepareFinishList(); | |||
| if (needRefresh) | |||
| BindFinishGrid(); | |||
| } | |||
| } | |||
| void AppendData(List<SaleOutStoreInfo> mainList, List<AlreadyStockUp> appendAlready) | |||
| { | |||
| if (mainList.Any()) | |||
| allMain = mainList; | |||
| foreach (var item in appendAlready) | |||
| { | |||
| var first = alreadyList.FirstOrDefault(x => x.DetailID == item.DetailID); | |||
| if (first == null) | |||
| { | |||
| first = item; | |||
| alreadyList.Add(item); | |||
| } | |||
| else if (first.MaxID < item.MaxID) | |||
| { | |||
| first.MaxID = item.MaxID; | |||
| first.UnitNum = (first.UnitNum ?? 0) + (item.UnitNum ?? 0); | |||
| first.SecondNumber = (first.SecondNumber ?? 0) + (item.SecondNumber ?? 0); | |||
| } | |||
| else | |||
| continue; | |||
| //局部更新 | |||
| if (!mainList.Any()) | |||
| UpdateMainInfo(first); | |||
| } | |||
| //全量更新 | |||
| if (mainList.Any()) | |||
| { | |||
| foreach (var item in alreadyList) | |||
| UpdateMainInfo(item); | |||
| } | |||
| } | |||
| void UpdateMainInfo(AlreadyStockUp item) | |||
| { | |||
| var mainFirst = allMain.FirstOrDefault(x => x.DetailID == item.DetailID); | |||
| if (mainFirst != null) | |||
| { | |||
| mainFirst.StandardPic = false;// item.StandardPic; | |||
| mainFirst.SUnitNum = item.UnitNum; | |||
| mainFirst.SSecondNumber = item.SecondNumber; | |||
| mainFirst.DownFloat = config.AllowDownWeight; | |||
| } | |||
| } | |||
| //返回是否需要更新Grid; | |||
| bool PrepareFinishList() | |||
| { | |||
| var old = finishList.ToList(); | |||
| var append = new List<DeliverGoodsLineTemp>(); | |||
| finishList = new BindingList<DeliverGoodsLineTemp>(); | |||
| var idx = 0; | |||
| foreach (var item in allMain.GroupBy(x => x.Customer_Name).Where(x => x.All(y => y.Finishd))) | |||
| { | |||
| var detail = new DeliverGoodsLineTemp(); | |||
| detail.RowIndex = ++idx; | |||
| detail.Name = item.Key; | |||
| detail.UnitNum = item.Sum(x => x.UnitNum ?? 0); | |||
| detail.SecondNumber = item.Sum(x => x.SecondNumber ?? 0); | |||
| detail.SUnitNum = item.Sum(x => x.SUnitNum ?? 0); | |||
| detail.SSecondNumber = item.Sum(x => x.SSecondNumber ?? 0); | |||
| if (!old.Any(x => x.Name == item.Key)) | |||
| { | |||
| idx--; | |||
| append.Add(detail); | |||
| } | |||
| else | |||
| finishList.Insert(0, detail); | |||
| } | |||
| foreach (var item in append) | |||
| { | |||
| item.RowIndex = ++idx; | |||
| finishList.Insert(0, item); | |||
| } | |||
| if (old.Count != finishList.Count) | |||
| return true; | |||
| return old.Except(finishList).Count() != 0; | |||
| } | |||
| void BindFinishGrid() | |||
| { | |||
| this.Invoke(new Action(() => | |||
| { | |||
| finishGrid.DataSource = finishList; | |||
| if (finishList.Any()) | |||
| finishGrid.Rows[0].Selected = true; | |||
| finishGrid.Refresh(); | |||
| })); | |||
| } | |||
| private void SyncStockdNumber() | |||
| { | |||
| while (true) | |||
| { | |||
| Thread.Sleep(2000); | |||
| IEnumerable<long> tags = new List<long>(); | |||
| long? maxID = null; | |||
| if (alreadyList.Any()) | |||
| maxID = alreadyList.Max(x => x.MaxID); | |||
| else | |||
| tags = allMain.Select(x => x.DetailID); | |||
| if (maxID.HasValue || tags.Any()) | |||
| { | |||
| var temp = SegmentStockUpBL.SyncAlreadyNumber(tags, maxID); | |||
| if (temp.Any()) | |||
| { | |||
| ReBind(new List<SaleOutStoreInfo>(), temp); | |||
| } | |||
| } | |||
| } | |||
| } | |||
| private void RefreshFromServer() | |||
| { | |||
| while (true) | |||
| { | |||
| Thread.Sleep(2 * 60 * 1000); | |||
| var temp = SegmentStockUpBL.GetSaleOutStoreList(sendTime); | |||
| if (temp.Any()) | |||
| { | |||
| ReBind(temp, new List<AlreadyStockUp>()); | |||
| } | |||
| } | |||
| } | |||
| void uScanPanel1_AfterScan() | |||
| { | |||
| var code = uScanPanel1.TextBox.Text; | |||
| if (string.IsNullOrEmpty(code)) | |||
| return; | |||
| if (allDetail.Any(x => x.BarCode == code)) | |||
| { | |||
| InfoBox.Show("错误", "条码已使用过", Color.Green, 1, this); | |||
| return; | |||
| } | |||
| var info = SegmentStockUpBL.StockUpScan(code); | |||
| if (info == null) | |||
| { | |||
| InfoBox.Show("错误", "条码未入库", Color.Blue, 1, this); | |||
| return; | |||
| } | |||
| InsertDetail(info); | |||
| } | |||
| void InsertDetail(Tuple<string, decimal?, bool> scan) | |||
| { | |||
| SaleOutStoreInfo saleOutStore; | |||
| if (selectedCustomer != null) | |||
| saleOutStore = allMain.FirstOrDefault(x => x.Customer_Name == selectedCustomer.Item1 && !x.Finishd && x.Goods_Code == scan.Item1); | |||
| else | |||
| saleOutStore = allMain.FirstOrDefault(x => mLineGroupIds.Contains(x.DeliverLineGroup_ID ?? 0) && !x.Finishd && x.Goods_Code == scan.Item1); | |||
| if (saleOutStore == null) | |||
| { | |||
| InfoBox.Show("提示", "没有订单", Color.Red, 1, this); | |||
| return; | |||
| } | |||
| var detail = new SegmentStockUp(); | |||
| detail.BarCode = uScanPanel1.TextBox.Text; | |||
| detail.Date = sendTime; | |||
| detail.DetailID = saleOutStore.DetailID; | |||
| detail.DeliverGoodsLine_Name = saleOutStore.DeliverGoodsLine_Name; | |||
| detail.Goods_Name = saleOutStore.Goods_Name; | |||
| //detail.BillID = saleOutStore.BillID; | |||
| detail.Customer_Name = saleOutStore.Customer_Name; | |||
| detail.UnitNumber = scan.Item2; | |||
| detail.StandardPic = scan.Item3; | |||
| //if (detail.UnitNumber.HasValue && saleOutStore.Rate.HasValue) | |||
| // detail.SecondNumber = detail.UnitNumber * saleOutStore.Rate; | |||
| //else | |||
| detail.SecondNumber = 1; | |||
| var number = 0m; | |||
| if (saleOutStore.StockUpBySecondNum) | |||
| number = saleOutStore.SecondNumber ?? 0; | |||
| else | |||
| number = (saleOutStore.UnitNum ?? 0) - (config.AllowDownWeight ?? 0); | |||
| //if (!detail.StandardPic) | |||
| // number = saleOutStore.SecondNumber; | |||
| var already = alreadyList.FirstOrDefault(x => x.DetailID == detail.DetailID); | |||
| if (already == null) | |||
| already = new AlreadyStockUp() { DetailID = detail.DetailID };//StandardPic = detail.StandardPic | |||
| var back = SegmentStockUpBL.Insert(detail, already, number, saleOutStore.StockUpBySecondNum); | |||
| if (back == null) | |||
| { | |||
| InfoBox.Show("提示", "网络错误!", Color.Red, 1, this); | |||
| return; | |||
| } | |||
| if (back.State == -1) | |||
| { | |||
| InfoBox.Show("提示", "条码已使用过", Color.Green, 1, this); | |||
| return; | |||
| } | |||
| //back.StandardPic = detail.StandardPic; | |||
| back.DetailID = detail.DetailID; | |||
| if (back.State == 0) | |||
| { | |||
| ReBind(new List<SaleOutStoreInfo>(), new List<AlreadyStockUp> { back }); | |||
| InsertDetail(scan); | |||
| return; | |||
| } | |||
| if (back.State != 1) | |||
| { | |||
| InfoBox.Show("提示", "未知状态" + back.State, Color.Green, 1, this); | |||
| return; | |||
| } | |||
| ReBind(new List<SaleOutStoreInfo>(), new List<AlreadyStockUp> { back }); | |||
| allDetail.Add(detail); | |||
| if (printCk.Checked) | |||
| { | |||
| var last = 0m; | |||
| // allMain.Where(x => x.Goods_Name == saleOutStore.Goods_Name && x.DeliverGoodsLine_Name == saleOutStore.DeliverGoodsLine_Name) | |||
| // .Sum(x => ((x.UnitNum ?? 0) - (x.SUnitNum ?? 0)) < 0 ? 0 : ((x.UnitNum ?? 0) - (x.SUnitNum ?? 0))); | |||
| //if (last < 0) | |||
| // last = 0; | |||
| SegmentStockUpPrint.Print(detail, last, saleOutStore); | |||
| } | |||
| var hasUnFinish = allMain.Where(x => x.Customer_Name == saleOutStore.Customer_Name).Any(x => !x.Finishd); | |||
| if (!hasUnFinish) | |||
| InfoBox.Show("提示", string.Format("{0} 备货完成", saleOutStore.Customer_Name), Color.Green, 1, this); | |||
| BindMainGrid(saleOutStore); | |||
| } | |||
| void BindMainGrid(SaleOutStoreInfo saleOutStore) | |||
| { | |||
| var main = new List<SaleOutStoreInfo>(); | |||
| foreach (var g in allMain.Where(x => x.Goods_Name == saleOutStore.Goods_Name).GroupBy(x => x.Customer_Name)) | |||
| { | |||
| var item = new SaleOutStoreInfo(); | |||
| var f = g.First(); | |||
| main.Add(item); | |||
| item.Customer_Name = g.Key; | |||
| item.Goods_Name = f.Goods_Name; | |||
| item.Goods_Spec = f.Goods_Spec; | |||
| item.SecondNumber = g.Sum(x => x.SecondNumber ?? 0); | |||
| item.UnitNum = g.Sum(x => x.UnitNum ?? 0); | |||
| item.SSecondNumber = g.Sum(x => x.SSecondNumber ?? 0); | |||
| item.SUnitNum = g.Sum(x => x.SUnitNum ?? 0); | |||
| item.DownFloat = config.AllowDownWeight; | |||
| item.StockUpBySecondNum = f.StockUpBySecondNum; | |||
| item.FinishAssign = f.FinishAssign; | |||
| } | |||
| mainList = new BindingList<SaleOutStoreInfo>(main.OrderBy(x => x.Finishd).ToList()); | |||
| mainGridView.DataSource = mainList; | |||
| mainGridView.Refresh(); | |||
| BindDetail(main.Where(x => x.Customer_Name == saleOutStore.Customer_Name).First()); | |||
| } | |||
| void BindDetail(SaleOutStoreInfo first) | |||
| { | |||
| //if (first != null) | |||
| //{ | |||
| driveLineLbl.Text = first.DeliverGoodsLine_Name; | |||
| goodsLbl.Text = first.Goods_Name; | |||
| dhNumberLbl.Text = string.Format("{0:#0.##}", first.SecondNumber); | |||
| dhUnitNumLbl.Text = string.Format("{0:#0.##}", first.UnitNum); | |||
| bhNumberLbl.Text = string.Format("{0:#0.##}", first.SSecondNumber); | |||
| bhUnitNumLbl.Text = string.Format("{0:#0.##}", first.SUnitNum); | |||
| var detail = allDetail.Where(x => x.Customer_Name == first.Customer_Name && x.Goods_Name == first.Goods_Name).OrderByDescending(x => x.ID); | |||
| detailList = new BindingList<SegmentStockUp>(detail.ToList()); | |||
| //} | |||
| //else | |||
| //{ | |||
| // driveLineLbl.Text = string.Empty; | |||
| // goodsLbl.Text = string.Empty; | |||
| // dhNumberLbl.Text = string.Empty; | |||
| // dhUnitNumLbl.Text = string.Empty; | |||
| // bhNumberLbl.Text = string.Empty; | |||
| // bhUnitNumLbl.Text = string.Empty; | |||
| // detailList = new BindingList<SegmentStockUp>(); | |||
| //} | |||
| detailGridView.DataSource = detailList; | |||
| detailGridView.Refresh(); | |||
| } | |||
| private void refresh_Click(object sender, EventArgs e) | |||
| { | |||
| AbortTask(); | |||
| StartTask(); | |||
| } | |||
| private void mainGridView_CellClick(object sender, DataGridViewCellEventArgs e) | |||
| { | |||
| if (e.RowIndex < 0) | |||
| return; | |||
| var item = mainGridView.CurrentRow.DataBoundItem as SaleOutStoreInfo; | |||
| BindDetail(item); | |||
| } | |||
| private void mainGridView_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e) | |||
| { | |||
| DataGridViewRow dgrSingle = mainGridView.Rows[e.RowIndex]; | |||
| var v = (bool)dgrSingle.Cells["D_Finishd"].Value; | |||
| if (v) | |||
| { | |||
| dgrSingle.DefaultCellStyle.BackColor = Color.YellowGreen; | |||
| } | |||
| } | |||
| private void colorButton1_Click(object sender, EventArgs e) | |||
| { | |||
| var detail = new SegmentStockUp() { DeliverGoodsLine_Name = "青岛龙钰聚祥万福批发部", Date = DateTime.Today, BarCode = "260912011201905120100005" }; | |||
| var last = 5.234m; | |||
| var saleOutStore = new SaleOutStoreInfo() { Customer_Name = "青岛市大客户", SendQueue = 51 }; | |||
| SegmentStockUpPrint.Print(detail, last, saleOutStore); | |||
| } | |||
| private void label2_Click(object sender, EventArgs e) | |||
| { | |||
| var dialog = new SelectCustomerDialog(); | |||
| if (dialog.ShowDialog() == DialogResult.OK) | |||
| { | |||
| selectedCustomer = dialog.Result; | |||
| if (selectedCustomer == null) | |||
| label2.Text = "请选择"; | |||
| else | |||
| label2.Text = selectedCustomer.Item1; | |||
| } | |||
| } | |||
| private void downWeightBox_Click(object sender, EventArgs e) | |||
| { | |||
| var pad = new NumberPad(); | |||
| if (pad.ShowDialog() == true) | |||
| { | |||
| decimal? weight = null; | |||
| if (!string.IsNullOrEmpty(pad.Result)) | |||
| { | |||
| decimal v; | |||
| if (decimal.TryParse(pad.Result, out v)) | |||
| weight = v; | |||
| else | |||
| throw new Exception("输入错误"); | |||
| } | |||
| downWeightBox.Text = string.Format("{0:#0.######}", weight); | |||
| config.AllowDownWeight = weight; | |||
| XmlUtil.SerializerObjToFile(config); | |||
| } | |||
| } | |||
| private void lineGroupSetBtn_Click(object sender, EventArgs e) | |||
| { | |||
| new DeliverLineGroupSelectDialog().ShowDialog(); | |||
| BindDeliverLineGroup(true); | |||
| } | |||
| Color color = Color.FromArgb(105, 105, 105); | |||
| Color selectColor = Color.FromArgb(250, 120, 24); | |||
| void BindDeliverLineGroup(bool loadNew) | |||
| { | |||
| flowLayoutPanel1.Controls.Clear(); | |||
| mLineGroupIds.Clear(); | |||
| if (loadNew) | |||
| config = XmlUtil.DeserializeFromFile<SegmentStockUpConfig>(); | |||
| foreach (var item in config.LineGroup) | |||
| { | |||
| var btn = new ColorButton() { Width = 150, Height = 60, Text = item.Name, Tag = item, Font = new Font("宋体", 14), Margin = new Padding(30) }; | |||
| btn.BackColor = color; | |||
| btn.Click += DeliverLineBtn_Click; | |||
| flowLayoutPanel1.Controls.Add(btn); | |||
| } | |||
| } | |||
| private void DeliverLineBtn_Click(object sender, EventArgs e) | |||
| { | |||
| var btn = sender as ColorButton; | |||
| var item = (DeliverLineGroup)btn.Tag; | |||
| var first = mLineGroupIds.FirstOrDefault(x => x == item.ID); | |||
| if (first == 0) | |||
| { | |||
| mLineGroupIds.Add(item.ID); | |||
| btn.BackColor = selectColor; | |||
| } | |||
| else | |||
| { | |||
| mLineGroupIds.Remove(item.ID); | |||
| btn.BackColor = color; | |||
| } | |||
| } | |||
| } | |||
| class DeliverGoodsLineTemp | |||
| { | |||
| public string Name { get; set; } | |||
| public int RowIndex { get; set; } | |||
| public decimal? SecondNumber { get; set; } | |||
| public decimal? UnitNum { get; set; } | |||
| public decimal? SSecondNumber { get; set; } | |||
| public decimal? SUnitNum { get; set; } | |||
| public override bool Equals(object obj) | |||
| { | |||
| var tag = obj as DeliverGoodsLineTemp; | |||
| return tag.Name == this.Name | |||
| && tag.UnitNum == this.UnitNum | |||
| && tag.SecondNumber == this.SecondNumber | |||
| && tag.SUnitNum == this.SUnitNum | |||
| && tag.SSecondNumber == this.SSecondNumber; | |||
| } | |||
| public override int GetHashCode() | |||
| { | |||
| var hc1 = Name.GetHashCode(); | |||
| var hc2 = UnitNum.GetHashCode(); | |||
| var hc3 = SecondNumber.GetHashCode(); | |||
| var hc4 = SUnitNum.GetHashCode(); | |||
| var hc5 = SSecondNumber.GetHashCode(); | |||
| return hc1 ^ hc2 ^ hc3 ^ hc4 ^ hc5; | |||
| } | |||
| } | |||
| } | |||
| @ -1,180 +0,0 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | |||
| <root> | |||
| <!-- | |||
| Microsoft ResX Schema | |||
| Version 2.0 | |||
| The primary goals of this format is to allow a simple XML format | |||
| that is mostly human readable. The generation and parsing of the | |||
| various data types are done through the TypeConverter classes | |||
| associated with the data types. | |||
| Example: | |||
| ... ado.net/XML headers & schema ... | |||
| <resheader name="resmimetype">text/microsoft-resx</resheader> | |||
| <resheader name="version">2.0</resheader> | |||
| <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||
| <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||
| <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||
| <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||
| <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||
| <value>[base64 mime encoded serialized .NET Framework object]</value> | |||
| </data> | |||
| <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||
| <comment>This is a comment</comment> | |||
| </data> | |||
| There are any number of "resheader" rows that contain simple | |||
| name/value pairs. | |||
| Each data row contains a name, and value. The row also contains a | |||
| type or mimetype. Type corresponds to a .NET class that support | |||
| text/value conversion through the TypeConverter architecture. | |||
| Classes that don't support this are serialized and stored with the | |||
| mimetype set. | |||
| The mimetype is used for serialized objects, and tells the | |||
| ResXResourceReader how to depersist the object. This is currently not | |||
| extensible. For a given mimetype the value must be set accordingly: | |||
| Note - application/x-microsoft.net.object.binary.base64 is the format | |||
| that the ResXResourceWriter will generate, however the reader can | |||
| read any of the formats listed below. | |||
| mimetype: application/x-microsoft.net.object.binary.base64 | |||
| value : The object must be serialized with | |||
| : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |||
| : and then encoded with base64 encoding. | |||
| mimetype: application/x-microsoft.net.object.soap.base64 | |||
| value : The object must be serialized with | |||
| : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||
| : and then encoded with base64 encoding. | |||
| mimetype: application/x-microsoft.net.object.bytearray.base64 | |||
| value : The object must be serialized into a byte array | |||
| : using a System.ComponentModel.TypeConverter | |||
| : and then encoded with base64 encoding. | |||
| --> | |||
| <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||
| <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |||
| <xsd:element name="root" msdata:IsDataSet="true"> | |||
| <xsd:complexType> | |||
| <xsd:choice maxOccurs="unbounded"> | |||
| <xsd:element name="metadata"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" use="required" type="xsd:string" /> | |||
| <xsd:attribute name="type" type="xsd:string" /> | |||
| <xsd:attribute name="mimetype" type="xsd:string" /> | |||
| <xsd:attribute ref="xml:space" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="assembly"> | |||
| <xsd:complexType> | |||
| <xsd:attribute name="alias" type="xsd:string" /> | |||
| <xsd:attribute name="name" type="xsd:string" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="data"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
| <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |||
| <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||
| <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||
| <xsd:attribute ref="xml:space" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="resheader"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" type="xsd:string" use="required" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| </xsd:choice> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| </xsd:schema> | |||
| <resheader name="resmimetype"> | |||
| <value>text/microsoft-resx</value> | |||
| </resheader> | |||
| <resheader name="version"> | |||
| <value>2.0</value> | |||
| </resheader> | |||
| <resheader name="reader"> | |||
| <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
| </resheader> | |||
| <resheader name="writer"> | |||
| <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
| </resheader> | |||
| <metadata name="F_RowIndex.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_UnitNum.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_SecondNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_SUnitNum.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="F_SSecondNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="B_Customer_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="B_ShortCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="B_Goods_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="B_SaleOutStoreID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="B_SecondNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="B_UnitNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_Finishd.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_Customer_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_Goods_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_Goods_Spec.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_SecondNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_UnitNum.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_SSecondNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| <metadata name="D_SUnitNum.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
| <value>True</value> | |||
| </metadata> | |||
| </root> | |||
| @ -1,153 +0,0 @@ | |||
| using ButcherFactory.BO; | |||
| using System; | |||
| using System.Collections.Generic; | |||
| using System.Drawing.Printing; | |||
| using System.IO; | |||
| using System.Linq; | |||
| using System.Runtime.InteropServices; | |||
| using System.Text; | |||
| using System.Threading.Tasks; | |||
| namespace ButcherFactory.SegmentStockUp_ | |||
| { | |||
| internal static class SegmentStockUpPrint | |||
| { | |||
| const string PRINTFILE = @"PrintTemplate\SegmentStockUpPrint.html"; | |||
| //public static void Print(StockUpDetail entity, string customer) | |||
| //{ | |||
| // var dic = new Dictionary<string, string>(); | |||
| // dic.Add("$Customer_Name", customer); | |||
| // dic.Add("$DriverLine_Name", entity.DeliverGoodsLine_Name); | |||
| // dic.Add("$Date", entity.Date.ToString("yyyy/MM/dd")); | |||
| // BwpClientPrint.BwpClientWebPrint.Print(PRINTFILE, dic); | |||
| //} | |||
| //public static void Print2(StockUpDetail entity, string customer) | |||
| //{ | |||
| // PrintAPI.B_GetUSBBufferLen(); | |||
| // PrintAPI.B_EnumUSB(new byte[128]); | |||
| // PrintAPI.B_CreateUSBPort(1); | |||
| // PrintAPI.B_Prn_Text_TrueType(42, 40, 36, "宋体", 1, 900, 0, 0, 0, "C1", "客户:张三"); | |||
| // PrintAPI.B_Prn_Text_TrueType(42, 100, 36, "宋体", 1, 900, 0, 0, 0, "C2", "线路:青岛一线"); | |||
| // PrintAPI.B_Prn_Text_TrueType(42, 160, 36, "宋体", 1, 900, 0, 0, 0, "C4", string.Format("日期:{0}", entity.Date.ToString("yyyy/MM/dd"))); | |||
| // PrintAPI.B_Prn_Barcode(42, 220, 0, "1", 3, 22, 40, 'B', entity.BarCode); | |||
| // //PrintAPI.B_Prn_Text_TrueType(173, 360, 25, "宋体", 1, 500, 0, 0, 0, "C9", entity.BarCode); | |||
| // PrintAPI.B_Set_Direction('B'); | |||
| // PrintAPI.B_Print_Out(1); | |||
| // PrintAPI.B_ClosePrn(); | |||
| //} | |||
| public static void Print(SegmentStockUp entity, decimal last, SaleOutStoreInfo bill) | |||
| { | |||
| var templateString = File.ReadAllText("PrintTemplate\\SegmentStockUpPrint.txt", Encoding.UTF8); | |||
| var str = string.Format(templateString, bill.Customer_Name, entity.DeliverGoodsLine_Name, entity.Date, entity.BarCode, last, bill.SendQueue); | |||
| var printName = GetZebraPrintName(); | |||
| SendBytesToPrinter(printName, System.Text.Encoding.Default.GetBytes(str)); | |||
| } | |||
| private static string GetZebraPrintName() | |||
| { | |||
| foreach (string item in PrinterSettings.InstalledPrinters) | |||
| { | |||
| PrinterSettings setting = new PrinterSettings() { PrinterName = item }; | |||
| if (setting.IsDefaultPrinter) | |||
| { | |||
| return setting.PrinterName; | |||
| } | |||
| } | |||
| throw new Exception("没有找到对应的打印机"); | |||
| } | |||
| [DllImport("winspool.Drv", EntryPoint = "OpenPrinterA", SetLastError = true, CharSet = CharSet.Auto, ExactSpelling = true, CallingConvention = CallingConvention.StdCall)] | |||
| public static extern bool OpenPrinter([MarshalAs(UnmanagedType.LPStr)] string printerName, out IntPtr intptrPrinter, IntPtr intptrPrintDocument); | |||
| [DllImport("winspool.Drv", EntryPoint = "StartDocPrinterA", SetLastError = true, CharSet = CharSet.Auto, ExactSpelling = true, CallingConvention = CallingConvention.StdCall)] | |||
| public static extern bool StartDocPrinter(IntPtr intptrPrinter, Int32 level, [In, MarshalAs(UnmanagedType.LPStruct)] DocInfo docInfo); | |||
| [DllImport("winspool.Drv", EntryPoint = "StartPagePrinter", SetLastError = true, ExactSpelling = true, CallingConvention = CallingConvention.StdCall)] | |||
| public static extern bool StartPagePrinter(IntPtr intptrPrinter); | |||
| [DllImport("winspool.Drv", EntryPoint = "EndDocPrinter", SetLastError = true, ExactSpelling = true, CallingConvention = CallingConvention.StdCall)] | |||
| public static extern bool EndDocPrinter(IntPtr intptrPrinter); | |||
| [DllImport("winspool.Drv", EntryPoint = "WritePrinter", SetLastError = true, ExactSpelling = true, CallingConvention = CallingConvention.StdCall)] | |||
| public static extern bool WritePrinter(IntPtr intptrPrinter, IntPtr intptrBytes, Int32 count, out Int32 written); | |||
| [DllImport("winspool.Drv", EntryPoint = "EndPagePrinter", SetLastError = true, ExactSpelling = true, CallingConvention = CallingConvention.StdCall)] | |||
| public static extern bool EndPagePrinter(IntPtr intptrPrinter); | |||
| [DllImport("winspool.Drv", EntryPoint = "ClosePrinter", SetLastError = true, ExactSpelling = true, CallingConvention = CallingConvention.StdCall)] | |||
| public static extern bool ClosePrinter(IntPtr intptrPrinter); | |||
| #region 定义打印文档信息类 | |||
| [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] | |||
| public class DocInfo | |||
| { | |||
| [MarshalAs(UnmanagedType.LPStr)] | |||
| public string DocName; | |||
| [MarshalAs(UnmanagedType.LPStr)] | |||
| public string OutputFile; | |||
| [MarshalAs(UnmanagedType.LPStr)] | |||
| public string DataType; | |||
| } | |||
| #endregion | |||
| public static bool SendBytesToPrinter(string printerName, byte[] bytes) | |||
| { | |||
| bool bSuccess = false; | |||
| IntPtr pUnmanagedBytes = new IntPtr(0); | |||
| int nLength = bytes.Length; | |||
| // Allocate some unmanaged memory for those bytes. | |||
| pUnmanagedBytes = Marshal.AllocCoTaskMem(nLength); | |||
| // Copy the managed byte array into the unmanaged array. | |||
| Marshal.Copy(bytes, 0, pUnmanagedBytes, nLength); | |||
| // Send the unmanaged bytes to the printer. | |||
| bSuccess = SendBytesToPrinter(printerName, pUnmanagedBytes, nLength); | |||
| // Free the unmanaged memory that you allocated earlier. | |||
| Marshal.FreeCoTaskMem(pUnmanagedBytes); | |||
| return bSuccess; | |||
| } | |||
| private static bool SendBytesToPrinter(string printerName, IntPtr intptrBytes, Int32 count) | |||
| { | |||
| Int32 error = 0, written = 0; | |||
| IntPtr intptrPrinter = new IntPtr(0); | |||
| DocInfo docInfo = new DocInfo(); | |||
| bool bSuccess = false; | |||
| docInfo.DocName = ".NET RAW Document"; | |||
| docInfo.DataType = "RAW"; | |||
| // Open the printer. | |||
| if (OpenPrinter(printerName.Normalize(), out intptrPrinter, IntPtr.Zero)) | |||
| { | |||
| // Start a document. | |||
| if (StartDocPrinter(intptrPrinter, 1, docInfo)) | |||
| { | |||
| // Start a page. | |||
| if (StartPagePrinter(intptrPrinter)) | |||
| { | |||
| // Write your bytes. | |||
| bSuccess = WritePrinter(intptrPrinter, intptrBytes, count, out written); | |||
| EndPagePrinter(intptrPrinter); | |||
| } | |||
| EndDocPrinter(intptrPrinter); | |||
| } | |||
| ClosePrinter(intptrPrinter); | |||
| } | |||
| // If you did not succeed, GetLastError may give more information | |||
| // about why not. | |||
| if (bSuccess == false) | |||
| { | |||
| error = Marshal.GetLastWin32Error(); | |||
| } | |||
| return bSuccess; | |||
| } | |||
| } | |||
| } | |||
| @ -1,30 +0,0 @@ | |||
| <html> | |||
| <head> | |||
| <meta http-equiv="content-type" content="text/html; charset=utf-8"> | |||
| <style type='text/css'> | |||
| body{ | |||
| margin-top:15%; | |||
| margin-left:20px; | |||
| } | |||
| .big{ | |||
| font-family:黑体; | |||
| font-size:16px; | |||
| font-weight:bold; | |||
| line-height:30px; | |||
| } | |||
| span{ | |||
| width:66px; | |||
| display:inline-block; | |||
| text-align:justify; | |||
| text-align-last:justify; | |||
| } | |||
| </style> | |||
| </head> | |||
| <body> | |||
| <div class='big'> | |||
| <div><span>客 户</span>:$Customer_Name</div> | |||
| <div><span>线 路</span>:$DriverLine_Name </div> | |||
| <div><span>发货日期</span>:$Date </div> | |||
| </div> | |||
| </body> | |||
| </html> | |||
| @ -1,13 +0,0 @@ | |||
| ^XA | |||
| ^FT288,256^XG000.GRF,1,1^FS | |||
| ^SEE:GB18030.DAT^FS | |||
| ^CWJ,E:MSUNG24.FNT^FS | |||
| ^CI26 | |||
| ^FT20,40^AJN,36,36 ^FH\^FD客户:{0}^FS | |||
| ^FT20,100^AJN,36,36 ^FH\^FD线路:{1}^FS | |||
| ^FT20,160^AJN,36,36 ^FH\^FD日期:{2:yyyy/MM/dd}^FS | |||
| ^FT10,320^BCN,80^FD{3}^FS | |||
| ^FT20,380^AJN,36,36 ^FH\^FD装车顺序与:{5}^FS | |||
| ^FT450,380^AJN,36,36 ^FH\^FD{4:#0.###}^FS | |||
| ^PQ1,0,1,Y | |||
| ^XZ | |||
| @ -1,122 +0,0 @@ | |||
| namespace ButcherFactory.SegmentStockUp_ | |||
| { | |||
| partial class SelectCustomerDialog | |||
| { | |||
| /// <summary> | |||
| /// Required designer variable. | |||
| /// </summary> | |||
| private System.ComponentModel.IContainer components = null; | |||
| /// <summary> | |||
| /// Clean up any resources being used. | |||
| /// </summary> | |||
| /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | |||
| protected override void Dispose(bool disposing) | |||
| { | |||
| if (disposing && (components != null)) | |||
| { | |||
| components.Dispose(); | |||
| } | |||
| base.Dispose(disposing); | |||
| } | |||
| #region Windows Form Designer generated code | |||
| /// <summary> | |||
| /// Required method for Designer support - do not modify | |||
| /// the contents of this method with the code editor. | |||
| /// </summary> | |||
| private void InitializeComponent() | |||
| { | |||
| this.searchBox = new System.Windows.Forms.TextBox(); | |||
| this.label1 = new System.Windows.Forms.Label(); | |||
| this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); | |||
| this.clearBtn = new ButcherFactory.Controls.ColorButton(); | |||
| this.closeBtn = new ButcherFactory.Controls.ColorButton(); | |||
| this.SuspendLayout(); | |||
| // | |||
| // searchBox | |||
| // | |||
| this.searchBox.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.searchBox.Location = new System.Drawing.Point(93, 10); | |||
| this.searchBox.Name = "searchBox"; | |||
| this.searchBox.Size = new System.Drawing.Size(158, 30); | |||
| this.searchBox.TabIndex = 0; | |||
| this.searchBox.Click += new System.EventHandler(this.searchBox_Click); | |||
| // | |||
| // label1 | |||
| // | |||
| this.label1.AutoSize = true; | |||
| this.label1.Font = new System.Drawing.Font("宋体", 15F); | |||
| this.label1.Location = new System.Drawing.Point(18, 15); | |||
| this.label1.Name = "label1"; | |||
| this.label1.Size = new System.Drawing.Size(69, 20); | |||
| this.label1.TabIndex = 1; | |||
| this.label1.Text = "搜索:"; | |||
| // | |||
| // flowLayoutPanel1 | |||
| // | |||
| this.flowLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| | System.Windows.Forms.AnchorStyles.Left) | |||
| | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.flowLayoutPanel1.Location = new System.Drawing.Point(19, 77); | |||
| this.flowLayoutPanel1.Name = "flowLayoutPanel1"; | |||
| this.flowLayoutPanel1.Size = new System.Drawing.Size(789, 452); | |||
| this.flowLayoutPanel1.TabIndex = 2; | |||
| // | |||
| // clearBtn | |||
| // | |||
| this.clearBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.clearBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245))))); | |||
| this.clearBtn.Font = new System.Drawing.Font("宋体", 12F); | |||
| this.clearBtn.ForeColor = System.Drawing.Color.White; | |||
| this.clearBtn.Location = new System.Drawing.Point(601, 17); | |||
| this.clearBtn.Name = "clearBtn"; | |||
| this.clearBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107))))); | |||
| this.clearBtn.Size = new System.Drawing.Size(88, 39); | |||
| this.clearBtn.TabIndex = 3; | |||
| this.clearBtn.Text = "清空"; | |||
| this.clearBtn.UseVisualStyleBackColor = false; | |||
| this.clearBtn.Click += new System.EventHandler(this.clearBtn_Click); | |||
| // | |||
| // closeBtn | |||
| // | |||
| this.closeBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | |||
| this.closeBtn.BackColor = System.Drawing.Color.Red; | |||
| this.closeBtn.Font = new System.Drawing.Font("宋体", 12F); | |||
| this.closeBtn.ForeColor = System.Drawing.Color.White; | |||
| this.closeBtn.Location = new System.Drawing.Point(717, 17); | |||
| this.closeBtn.Name = "closeBtn"; | |||
| this.closeBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107))))); | |||
| this.closeBtn.Size = new System.Drawing.Size(88, 39); | |||
| this.closeBtn.TabIndex = 4; | |||
| this.closeBtn.Text = "关闭"; | |||
| this.closeBtn.UseVisualStyleBackColor = false; | |||
| this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click); | |||
| // | |||
| // SelectCustomerDialog | |||
| // | |||
| this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); | |||
| this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |||
| this.ClientSize = new System.Drawing.Size(824, 560); | |||
| this.Controls.Add(this.closeBtn); | |||
| this.Controls.Add(this.clearBtn); | |||
| this.Controls.Add(this.flowLayoutPanel1); | |||
| this.Controls.Add(this.label1); | |||
| this.Controls.Add(this.searchBox); | |||
| this.Name = "SelectCustomerDialog"; | |||
| this.Text = "选择客户"; | |||
| this.ResumeLayout(false); | |||
| this.PerformLayout(); | |||
| } | |||
| #endregion | |||
| private System.Windows.Forms.TextBox searchBox; | |||
| private System.Windows.Forms.Label label1; | |||
| private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; | |||
| private Controls.ColorButton clearBtn; | |||
| private Controls.ColorButton closeBtn; | |||
| } | |||
| } | |||
| @ -1,68 +0,0 @@ | |||
| using ButcherFactory.BO.LocalBL; | |||
| using ButcherFactory.Controls; | |||
| using System; | |||
| using System.Collections.Generic; | |||
| using System.ComponentModel; | |||
| using System.Data; | |||
| using System.Drawing; | |||
| using System.Linq; | |||
| using System.Text; | |||
| using System.Threading.Tasks; | |||
| using System.Windows.Forms; | |||
| using WinFormControl; | |||
| namespace ButcherFactory.SegmentStockUp_ | |||
| { | |||
| public partial class SelectCustomerDialog : Form | |||
| { | |||
| public Tuple<string, long> Result; | |||
| public SelectCustomerDialog() | |||
| { | |||
| InitializeComponent(); | |||
| } | |||
| Color customerColor = Color.FromArgb(144, 98, 222); | |||
| private void searchBox_Click(object sender, EventArgs e) | |||
| { | |||
| var keyBoard = new VirtualKeyPad(); | |||
| if (keyBoard.ShowDialog() == true) | |||
| { | |||
| searchBox.Text = keyBoard.Result.Trim(); | |||
| flowLayoutPanel1.Controls.Clear(); | |||
| if (string.IsNullOrEmpty(searchBox.Text)) | |||
| return; | |||
| var customers = DialogBL.GetCustomerList(searchBox.Text); | |||
| foreach (var item in customers) | |||
| { | |||
| var btn = new ColorButton() { Width = 100, Height = 60, Text = item.StringExt1.ToString(), Tag = item.LongExt1, BackColor = customerColor, Font = new Font("宋体", 10), Margin = new Padding(12) }; | |||
| btn.Click += CustomerClick; | |||
| flowLayoutPanel1.Controls.Add(btn); | |||
| } | |||
| } | |||
| } | |||
| private void CustomerClick(object sender, EventArgs e) | |||
| { | |||
| var btn = sender as ColorButton; | |||
| Result = new Tuple<string, long>(btn.Text, Convert.ToInt64(btn.Tag)); | |||
| AfterChange(); | |||
| } | |||
| private void clearBtn_Click(object sender, EventArgs e) | |||
| { | |||
| Result = null; | |||
| AfterChange(); | |||
| } | |||
| void AfterChange() | |||
| { | |||
| DialogResult = DialogResult.OK; | |||
| this.Close(); | |||
| } | |||
| private void closeBtn_Click(object sender, EventArgs e) | |||
| { | |||
| this.Close(); | |||
| } | |||
| } | |||
| } | |||
| @ -1,120 +0,0 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | |||
| <root> | |||
| <!-- | |||
| Microsoft ResX Schema | |||
| Version 2.0 | |||
| The primary goals of this format is to allow a simple XML format | |||
| that is mostly human readable. The generation and parsing of the | |||
| various data types are done through the TypeConverter classes | |||
| associated with the data types. | |||
| Example: | |||
| ... ado.net/XML headers & schema ... | |||
| <resheader name="resmimetype">text/microsoft-resx</resheader> | |||
| <resheader name="version">2.0</resheader> | |||
| <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||
| <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||
| <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||
| <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||
| <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||
| <value>[base64 mime encoded serialized .NET Framework object]</value> | |||
| </data> | |||
| <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
| <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||
| <comment>This is a comment</comment> | |||
| </data> | |||
| There are any number of "resheader" rows that contain simple | |||
| name/value pairs. | |||
| Each data row contains a name, and value. The row also contains a | |||
| type or mimetype. Type corresponds to a .NET class that support | |||
| text/value conversion through the TypeConverter architecture. | |||
| Classes that don't support this are serialized and stored with the | |||
| mimetype set. | |||
| The mimetype is used for serialized objects, and tells the | |||
| ResXResourceReader how to depersist the object. This is currently not | |||
| extensible. For a given mimetype the value must be set accordingly: | |||
| Note - application/x-microsoft.net.object.binary.base64 is the format | |||
| that the ResXResourceWriter will generate, however the reader can | |||
| read any of the formats listed below. | |||
| mimetype: application/x-microsoft.net.object.binary.base64 | |||
| value : The object must be serialized with | |||
| : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |||
| : and then encoded with base64 encoding. | |||
| mimetype: application/x-microsoft.net.object.soap.base64 | |||
| value : The object must be serialized with | |||
| : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||
| : and then encoded with base64 encoding. | |||
| mimetype: application/x-microsoft.net.object.bytearray.base64 | |||
| value : The object must be serialized into a byte array | |||
| : using a System.ComponentModel.TypeConverter | |||
| : and then encoded with base64 encoding. | |||
| --> | |||
| <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||
| <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |||
| <xsd:element name="root" msdata:IsDataSet="true"> | |||
| <xsd:complexType> | |||
| <xsd:choice maxOccurs="unbounded"> | |||
| <xsd:element name="metadata"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" use="required" type="xsd:string" /> | |||
| <xsd:attribute name="type" type="xsd:string" /> | |||
| <xsd:attribute name="mimetype" type="xsd:string" /> | |||
| <xsd:attribute ref="xml:space" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="assembly"> | |||
| <xsd:complexType> | |||
| <xsd:attribute name="alias" type="xsd:string" /> | |||
| <xsd:attribute name="name" type="xsd:string" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="data"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
| <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |||
| <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||
| <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||
| <xsd:attribute ref="xml:space" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| <xsd:element name="resheader"> | |||
| <xsd:complexType> | |||
| <xsd:sequence> | |||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
| </xsd:sequence> | |||
| <xsd:attribute name="name" type="xsd:string" use="required" /> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| </xsd:choice> | |||
| </xsd:complexType> | |||
| </xsd:element> | |||
| </xsd:schema> | |||
| <resheader name="resmimetype"> | |||
| <value>text/microsoft-resx</value> | |||
| </resheader> | |||
| <resheader name="version"> | |||
| <value>2.0</value> | |||
| </resheader> | |||
| <resheader name="reader"> | |||
| <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
| </resheader> | |||
| <resheader name="writer"> | |||
| <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
| </resheader> | |||
| </root> | |||