Browse Source

删除无用文件

章政 7 years ago
parent
commit
8799f550eb

+ 0 - 339
UAS-MES/BarTender.Designer.cs

@@ -1,339 +0,0 @@
-namespace 优软MES
-{
-   partial class BarTender
-   {
-      /// <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 dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
-            this.txtFolderPath = new System.Windows.Forms.TextBox();
-            this.btnOpen = new System.Windows.Forms.Button();
-            this.label1 = new System.Windows.Forms.Label();
-            this.substringGrid = new System.Windows.Forms.DataGridView();
-            this.label2 = new System.Windows.Forms.Label();
-            this.cboPrinters = new System.Windows.Forms.ComboBox();
-            this.btnPrint = new System.Windows.Forms.Button();
-            this.label3 = new System.Windows.Forms.Label();
-            this.label4 = new System.Windows.Forms.Label();
-            this.txtIdenticalCopies = new System.Windows.Forms.TextBox();
-            this.label5 = new System.Windows.Forms.Label();
-            this.txtSerializedCopies = new System.Windows.Forms.TextBox();
-            this.groupBox1 = new System.Windows.Forms.GroupBox();
-            this.lstLabelBrowser = new System.Windows.Forms.ListView();
-            this.thumbnailCacheWorker = new System.ComponentModel.BackgroundWorker();
-            this.folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog();
-            this.picUpdatingFormat = new System.Windows.Forms.PictureBox();
-            this.lblNoSubstrings = new System.Windows.Forms.Label();
-            this.lblFormatError = new System.Windows.Forms.Label();
-            this.headBar1 = new 优软MES.CustomControl.HeadBar();
-            ((System.ComponentModel.ISupportInitialize)(this.substringGrid)).BeginInit();
-            this.groupBox1.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.picUpdatingFormat)).BeginInit();
-            this.SuspendLayout();
-            // 
-            // txtFolderPath
-            // 
-            this.txtFolderPath.Location = new System.Drawing.Point(99, 46);
-            this.txtFolderPath.Name = "txtFolderPath";
-            this.txtFolderPath.ReadOnly = true;
-            this.txtFolderPath.Size = new System.Drawing.Size(315, 21);
-            this.txtFolderPath.TabIndex = 8;
-            // 
-            // btnOpen
-            // 
-            this.btnOpen.Location = new System.Drawing.Point(420, 47);
-            this.btnOpen.Name = "btnOpen";
-            this.btnOpen.Size = new System.Drawing.Size(75, 21);
-            this.btnOpen.TabIndex = 0;
-            this.btnOpen.Text = "打开";
-            this.btnOpen.UseVisualStyleBackColor = true;
-            this.btnOpen.Click += new System.EventHandler(this.btnOpen_Click);
-            // 
-            // label1
-            // 
-            this.label1.AutoSize = true;
-            this.label1.Location = new System.Drawing.Point(17, 49);
-            this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(77, 12);
-            this.label1.TabIndex = 7;
-            this.label1.Text = "选择文件夹:";
-            // 
-            // substringGrid
-            // 
-            this.substringGrid.AllowUserToAddRows = false;
-            this.substringGrid.AllowUserToDeleteRows = false;
-            this.substringGrid.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
-            this.substringGrid.BackgroundColor = System.Drawing.Color.White;
-            this.substringGrid.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
-            dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
-            dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.substringGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
-            this.substringGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
-            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
-            dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
-            dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
-            this.substringGrid.DefaultCellStyle = dataGridViewCellStyle2;
-            this.substringGrid.Location = new System.Drawing.Point(504, 72);
-            this.substringGrid.MultiSelect = false;
-            this.substringGrid.Name = "substringGrid";
-            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control;
-            dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText;
-            dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.substringGrid.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
-            this.substringGrid.Size = new System.Drawing.Size(389, 300);
-            this.substringGrid.TabIndex = 3;
-            // 
-            // label2
-            // 
-            this.label2.AutoSize = true;
-            this.label2.Location = new System.Drawing.Point(504, 51);
-            this.label2.Name = "label2";
-            this.label2.Size = new System.Drawing.Size(65, 12);
-            this.label2.TabIndex = 2;
-            this.label2.Text = "具名数据源";
-            // 
-            // cboPrinters
-            // 
-            this.cboPrinters.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.cboPrinters.FormattingEnabled = true;
-            this.cboPrinters.Location = new System.Drawing.Point(98, 17);
-            this.cboPrinters.Name = "cboPrinters";
-            this.cboPrinters.Size = new System.Drawing.Size(282, 20);
-            this.cboPrinters.Sorted = true;
-            this.cboPrinters.TabIndex = 1;
-            // 
-            // btnPrint
-            // 
-            this.btnPrint.Enabled = false;
-            this.btnPrint.Location = new System.Drawing.Point(306, 63);
-            this.btnPrint.Name = "btnPrint";
-            this.btnPrint.Size = new System.Drawing.Size(75, 21);
-            this.btnPrint.TabIndex = 6;
-            this.btnPrint.Text = "打印";
-            this.btnPrint.UseVisualStyleBackColor = true;
-            this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click);
-            // 
-            // label3
-            // 
-            this.label3.AutoSize = true;
-            this.label3.Location = new System.Drawing.Point(6, 19);
-            this.label3.Name = "label3";
-            this.label3.Size = new System.Drawing.Size(77, 12);
-            this.label3.TabIndex = 0;
-            this.label3.Text = "选择打印机:";
-            // 
-            // label4
-            // 
-            this.label4.AutoSize = true;
-            this.label4.Location = new System.Drawing.Point(6, 44);
-            this.label4.Name = "label4";
-            this.label4.Size = new System.Drawing.Size(65, 12);
-            this.label4.TabIndex = 2;
-            this.label4.Text = "打印份数:";
-            // 
-            // txtIdenticalCopies
-            // 
-            this.txtIdenticalCopies.Location = new System.Drawing.Point(98, 42);
-            this.txtIdenticalCopies.Name = "txtIdenticalCopies";
-            this.txtIdenticalCopies.ReadOnly = true;
-            this.txtIdenticalCopies.Size = new System.Drawing.Size(112, 21);
-            this.txtIdenticalCopies.TabIndex = 3;
-            // 
-            // label5
-            // 
-            this.label5.AutoSize = true;
-            this.label5.Location = new System.Drawing.Point(6, 68);
-            this.label5.Name = "label5";
-            this.label5.Size = new System.Drawing.Size(113, 12);
-            this.label5.TabIndex = 4;
-            this.label5.Text = "&Serialized Copies:";
-            // 
-            // txtSerializedCopies
-            // 
-            this.txtSerializedCopies.Location = new System.Drawing.Point(98, 66);
-            this.txtSerializedCopies.Name = "txtSerializedCopies";
-            this.txtSerializedCopies.ReadOnly = true;
-            this.txtSerializedCopies.Size = new System.Drawing.Size(112, 21);
-            this.txtSerializedCopies.TabIndex = 5;
-            // 
-            // groupBox1
-            // 
-            this.groupBox1.Controls.Add(this.txtIdenticalCopies);
-            this.groupBox1.Controls.Add(this.label5);
-            this.groupBox1.Controls.Add(this.txtSerializedCopies);
-            this.groupBox1.Controls.Add(this.label4);
-            this.groupBox1.Controls.Add(this.label3);
-            this.groupBox1.Controls.Add(this.btnPrint);
-            this.groupBox1.Controls.Add(this.cboPrinters);
-            this.groupBox1.Location = new System.Drawing.Point(504, 378);
-            this.groupBox1.Name = "groupBox1";
-            this.groupBox1.Size = new System.Drawing.Size(389, 91);
-            this.groupBox1.TabIndex = 6;
-            this.groupBox1.TabStop = false;
-            this.groupBox1.Text = "打印工作区";
-            // 
-            // lstLabelBrowser
-            // 
-            this.lstLabelBrowser.BackColor = System.Drawing.Color.White;
-            this.lstLabelBrowser.HideSelection = false;
-            this.lstLabelBrowser.Location = new System.Drawing.Point(20, 72);
-            this.lstLabelBrowser.MultiSelect = false;
-            this.lstLabelBrowser.Name = "lstLabelBrowser";
-            this.lstLabelBrowser.Size = new System.Drawing.Size(475, 397);
-            this.lstLabelBrowser.TabIndex = 1;
-            this.lstLabelBrowser.UseCompatibleStateImageBehavior = false;
-            this.lstLabelBrowser.VirtualMode = true;
-            this.lstLabelBrowser.CacheVirtualItems += new System.Windows.Forms.CacheVirtualItemsEventHandler(this.lstLabelBrowser_CacheVirtualItems);
-            this.lstLabelBrowser.RetrieveVirtualItem += new System.Windows.Forms.RetrieveVirtualItemEventHandler(this.lstLabelBrowser_RetrieveVirtualItem);
-            this.lstLabelBrowser.SelectedIndexChanged += new System.EventHandler(this.lstLabelBrowser_SelectedIndexChanged);
-            // 
-            // thumbnailCacheWorker
-            // 
-            this.thumbnailCacheWorker.WorkerReportsProgress = true;
-            this.thumbnailCacheWorker.WorkerSupportsCancellation = true;
-            this.thumbnailCacheWorker.DoWork += new System.ComponentModel.DoWorkEventHandler(this.thumbnailCacheWorker_DoWork);
-            this.thumbnailCacheWorker.ProgressChanged += new System.ComponentModel.ProgressChangedEventHandler(this.thumbnailCacheWorker_ProgressChanged);
-            // 
-            // folderBrowserDialog
-            // 
-            this.folderBrowserDialog.ShowNewFolderButton = false;
-            // 
-            // picUpdatingFormat
-            // 
-            this.picUpdatingFormat.BackColor = System.Drawing.Color.White;
-            this.picUpdatingFormat.Image = global::优软MES.Properties.Resources.updating;
-            this.picUpdatingFormat.Location = new System.Drawing.Point(688, 221);
-            this.picUpdatingFormat.Name = "picUpdatingFormat";
-            this.picUpdatingFormat.Size = new System.Drawing.Size(28, 23);
-            this.picUpdatingFormat.TabIndex = 34;
-            this.picUpdatingFormat.TabStop = false;
-            this.picUpdatingFormat.Visible = false;
-            // 
-            // lblNoSubstrings
-            // 
-            this.lblNoSubstrings.AutoSize = true;
-            this.lblNoSubstrings.BackColor = System.Drawing.Color.White;
-            this.lblNoSubstrings.Location = new System.Drawing.Point(631, 183);
-            this.lblNoSubstrings.Name = "lblNoSubstrings";
-            this.lblNoSubstrings.Size = new System.Drawing.Size(125, 12);
-            this.lblNoSubstrings.TabIndex = 4;
-            this.lblNoSubstrings.Text = "当前文件不存在数据源";
-            this.lblNoSubstrings.Visible = false;
-            // 
-            // lblFormatError
-            // 
-            this.lblFormatError.AutoSize = true;
-            this.lblFormatError.BackColor = System.Drawing.Color.White;
-            this.lblFormatError.Location = new System.Drawing.Point(675, 206);
-            this.lblFormatError.Name = "lblFormatError";
-            this.lblFormatError.Size = new System.Drawing.Size(53, 12);
-            this.lblFormatError.TabIndex = 5;
-            this.lblFormatError.Text = "打开错误";
-            this.lblFormatError.Visible = false;
-            // 
-            // headBar1
-            // 
-            this.headBar1.BackColor = System.Drawing.SystemColors.ControlDarkDark;
-            this.headBar1.Dock = System.Windows.Forms.DockStyle.Top;
-            this.headBar1.Location = new System.Drawing.Point(0, 0);
-            this.headBar1.Name = "headBar1";
-            this.headBar1.Size = new System.Drawing.Size(919, 32);
-            this.headBar1.TabIndex = 35;
-            this.headBar1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.headBar1_MouseDown);
-            // 
-            // BarTender
-            // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
-            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(919, 493);
-            this.Controls.Add(this.headBar1);
-            this.Controls.Add(this.lblFormatError);
-            this.Controls.Add(this.lblNoSubstrings);
-            this.Controls.Add(this.picUpdatingFormat);
-            this.Controls.Add(this.lstLabelBrowser);
-            this.Controls.Add(this.groupBox1);
-            this.Controls.Add(this.label2);
-            this.Controls.Add(this.substringGrid);
-            this.Controls.Add(this.txtFolderPath);
-            this.Controls.Add(this.btnOpen);
-            this.Controls.Add(this.label1);
-            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
-            this.MaximizeBox = false;
-            this.Name = "BarTender";
-            this.ShowIcon = false;
-            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
-            this.Text = "标签打印";
-            this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.LabelPrint_FormClosed);
-            this.Load += new System.EventHandler(this.LabelPrint_Load);
-            ((System.ComponentModel.ISupportInitialize)(this.substringGrid)).EndInit();
-            this.groupBox1.ResumeLayout(false);
-            this.groupBox1.PerformLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.picUpdatingFormat)).EndInit();
-            this.ResumeLayout(false);
-            this.PerformLayout();
-
-      }
-
-      #endregion
-
-      private System.Windows.Forms.TextBox txtFolderPath;
-      private System.Windows.Forms.Button btnOpen;
-      private System.Windows.Forms.Label label1;
-      private System.Windows.Forms.DataGridView substringGrid;
-      private System.Windows.Forms.Label label2;
-      private System.Windows.Forms.ComboBox cboPrinters;
-      private System.Windows.Forms.Button btnPrint;
-      private System.Windows.Forms.Label label3;
-      private System.Windows.Forms.Label label4;
-      private System.Windows.Forms.TextBox txtIdenticalCopies;
-      private System.Windows.Forms.Label label5;
-      private System.Windows.Forms.TextBox txtSerializedCopies;
-      private System.Windows.Forms.GroupBox groupBox1;
-      private System.Windows.Forms.ListView lstLabelBrowser;
-      private System.ComponentModel.BackgroundWorker thumbnailCacheWorker;
-      private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog;
-      private System.Windows.Forms.PictureBox picUpdatingFormat;
-      private System.Windows.Forms.Label lblNoSubstrings;
-      private System.Windows.Forms.Label lblFormatError;
-        private CustomControl.HeadBar headBar1;
-    }
-}
-

+ 0 - 562
UAS-MES/BarTender.cs

@@ -1,562 +0,0 @@
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Drawing;
-using System.Windows.Forms;
-using Seagull.BarTender.Print;
-using System.Data;
-using System.Runtime.InteropServices;
-
-namespace MES接口
-{
-    public partial class BarTender : Form
-   {
-      #region Fields
-      // Common strings.
-      //format.BaseName 获取当前文件名,不包括后缀
-      //format.Title 获取全部文件名,包括后缀
-      //format.Status 文件是否被加载
-      [DllImport("user32.dll")]
-      public static extern bool ReleaseCapture();
-      [DllImport("user32.dll")]
-      public static extern bool SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam);
-      public const int WM_SYSCOMMAND = 0x0112;
-      public const int SC_MOVE = 0xF010;
-      public const int HTCAPTION = 0x0002;
-
-      private const string appName = "Label Print";
-      private const string dataSourced = "Data Sourced";
-      private Engine engine = null; // 新建打印机引擎
-      private LabelFormatDocument format = null; // 当前打开的BTW文件对象
-      private bool isClosing = false; // 正在关闭时此选项设置为true,会阻止缩略图加载.
-
-      // 标签预览
-      private string[] browsingFormats; // 当前选取的文件夹下的Btw文件
-      Hashtable listItems; // A hash table containing ListViewItems and indexed by format name.
-                           // It keeps track of what formats have had their image loaded.
-      Queue<int> generationQueue; // A queue containing indexes into browsingFormats
-                                  // to facilitate the generation of thumbnails
-
-      // 预览文件的索引
-      int topIndex; // The top visible index in the lstLabelBrowser
-      int selectedIndex; // 预览框选中文件的索引
-      #endregion
-
-      #region Enumerations
-      // Indexes into our image list for the label browser.
-      enum ImageIndex { LoadingFormatImage = 0, FailureToLoadFormatImage = 1 };
-      #endregion
-
-      #region Constructor
-      /// <summary>
-      /// 构造函数初始化
-      /// </summary>
-      public BarTender()
-      {
-         InitializeComponent();
-      }
-      #endregion
-
-      #region Delegates
-      delegate void DelegateShowMessageBox(string message);
-      #endregion
-
-      #region Event Handlers
-      #region Form Event Handlers
-      /// <summary>
-      /// 页面启动的时候执行,和打印机进行连接
-      /// </summary>
-      /// <param name="sender"></param>
-      /// <param name="e"></param>
-      private void LabelPrint_Load(object sender, EventArgs e)
-      {
-         this.headBar1.MouseDown += new MouseEventHandler(this.headBar1_MouseDown);
-            // 创建一个打印机进程
-         try
-         {
-            engine = new Engine(true);
-         }
-         catch (PrintEngineException exception)
-         {
-            // 不能打印进程返回错误信息直接退出程序
-            MessageBox.Show(this, exception.Message, appName);
-            this.Close(); 
-            return;
-         }
-
-         // 获取打印机列表
-         Printers printers = new Printers();
-         foreach (Printer printer in printers)
-         {
-            cboPrinters.Items.Add(printer.PrinterName);
-         }
-
-         if (printers.Count > 0)
-         {
-            // 设置下拉框选中默认打印机
-            cboPrinters.SelectedItem = printers.Default.PrinterName;
-         }
-
-         // 设置预览框中的图标
-         lstLabelBrowser.View = View.LargeIcon;
-         lstLabelBrowser.LargeImageList = new ImageList();
-         lstLabelBrowser.LargeImageList.ImageSize = new Size(100, 100);
-         lstLabelBrowser.LargeImageList.Images.Add(Properties.Resources.LoadingFormat);
-         lstLabelBrowser.LargeImageList.Images.Add(Properties.Resources.LoadingError);
-
-         // 初始化一个队列
-         listItems = new Hashtable();
-         generationQueue = new Queue<int>();
-
-         //设置打印份数的最大值
-         txtIdenticalCopies.MaxLength = 9;
-         txtSerializedCopies.MaxLength = 9;
-      }
-
-      /// <summary>
-      /// 关闭窗口的时候执行该方法
-      /// </summary>
-      /// <param name="sender"></param>
-      /// <param name="e"></param>
-      private void LabelPrint_FormClosed(object sender, FormClosedEventArgs e)
-      {
-         isClosing = true;
-
-         // 关闭窗口之前向后台请求取消尚未打印的内容 
-         thumbnailCacheWorker.CancelAsync();
-         while (thumbnailCacheWorker.IsBusy)
-         {
-            Application.DoEvents();
-         };
-
-         // 如果已经启动了打印机,停止打印机并且不保存修改的文件SubString
-         if (engine != null)
-            engine.Stop(SaveOptions.DoNotSaveChanges);
-      }
-
-      /// <summary>
-      ///打开文件夹的时候,选择该文件夹下面后缀名为.BTW的文件进行显示
-      /// </summary>
-      /// <param name="sender"></param>
-      /// <param name="e"></param>
-      private void btnOpen_Click(object sender, EventArgs e)
-      {
-         //选择文件的时提示的描述
-         folderBrowserDialog.Description = "选择一个包含打印文件(*.BTW)的文件夹";
-         DialogResult result = folderBrowserDialog.ShowDialog();
-         if (result == DialogResult.OK)
-         {
-            lock (generationQueue)
-            {
-               generationQueue.Clear();
-            }
-            //清空之前选择的内容
-            listItems.Clear();
-            //将文件夹的路径赋值给TextBox
-            txtFolderPath.Text = folderBrowserDialog.SelectedPath;
-            //为选取的时候打印按钮为Disabled
-            btnPrint.Enabled = false;
-            //读取该文件夹下面的BTW文件,browsingFormats是文件名的字符串数组
-            browsingFormats = System.IO.Directory.GetFiles(txtFolderPath.Text, "*.btw");
-
-            // ListView序列化的长度
-            lstLabelBrowser.VirtualListSize = browsingFormats.Length;
-         }
-      }
-
-      /// <summary>
-      /// 点击打印按钮的时候执行
-      /// </summary>
-      /// <param name="sender"></param>
-      /// <param name="e"></param>
-      private void btnPrint_Click(object sender, EventArgs e)
-      {
-         // 正在打印的时候锁定该进程
-         // 用户点击也不展示SubString
-         lock (engine)
-         {
-            bool success = true;
-            // 设置打印参数
-            if (format.PrintSetup.SupportsIdenticalCopies)
-            {   
-               int copies = 1;
-               success = Int32.TryParse(txtIdenticalCopies.Text, out copies) && (copies >= 1);
-               if (!success)
-                  MessageBox.Show(this, "打印的份数必须大于1的整数", appName);
-               else
-               {
-                  format.PrintSetup.IdenticalCopiesOfLabel = copies;
-               }
-            }
-            // 数据源是数据库的时候
-            // Assign number of serialized copies if it is not datasourced.
-            if (success && (format.PrintSetup.SupportsSerializedLabels))
-            {
-               int copies = 1;
-               success = int.TryParse(txtSerializedCopies.Text, out copies) && (copies >= 1);
-               if (!success)
-               {
-                  MessageBox.Show(this, "打印份数必须是大于1的数字", appName);
-               }
-               else
-               {
-                  format.PrintSetup.NumberOfSerializedLabels = copies;
-               }
-            }
-
-            // 所有的验证条件通过执行打印
-            if (success)
-            {
-               Cursor.Current = Cursors.WaitCursor;
-
-               // 选择打印机的名称
-               if (cboPrinters.SelectedItem != null)
-                  format.PrintSetup.PrinterName = cboPrinters.SelectedItem.ToString();
-
-                    //int waitForCompletionTimeout = 10000; // 10 seconds
-                    //Result result = format.Print(appName, waitForCompletionTimeout, out messages);
-                    //string messageString = "\n\nMessages:";
-
-                    //foreach (Seagull.BarTender.Print.Message message in messages)
-                    //{
-                    //   messageString += "\n\n" + message.Text;
-                    //}
-
-                    //if (result == Result.Failure)
-                    //   MessageBox.Show(this, "Print Failed" + messageString, appName);
-                    //else
-                    //   MessageBox.Show(this, "Label was successfully sent to printer." + messageString, appName);
-                }
-         }
-      }
-      #endregion
-
-      #region List View Event Handlers
-      /// <summary>
-      /// 选中预览文件的时候读取SubString
-      /// </summary>
-      /// <param name="sender"></param>
-      /// <param name="e"></param>
-      private void lstLabelBrowser_SelectedIndexChanged(object sender, EventArgs e)
-      {
-         if (lstLabelBrowser.SelectedIndices.Count == 1)
-         {
-            selectedIndex = lstLabelBrowser.SelectedIndices[0];
-            EnableControls(false);
-            picUpdatingFormat.Visible = true;
-
-            // 启动后台加载函数读取内容
-            // 读取到的数据显示在DataGridView当中
-            BackgroundWorker formatLoader = new BackgroundWorker();
-            formatLoader.DoWork += new DoWorkEventHandler(formatLoader_DoWork);
-            formatLoader.RunWorkerCompleted += new RunWorkerCompletedEventHandler(formatLoader_RunWorkerCompleted);
-            formatLoader.RunWorkerAsync(selectedIndex);
-         }
-         else if (lstLabelBrowser.SelectedIndices.Count == 0)
-         {
-            EnableControls(false);
-            picUpdatingFormat.Visible = false;
-         }
-      }
-      /// <summary>
-      /// 读取完文件夹的时候展示问价在该区域
-      /// </summary>
-      /// <param name="sender"></param>
-      /// <param name="e"></param>
-      private void lstLabelBrowser_RetrieveVirtualItem(object sender, RetrieveVirtualItemEventArgs e)
-      {
-         int btwFileIndex = e.ItemIndex;
-
-         //如果不存在这个项目则设置成默认的图片
-         if (listItems[browsingFormats[btwFileIndex]] == null)
-         {
-            e.Item = new ListViewItem(browsingFormats[btwFileIndex]);
-            e.Item.ImageIndex = (int)ImageIndex.LoadingFormatImage;
-            listItems.Add(browsingFormats[btwFileIndex], e.Item);
-         }
-         else
-         {
-            e.Item = (ListViewItem)listItems[browsingFormats[btwFileIndex]];
-         }
-
-         // 将索引添加到队列.
-         if (e.Item.ImageIndex == (int)ImageIndex.LoadingFormatImage)
-         {
-            lock (generationQueue)
-            {
-               if (!generationQueue.Contains(btwFileIndex))
-                  generationQueue.Enqueue(btwFileIndex);
-            }
-         }
-
-         // 将东西放进队列的时候,如果队列没有被占用则开始执行任务
-         if (!thumbnailCacheWorker.IsBusy && (generationQueue.Count > 0))
-         {
-            thumbnailCacheWorker.RunWorkerAsync();
-         }
-      }
-
-      /// <summary>
-      /// 缓存读取的文件列表
-      /// </summary>
-      /// <param name="sender"></param>
-      /// <param name="cacheEvent"></param>
-      private void lstLabelBrowser_CacheVirtualItems(object sender, CacheVirtualItemsEventArgs cacheEvent)
-      {
-         topIndex = cacheEvent.StartIndex;
-
-         lock (generationQueue)
-         {
-            for (int index = cacheEvent.StartIndex; index <= cacheEvent.EndIndex; ++index)
-            {
-               ListViewItem listViewItem = (ListViewItem)listItems[browsingFormats[index]];
-
-               if ((listViewItem != null) && (listViewItem.ImageIndex == (int)ImageIndex.LoadingFormatImage))
-               {
-                  if (!generationQueue.Contains(index))
-                     generationQueue.Enqueue(index);
-               }
-            }
-         }
-
-         // 任务资源可用的时候执行
-         if (!thumbnailCacheWorker.IsBusy && (generationQueue.Count > 0))
-         {
-            thumbnailCacheWorker.RunWorkerAsync();
-         }
-      }
-      #endregion
-
-      #region Thumbnail Event Handlers
-      /// <summary>
-      /// Called when a thumbnail was loaded so it can be shown.
-      /// </summary>
-      /// <param name="sender"></param>
-      /// <param name="e"></param>
-      void thumbnailCacheWorker_ProgressChanged(object sender, ProgressChangedEventArgs e)
-      {
-         object[] args = e.UserState as object[];
-           
-         ListViewItem item = (ListViewItem)args[0];
-
-         // 100 means we got the image successfully.
-         if (e.ProgressPercentage == 100)
-         {
-            Image thumbnail = (Image)args[1];
-            lstLabelBrowser.LargeImageList.Images.Add(item.Text, thumbnail);
-            item.ImageIndex = lstLabelBrowser.LargeImageList.Images.IndexOfKey(item.Text);
-         }
-         else if (e.ProgressPercentage == 0) // 0 means we did not successfully get the format image.
-         {
-            item.ImageIndex = (int)ImageIndex.FailureToLoadFormatImage;
-         }
-         item.ListView.Invalidate(item.Bounds);
-      }
-
-      /// <summary>
-      /// 后台启用函数加载缩略图
-      /// </summary>
-      /// <param name="sender"></param>
-      /// <param name="e"></param>
-      void thumbnailCacheWorker_DoWork(object sender, DoWorkEventArgs e)
-      {
-         BackgroundWorker worker = (BackgroundWorker)sender;
-
-         int index;
-         string fileName;
-
-         // Loop until the queue of items that need to be loaded is empty or the worker was cancelled.
-         while ((generationQueue.Count > 0) && !worker.CancellationPending && !isClosing)
-         {
-            lock (generationQueue)
-            {
-               // Get the index to use.
-               index = generationQueue.Dequeue();
-            }
-            
-            // If this is way out of our view don't bother generating it.
-            if (Math.Abs(index - topIndex) < 30)
-            {
-               fileName = browsingFormats[index];
-
-               // 检查文件是否出缩略图外都已经加载完成了
-               ListViewItem item = (ListViewItem)listItems[fileName];
-               if (item == null)
-               {
-                  item = new ListViewItem(fileName);
-                  item.ImageIndex = (int)ImageIndex.LoadingFormatImage;
-                  listItems.Add(fileName, item);
-               }
-
-               // 没有缩略图的时候就给个默认的
-               if (item.ImageIndex == (int)ImageIndex.LoadingFormatImage)
-               {
-                  try
-                  {
-                     Console.WriteLine(fileName);
-                     Image btwImage = LabelFormatThumbnail.Create(fileName, Color.Gray, 100, 100);
-
-                     object[] progressReport = new object[] { item, btwImage };
-                     worker.ReportProgress(100, progressReport);
-                  }
-                  catch
-                  {
-                     object[] progressReport = new object[] { item, null };
-                     worker.ReportProgress(0, progressReport);
-                  }
-               }
-            }
-         }
-      }
-      #endregion
-
-      #region Format Loader Event Handlers
-      /// <summary>
-      ///在另一个进程中进行文件的读取,不用占用当前的界面
-      /// </summary>
-      /// <param name="sender"></param>
-      /// <param name="e"></param>
-      void formatLoader_DoWork(object sender, DoWorkEventArgs e)
-      {
-         int index = (int)e.Argument;
-         string errorMessage = "";
-
-         // 确保安全先锁定打印机,因为可能正在执行打印任务
-         lock (engine)
-         {
-            //确保用户选中该列表
-            if (selectedIndex == index)
-            {
-               try
-               {
-                  if (format != null)
-                  //是否保存对文件的编辑
-                  format.Close(SaveOptions.SaveChanges);
-                  format = engine.Documents.Open(browsingFormats[index]);
-               }
-               catch (System.Runtime.InteropServices.COMException comException)
-               {
-                  errorMessage = String.Format("Unable to open format: {0}\nReason: {1}", browsingFormats[index], comException.Message);
-                  format = null;
-               }
-            }
-         }
-         // 后台执行只能调用MessageBox来显示信息
-         if (errorMessage.Length != 0)
-            Invoke(new DelegateShowMessageBox(ShowMessageBox), errorMessage);
-      }
-
-      /// <summary>
-      /// 文件加载完的时候执行
-      /// 填充打印份数默认值为1,如果存在SubString则读取出来
-      /// </summary>
-      /// <param name="sender"></param>
-      /// <param name="e"></param>
-      void formatLoader_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
-      {
-         // 确保正在操作的时候不会丢失该文件
-         lock (engine)
-         {
-            if (format != null)
-            {
-               EnableControls(true);
-               cboPrinters.SelectedItem = format.PrintSetup.PrinterName;
-               picUpdatingFormat.Visible = false;
-               lblFormatError.Visible = false;
-
-               //支持打印多份的时候
-               if (format.PrintSetup.SupportsIdenticalCopies == false)
-               {
-                  txtIdenticalCopies.Text = dataSourced;
-                  txtIdenticalCopies.ReadOnly = true;
-               }
-               else
-               {
-                  txtIdenticalCopies.Text = format.PrintSetup.IdenticalCopiesOfLabel.ToString();
-                  txtIdenticalCopies.ReadOnly = false;
-               }
-
-               //数据源是数据库的时候 
-               if (format.PrintSetup.SupportsSerializedLabels == false)
-               {
-                  txtSerializedCopies.Text = dataSourced;
-                  txtSerializedCopies.ReadOnly = true;
-               }
-               else
-               {
-                  txtSerializedCopies.Text = format.PrintSetup.NumberOfSerializedLabels.ToString();
-                  txtSerializedCopies.ReadOnly = false;
-               }
-                    //DataTable dt = new DataTable();
-                    //DataRow row = dt.NewRow();
-                    //dt.Columns.Add(new DataColumn("name"));
-                    //dt.Columns.Add(new DataColumn("sex"));
-                    //dt.Columns.Add(new DataColumn("age"));
-                    //row["name"] = "John";
-                    //row["sex"] = "Smith";
-                    //row["age"] = "18";
-                    //dt.Rows.Add(row);
-                    //MessageBox.Show(format.SubStrings[0].Name);
-                    //获取具名数据源
-                    if (format.SubStrings.Count > 0){
-                  BindingSource bindingSource = new BindingSource();
-                  bindingSource.DataSource = format.SubStrings;
-                  substringGrid.DataSource = bindingSource;
-                  substringGrid.AutoResizeColumns();
-                  lblNoSubstrings.Visible = false;
-               }else{
-                  lblNoSubstrings.Visible = true;
-               }
-               substringGrid.Invalidate();
-            }
-            else // 没有文件的时候,隐藏标签信息
-            {
-               picUpdatingFormat.Visible = false;
-               lblNoSubstrings.Visible = false;
-               lblFormatError.Visible = true;
-            }
-         }
-      }
-      #endregion
-      #endregion
-
-      #region Methods
-      /// <summary>
-      ///打开的文件无效禁用所有的控件
-      /// </summary>
-      /// <param name="enable"></param>
-      void EnableControls(bool enable)
-      {
-         txtIdenticalCopies.Enabled = enable;
-         txtSerializedCopies.Enabled = enable;
-         btnPrint.Enabled = enable;
-
-         if (!enable)
-         {
-            txtIdenticalCopies.Text = "";
-            txtSerializedCopies.Text = "";
-            substringGrid.DataSource = null;
-            lblFormatError.Visible = false;
-            lblNoSubstrings.Visible = false;
-         }
-      }
-
-      /// <summary>
-      /// 重写一个展示消息的方法
-      /// </summary>
-      /// <param name="message">展示的信息</param>
-        void ShowMessageBox(string message)
-        {
-            MessageBox.Show(this, message, appName);
-        }
-
-        #endregion
-
-        private void headBar1_MouseDown(object sender, MouseEventArgs e)
-        {
-            ReleaseCapture();
-            SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0);
-        }
-    }
-}

+ 0 - 126
UAS-MES/BarTender.resx

@@ -1,126 +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="thumbnailCacheWorker.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>17, 17</value>
-  </metadata>
-  <metadata name="folderBrowserDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>184, 17</value>
-  </metadata>
-</root>

+ 0 - 224
UAS-MES/Batch_Generation_Code.Designer.cs

@@ -1,224 +0,0 @@
-namespace 优软MES
-{
-    partial class Batch_Generation_Code
-    {
-        /// <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.Panel0 = new System.Windows.Forms.Panel();
-            this.label5 = new System.Windows.Forms.Label();
-            this.label4 = new System.Windows.Forms.Label();
-            this.label3 = new System.Windows.Forms.Label();
-            this.label2 = new System.Windows.Forms.Label();
-            this.label1 = new System.Windows.Forms.Label();
-            this.Screen_Button = new System.Windows.Forms.Button();
-            this.pi_status = new System.Windows.Forms.TextBox();
-            this.wh_code = new 优软MES.CustomControl.TextBoxWithIcon.SearchTextBox();
-            this.pr_code = new 优软MES.CustomControl.TextBoxWithIcon.SearchTextBox();
-            this.pi_inoutno = new 优软MES.CustomControl.TextBoxWithIcon.SearchTextBox();
-            this.timePickerWithCombo1 = new 优软MES.CustomControl.TimePickerWithCombo.TimePickerWithCombo();
-            this.BGC_DataGrid = new 优软MES.CustomControl.DataGrid_View.DataGridViewWithSerialNum();
-            this.Panel0.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.BGC_DataGrid)).BeginInit();
-            this.SuspendLayout();
-            // 
-            // Panel0
-            // 
-            this.Panel0.Controls.Add(this.label5);
-            this.Panel0.Controls.Add(this.label4);
-            this.Panel0.Controls.Add(this.label3);
-            this.Panel0.Controls.Add(this.label2);
-            this.Panel0.Controls.Add(this.label1);
-            this.Panel0.Controls.Add(this.Screen_Button);
-            this.Panel0.Controls.Add(this.pi_status);
-            this.Panel0.Controls.Add(this.wh_code);
-            this.Panel0.Controls.Add(this.pr_code);
-            this.Panel0.Controls.Add(this.pi_inoutno);
-            this.Panel0.Controls.Add(this.timePickerWithCombo1);
-            this.Panel0.Dock = System.Windows.Forms.DockStyle.Top;
-            this.Panel0.Location = new System.Drawing.Point(0, 0);
-            this.Panel0.Name = "Panel0";
-            this.Panel0.Size = new System.Drawing.Size(1448, 161);
-            this.Panel0.TabIndex = 12;
-            this.Panel0.Paint += new System.Windows.Forms.PaintEventHandler(this.Panel0_Paint);
-            // 
-            // label5
-            // 
-            this.label5.AutoSize = true;
-            this.label5.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label5.Location = new System.Drawing.Point(40, 122);
-            this.label5.Name = "label5";
-            this.label5.Size = new System.Drawing.Size(77, 14);
-            this.label5.TabIndex = 21;
-            this.label5.Text = "物料编号:";
-            // 
-            // label4
-            // 
-            this.label4.AutoSize = true;
-            this.label4.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label4.Location = new System.Drawing.Point(444, 124);
-            this.label4.Name = "label4";
-            this.label4.Size = new System.Drawing.Size(56, 14);
-            this.label4.TabIndex = 20;
-            this.label4.Text = "仓 库:";
-            // 
-            // label3
-            // 
-            this.label3.AutoSize = true;
-            this.label3.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label3.Location = new System.Drawing.Point(935, 75);
-            this.label3.Name = "label3";
-            this.label3.Size = new System.Drawing.Size(56, 14);
-            this.label3.TabIndex = 19;
-            this.label3.Text = "状 态:";
-            // 
-            // label2
-            // 
-            this.label2.AutoSize = true;
-            this.label2.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label2.Location = new System.Drawing.Point(444, 75);
-            this.label2.Name = "label2";
-            this.label2.Size = new System.Drawing.Size(56, 14);
-            this.label2.TabIndex = 18;
-            this.label2.Text = "日 期:";
-            // 
-            // label1
-            // 
-            this.label1.AutoSize = true;
-            this.label1.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label1.Location = new System.Drawing.Point(40, 76);
-            this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(77, 14);
-            this.label1.TabIndex = 17;
-            this.label1.Text = "入库单号:";
-            // 
-            // Screen_Button
-            // 
-            this.Screen_Button.Cursor = System.Windows.Forms.Cursors.Hand;
-            this.Screen_Button.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.Screen_Button.Image = global::优软MES.Properties.Resources._2_0btn_36;
-            this.Screen_Button.Location = new System.Drawing.Point(16, 14);
-            this.Screen_Button.Name = "Screen_Button";
-            this.Screen_Button.Size = new System.Drawing.Size(111, 33);
-            this.Screen_Button.TabIndex = 16;
-            this.Screen_Button.Text = "筛选";
-            this.Screen_Button.UseVisualStyleBackColor = true;
-            this.Screen_Button.Click += new System.EventHandler(this.Screen_Button_Click);
-            // 
-            // pi_status
-            // 
-            this.pi_status.Location = new System.Drawing.Point(1007, 74);
-            this.pi_status.Name = "pi_status";
-            this.pi_status.Size = new System.Drawing.Size(247, 21);
-            this.pi_status.TabIndex = 15;
-            // 
-            // wh_code
-            // 
-            this.wh_code.Caller = null;
-            this.wh_code.FormName = null;
-            this.wh_code.Location = new System.Drawing.Point(517, 120);
-            this.wh_code.Name = "wh_code";
-            this.wh_code.SetValueField = null;
-            this.wh_code.Size = new System.Drawing.Size(247, 21);
-            this.wh_code.TabIndex = 14;
-            // 
-            // pr_code
-            // 
-            this.pr_code.Caller = null;
-            this.pr_code.FormName = null;
-            this.pr_code.Location = new System.Drawing.Point(123, 120);
-            this.pr_code.Name = "pr_code";
-            this.pr_code.SetValueField = null;
-            this.pr_code.Size = new System.Drawing.Size(247, 21);
-            this.pr_code.TabIndex = 13;
-            // 
-            // pi_inoutno
-            // 
-            this.pi_inoutno.Caller = null;
-            this.pi_inoutno.FormName = null;
-            this.pi_inoutno.Location = new System.Drawing.Point(123, 74);
-            this.pi_inoutno.Name = "pi_inoutno";
-            this.pi_inoutno.SetValueField = null;
-            this.pi_inoutno.Size = new System.Drawing.Size(247, 21);
-            this.pi_inoutno.TabIndex = 12;
-            // 
-            // timePickerWithCombo1
-            // 
-            this.timePickerWithCombo1.BeginTime = null;
-            this.timePickerWithCombo1.BeginTimeText = null;
-            this.timePickerWithCombo1.EndTime = null;
-            this.timePickerWithCombo1.EndTimeText = null;
-            this.timePickerWithCombo1.Location = new System.Drawing.Point(517, 75);
-            this.timePickerWithCombo1.Name = "timePickerWithCombo1";
-            this.timePickerWithCombo1.Size = new System.Drawing.Size(376, 22);
-            this.timePickerWithCombo1.TabIndex = 11;
-            // 
-            // BGC_DataGrid
-            // 
-            this.BGC_DataGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
-            this.BGC_DataGrid.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.BGC_DataGrid.Location = new System.Drawing.Point(0, 161);
-            this.BGC_DataGrid.Name = "BGC_DataGrid";
-            this.BGC_DataGrid.RowTemplate.Height = 23;
-            this.BGC_DataGrid.Size = new System.Drawing.Size(1448, 444);
-            this.BGC_DataGrid.TabIndex = 13;
-            this.BGC_DataGrid.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.BGC_DataGrid_CellContentClick);
-            // 
-            // Batch_Generation_Code
-            // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
-            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.BackColor = System.Drawing.SystemColors.ControlLightLight;
-            this.ClientSize = new System.Drawing.Size(1448, 605);
-            this.Controls.Add(this.BGC_DataGrid);
-            this.Controls.Add(this.Panel0);
-            this.Name = "Batch_Generation_Code";
-            this.Text = "批量生成条码";
-            this.Load += new System.EventHandler(this.Batch_Generation_Code_Load);
-            this.SizeChanged += new System.EventHandler(this.Batch_Generation_Code_SizeChanged);
-            this.Panel0.ResumeLayout(false);
-            this.Panel0.PerformLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.BGC_DataGrid)).EndInit();
-            this.ResumeLayout(false);
-
-        }
-
-        #endregion
-        private System.Windows.Forms.Panel Panel0;
-        private System.Windows.Forms.Label label5;
-        private System.Windows.Forms.Label label4;
-        private System.Windows.Forms.Label label3;
-        private System.Windows.Forms.Label label2;
-        private System.Windows.Forms.Label label1;
-        private System.Windows.Forms.Button Screen_Button;
-        private System.Windows.Forms.TextBox pi_status;
-        private CustomControl.TextBoxWithIcon.SearchTextBox wh_code;
-        private CustomControl.TextBoxWithIcon.SearchTextBox pr_code;
-        private CustomControl.TextBoxWithIcon.SearchTextBox pi_inoutno;
-        private CustomControl.TimePickerWithCombo.TimePickerWithCombo timePickerWithCombo1;
-        private CustomControl.DataGrid_View.DataGridViewWithSerialNum BGC_DataGrid;
-    }
-}

+ 0 - 123
UAS-MES/Batch_Generation_Code.cs

@@ -1,123 +0,0 @@
-using System;
-using System.Data;
-using System.Text;
-using System.Windows.Forms;
-using 优软MES.DataOperate;
-using 优软MES.Properties;
-using 优软MES.PublicMethod;
-
-namespace 优软MES
-{
-    public partial class Batch_Generation_Code : Form
-    {
-        string caller = "BarcodeIn!Deal";
-        string formname = "Batch_Generation_Code";
-        string defaultCondition = "pi_statuscode='UNPOST' and nvl(pr_tracekind,0)>0 ";
-        string[] hiddenfield = { };
-        DataHelper dh = new DataHelper();
-
-        AutoSizeFormClass asc = new AutoSizeFormClass();
-        public Batch_Generation_Code()
-        {
-            InitializeComponent();
-            DataTable dt = dh.GetConfigureData(caller, "DataList", defaultCondition);
-            //添加图片列
-            DataGridViewImageColumn ic = new DataGridViewImageColumn();
-            ic.Image = Resources.write_15_893687707641px_1181413_easyicon_net;
-            ic.Width = 40;
-            ic.Name = "操作";
-            ic.ToolTipText = "修改当前行数据";
-            BGC_DataGrid.DataSource = dt;
-            BGC_DataGrid.Columns.Add(ic);
-            //带有DbFind的需要传递Caller 和Form的名称
-            //BaseUtil.HideField(BGC_DataGrid,hiddenfield);
-            pi_inoutno.Caller = caller;
-            pi_inoutno.FormName = formname;
-            pr_code.Caller = caller;
-            pr_code.FormName = formname;
-            wh_code.Caller = caller;
-            wh_code.FormName = formname;
-        }
-
-        private void Screen_Button_Click(object sender, EventArgs e)
-        {
-            string beginTime = timePickerWithCombo1.BeginTime;
-            string endTime = timePickerWithCombo1.EndTime;
-            //因为是自定义控件,所以需要获取控件的子控件,然后再去获取值
-            string pi_inoutno = this.pi_inoutno.Text;
-            string pr_code = this.pr_code.Text;
-            string pd_location = wh_code.Text;
-            string pi_status = this.pi_status.Text;
-            StringBuilder condition = new StringBuilder();
-            if (!string.IsNullOrWhiteSpace(beginTime) && !string.IsNullOrWhiteSpace(endTime))
-            {
-                condition.Append(" to_char(pi_date,'yyyy/MM/dd hh:mm:ss') between '" + beginTime + "' and '" + endTime + "'");
-            }
-            if (!string.IsNullOrEmpty(pi_inoutno))
-            {
-                if (condition.Length == 0)
-                {
-                    condition.Append("  pi_inoutno like '%" + pi_inoutno + "%' ");
-                }
-                else
-                {
-                    condition.Append(" and pi_inoutno like '%" + pi_inoutno + "%'");
-                }
-            }
-            if (!string.IsNullOrEmpty(pr_code))
-            {
-                if (condition.Length == 0)
-                {
-                    condition.Append("  pr_code like '%" + pr_code + "%'");
-                }
-                else
-                {
-                    condition.Append(" and pr_code like '%" + pr_code + "%'");
-                }
-            }
-            if (!string.IsNullOrEmpty(pd_location))
-            {
-                if (condition.Length == 0)
-                {
-                    condition.Append("  pd_whcode like '%" + pd_location + "%'");
-                }
-                else
-                {
-                    condition.Append(" and pd_whcode like '%" + pd_location + "%'");
-                }
-            }
-            if (condition.Length != 0)
-            {
-                BGC_DataGrid.DataSource = dh.GetConfigureData(caller, "DataList", condition.ToString());
-            }
-            else
-            {
-                BGC_DataGrid.DataSource = dh.GetConfigureData(caller, "DataList", defaultCondition);
-            }
-        }
-
-        private void BGC_DataGrid_CellContentClick(object sender, DataGridViewCellEventArgs e)
-        {
-            if (BGC_DataGrid.Columns[e.ColumnIndex].Name == "操作")
-            {
-                Batch_Generation_CodeDetail BGCD = new Batch_Generation_CodeDetail(BGC_DataGrid.Rows[e.RowIndex].Cells["ID"].Value.ToString());
-                BGCD.ShowDialog();
-            }
-        }
-
-        private void Batch_Generation_Code_Load(object sender, EventArgs e)
-        {
-            asc.controllInitializeSize(this);
-        }
-
-        private void Batch_Generation_Code_SizeChanged(object sender, EventArgs e)
-        {
-            asc.controlAutoSize(this);
-        }
-
-        private void Panel0_Paint(object sender, PaintEventArgs e)
-        {
-
-        }
-    }
-}

+ 0 - 120
UAS-MES/Batch_Generation_Code.resx

@@ -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>

+ 0 - 498
UAS-MES/Batch_Generation_CodeDetail.Designer.cs

@@ -1,498 +0,0 @@
-namespace 优软MES
-{
-    partial class Batch_Generation_CodeDetail
-    {
-        /// <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(Batch_Generation_CodeDetail));
-            this.dataGridView1 = new System.Windows.Forms.DataGridView();
-            this.Panel0 = new System.Windows.Forms.Panel();
-            this.pd_pdno = new System.Windows.Forms.Label();
-            this.label8 = new System.Windows.Forms.Label();
-            this.bi_location_label = new System.Windows.Forms.Label();
-            this.pd_inqty = new System.Windows.Forms.Label();
-            this.label13 = new System.Windows.Forms.Label();
-            this.pr_tracekind = new System.Windows.Forms.Label();
-            this.label11 = new System.Windows.Forms.Label();
-            this.GenerateCode = new System.Windows.Forms.Button();
-            this.GenerateCodeAndBoxNum = new System.Windows.Forms.Button();
-            this.PrintAllBoxNum = new System.Windows.Forms.Button();
-            this.label10 = new System.Windows.Forms.Label();
-            this.pd_qty = new System.Windows.Forms.TextBox();
-            this.PrintCode = new System.Windows.Forms.Button();
-            this.label9 = new System.Windows.Forms.Label();
-            this.bi_madedate = new System.Windows.Forms.DateTimePicker();
-            this.label7 = new System.Windows.Forms.Label();
-            this.label6 = new System.Windows.Forms.Label();
-            this.pr_unit = new System.Windows.Forms.Label();
-            this.pi_title = new System.Windows.Forms.Label();
-            this.pi_cardcode = new System.Windows.Forms.Label();
-            this.label5 = new System.Windows.Forms.Label();
-            this.label4 = new System.Windows.Forms.Label();
-            this.label3 = new System.Windows.Forms.Label();
-            this.pr_detail = new System.Windows.Forms.Label();
-            this.pd_prodcode = new System.Windows.Forms.Label();
-            this.label2 = new System.Windows.Forms.Label();
-            this.label1 = new System.Windows.Forms.Label();
-            this.pd_inoutno = new System.Windows.Forms.Label();
-            this.bi_vendbarcode = new System.Windows.Forms.TextBox();
-            this.pr_zxbzs = new System.Windows.Forms.TextBox();
-            this.lable1 = new System.Windows.Forms.Label();
-            this.bi_boxnum = new System.Windows.Forms.TextBox();
-            this.bi_location = new 优软MES.CustomControl.TextBoxWithIcon.SearchTextBox();
-          
-            this.closeButton1 = new 优软MES.CustomControl.ButtonUtil.CloseButton();
-            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
-            this.Panel0.SuspendLayout();
-            this.SuspendLayout();
-            // 
-            // dataGridView1
-            // 
-            this.dataGridView1.AllowUserToAddRows = false;
-            this.dataGridView1.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.dataGridView1.BackgroundColor = System.Drawing.SystemColors.ButtonHighlight;
-            this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
-            this.dataGridView1.Location = new System.Drawing.Point(0, 193);
-            this.dataGridView1.Name = "dataGridView1";
-            this.dataGridView1.RowTemplate.Height = 23;
-            this.dataGridView1.Size = new System.Drawing.Size(1278, 367);
-            this.dataGridView1.TabIndex = 2;
-            // 
-            // Panel0
-            // 
-            this.Panel0.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
-            | System.Windows.Forms.AnchorStyles.Right)));
-            this.Panel0.Controls.Add(this.pd_pdno);
-            this.Panel0.Controls.Add(this.label8);
-            this.Panel0.Controls.Add(this.bi_location);
-            this.Panel0.Controls.Add(this.bi_location_label);
-            this.Panel0.Controls.Add(this.pd_inqty);
-            this.Panel0.Controls.Add(this.label13);
-            this.Panel0.Controls.Add(this.pr_tracekind);
-            this.Panel0.Controls.Add(this.label11);
-       
-            this.Panel0.Controls.Add(this.closeButton1);
-            this.Panel0.Controls.Add(this.GenerateCode);
-            this.Panel0.Controls.Add(this.GenerateCodeAndBoxNum);
-            this.Panel0.Controls.Add(this.PrintAllBoxNum);
-            this.Panel0.Controls.Add(this.label10);
-            this.Panel0.Controls.Add(this.pd_qty);
-            this.Panel0.Controls.Add(this.PrintCode);
-            this.Panel0.Controls.Add(this.label9);
-            this.Panel0.Controls.Add(this.bi_madedate);
-            this.Panel0.Controls.Add(this.label7);
-            this.Panel0.Controls.Add(this.label6);
-            this.Panel0.Controls.Add(this.pr_unit);
-            this.Panel0.Controls.Add(this.pi_title);
-            this.Panel0.Controls.Add(this.pi_cardcode);
-            this.Panel0.Controls.Add(this.label5);
-            this.Panel0.Controls.Add(this.label4);
-            this.Panel0.Controls.Add(this.label3);
-            this.Panel0.Controls.Add(this.pr_detail);
-            this.Panel0.Controls.Add(this.pd_prodcode);
-            this.Panel0.Controls.Add(this.label2);
-            this.Panel0.Controls.Add(this.label1);
-            this.Panel0.Controls.Add(this.pd_inoutno);
-            this.Panel0.Controls.Add(this.bi_vendbarcode);
-            this.Panel0.Controls.Add(this.pr_zxbzs);
-            this.Panel0.Controls.Add(this.lable1);
-            this.Panel0.Controls.Add(this.bi_boxnum);
-            this.Panel0.Location = new System.Drawing.Point(0, 0);
-            this.Panel0.Name = "Panel0";
-            this.Panel0.Size = new System.Drawing.Size(1278, 187);
-            this.Panel0.TabIndex = 3;
-            // 
-            // pd_pdno
-            // 
-            this.pd_pdno.AutoSize = true;
-            this.pd_pdno.Location = new System.Drawing.Point(232, 21);
-            this.pd_pdno.Name = "pd_pdno";
-            this.pd_pdno.Size = new System.Drawing.Size(0, 12);
-            this.pd_pdno.TabIndex = 63;
-            // 
-            // label8
-            // 
-            this.label8.AutoSize = true;
-            this.label8.Location = new System.Drawing.Point(192, 20);
-            this.label8.Name = "label8";
-            this.label8.Size = new System.Drawing.Size(41, 12);
-            this.label8.TabIndex = 62;
-            this.label8.Text = "序号:";
-            // 
-            // bi_location_label
-            // 
-            this.bi_location_label.AutoSize = true;
-            this.bi_location_label.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.bi_location_label.ForeColor = System.Drawing.Color.Black;
-            this.bi_location_label.Location = new System.Drawing.Point(23, 78);
-            this.bi_location_label.Name = "bi_location_label";
-            this.bi_location_label.Size = new System.Drawing.Size(41, 12);
-            this.bi_location_label.TabIndex = 60;
-            this.bi_location_label.Text = "仓位:";
-            this.bi_location_label.Visible = false;
-            // 
-            // pd_inqty
-            // 
-            this.pd_inqty.AutoSize = true;
-            this.pd_inqty.Location = new System.Drawing.Point(254, 46);
-            this.pd_inqty.Name = "pd_inqty";
-            this.pd_inqty.Size = new System.Drawing.Size(0, 12);
-            this.pd_inqty.TabIndex = 59;
-            // 
-            // label13
-            // 
-            this.label13.AutoSize = true;
-            this.label13.Location = new System.Drawing.Point(192, 46);
-            this.label13.Name = "label13";
-            this.label13.Size = new System.Drawing.Size(65, 12);
-            this.label13.TabIndex = 58;
-            this.label13.Text = "来料总量:";
-            // 
-            // pr_tracekind
-            // 
-            this.pr_tracekind.AutoSize = true;
-            this.pr_tracekind.Location = new System.Drawing.Point(402, 46);
-            this.pr_tracekind.Name = "pr_tracekind";
-            this.pr_tracekind.Size = new System.Drawing.Size(0, 12);
-            this.pr_tracekind.TabIndex = 57;
-            // 
-            // label11
-            // 
-            this.label11.AutoSize = true;
-            this.label11.Location = new System.Drawing.Point(340, 46);
-            this.label11.Name = "label11";
-            this.label11.Size = new System.Drawing.Size(65, 12);
-            this.label11.TabIndex = 56;
-            this.label11.Text = "管控类型:";
-            // 
-            // GenerateCode
-            // 
-            this.GenerateCode.Image = global::优软MES.Properties.Resources._2_0btn_36;
-            this.GenerateCode.Location = new System.Drawing.Point(309, 146);
-            this.GenerateCode.Name = "GenerateCode";
-            this.GenerateCode.Size = new System.Drawing.Size(111, 26);
-            this.GenerateCode.TabIndex = 52;
-            this.GenerateCode.Text = "批量生成条码";
-            this.GenerateCode.UseVisualStyleBackColor = true;
-            this.GenerateCode.Click += new System.EventHandler(this.GenerateCode_Click);
-            // 
-            // GenerateCodeAndBoxNum
-            // 
-            this.GenerateCodeAndBoxNum.Image = global::优软MES.Properties.Resources._2_0btn_36;
-            this.GenerateCodeAndBoxNum.Location = new System.Drawing.Point(1144, 32);
-            this.GenerateCodeAndBoxNum.Name = "GenerateCodeAndBoxNum";
-            this.GenerateCodeAndBoxNum.Size = new System.Drawing.Size(134, 26);
-            this.GenerateCodeAndBoxNum.TabIndex = 51;
-            this.GenerateCodeAndBoxNum.Text = "批量生成条码和箱号";
-            this.GenerateCodeAndBoxNum.UseVisualStyleBackColor = true;
-            this.GenerateCodeAndBoxNum.Visible = false;
-            this.GenerateCodeAndBoxNum.Click += new System.EventHandler(this.GenerateCodeAndBoxNum_Click);
-            // 
-            // PrintAllBoxNum
-            // 
-            this.PrintAllBoxNum.Image = global::优软MES.Properties.Resources._2_0btn_36;
-            this.PrintAllBoxNum.Location = new System.Drawing.Point(1164, 7);
-            this.PrintAllBoxNum.Name = "PrintAllBoxNum";
-            this.PrintAllBoxNum.Size = new System.Drawing.Size(111, 26);
-            this.PrintAllBoxNum.TabIndex = 50;
-            this.PrintAllBoxNum.Text = "打印全部箱号";
-            this.PrintAllBoxNum.UseVisualStyleBackColor = true;
-            this.PrintAllBoxNum.Visible = false;
-            this.PrintAllBoxNum.Click += new System.EventHandler(this.PrintAllBoxNum_Click);
-            // 
-            // label10
-            // 
-            this.label10.AutoSize = true;
-            this.label10.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label10.ForeColor = System.Drawing.Color.Red;
-            this.label10.Location = new System.Drawing.Point(926, 78);
-            this.label10.Name = "label10";
-            this.label10.Size = new System.Drawing.Size(53, 12);
-            this.label10.TabIndex = 48;
-            this.label10.Text = "批总量:";
-            // 
-            // pd_qty
-            // 
-            this.pd_qty.Location = new System.Drawing.Point(1000, 75);
-            this.pd_qty.Name = "pd_qty";
-            this.pd_qty.Size = new System.Drawing.Size(117, 21);
-            this.pd_qty.TabIndex = 47;
-            // 
-            // PrintCode
-            // 
-            this.PrintCode.Image = global::优软MES.Properties.Resources._2_0btn_36;
-            this.PrintCode.Location = new System.Drawing.Point(478, 146);
-            this.PrintCode.Name = "PrintCode";
-            this.PrintCode.Size = new System.Drawing.Size(111, 26);
-            this.PrintCode.TabIndex = 46;
-            this.PrintCode.Text = "打印条码";
-            this.PrintCode.UseVisualStyleBackColor = true;
-            this.PrintCode.Click += new System.EventHandler(this.PrintCode_Click);
-            // 
-            // label9
-            // 
-            this.label9.AutoSize = true;
-            this.label9.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label9.ForeColor = System.Drawing.Color.Red;
-            this.label9.Location = new System.Drawing.Point(225, 78);
-            this.label9.Name = "label9";
-            this.label9.Size = new System.Drawing.Size(65, 12);
-            this.label9.TabIndex = 43;
-            this.label9.Text = "最小包数:";
-            // 
-            // bi_madedate
-            // 
-            this.bi_madedate.Location = new System.Drawing.Point(527, 74);
-            this.bi_madedate.Name = "bi_madedate";
-            this.bi_madedate.Size = new System.Drawing.Size(117, 21);
-            this.bi_madedate.TabIndex = 41;
-            this.bi_madedate.ValueChanged += new System.EventHandler(this.bi_prodate_ValueChanged);
-            // 
-            // label7
-            // 
-            this.label7.AutoSize = true;
-            this.label7.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label7.Location = new System.Drawing.Point(456, 78);
-            this.label7.Name = "label7";
-            this.label7.Size = new System.Drawing.Size(65, 12);
-            this.label7.TabIndex = 40;
-            this.label7.Text = "生产日期:";
-            // 
-            // label6
-            // 
-            this.label6.AutoSize = true;
-            this.label6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label6.Location = new System.Drawing.Point(690, 80);
-            this.label6.Name = "label6";
-            this.label6.Size = new System.Drawing.Size(77, 12);
-            this.label6.TabIndex = 39;
-            this.label6.Text = "供应商批号:";
-            // 
-            // pr_unit
-            // 
-            this.pr_unit.AutoSize = true;
-            this.pr_unit.Location = new System.Drawing.Point(520, 20);
-            this.pr_unit.Name = "pr_unit";
-            this.pr_unit.Size = new System.Drawing.Size(0, 12);
-            this.pr_unit.TabIndex = 38;
-            // 
-            // pi_title
-            // 
-            this.pi_title.AutoSize = true;
-            this.pi_title.Location = new System.Drawing.Point(557, 46);
-            this.pi_title.Name = "pi_title";
-            this.pi_title.Size = new System.Drawing.Size(0, 12);
-            this.pi_title.TabIndex = 37;
-            // 
-            // pi_cardcode
-            // 
-            this.pi_cardcode.AutoSize = true;
-            this.pi_cardcode.Location = new System.Drawing.Point(89, 46);
-            this.pi_cardcode.Name = "pi_cardcode";
-            this.pi_cardcode.Size = new System.Drawing.Size(0, 12);
-            this.pi_cardcode.TabIndex = 36;
-            // 
-            // label5
-            // 
-            this.label5.AutoSize = true;
-            this.label5.Location = new System.Drawing.Point(480, 46);
-            this.label5.Name = "label5";
-            this.label5.Size = new System.Drawing.Size(77, 12);
-            this.label5.TabIndex = 35;
-            this.label5.Text = "供应商名称:";
-            // 
-            // label4
-            // 
-            this.label4.AutoSize = true;
-            this.label4.Location = new System.Drawing.Point(480, 20);
-            this.label4.Name = "label4";
-            this.label4.Size = new System.Drawing.Size(41, 12);
-            this.label4.TabIndex = 34;
-            this.label4.Text = "单位:";
-            // 
-            // label3
-            // 
-            this.label3.AutoSize = true;
-            this.label3.Location = new System.Drawing.Point(19, 46);
-            this.label3.Name = "label3";
-            this.label3.Size = new System.Drawing.Size(77, 12);
-            this.label3.TabIndex = 33;
-            this.label3.Text = "供应商编号:";
-            // 
-            // pr_detail
-            // 
-            this.pr_detail.AutoSize = true;
-            this.pr_detail.Location = new System.Drawing.Point(654, 20);
-            this.pr_detail.Name = "pr_detail";
-            this.pr_detail.Size = new System.Drawing.Size(0, 12);
-            this.pr_detail.TabIndex = 32;
-            // 
-            // pd_prodcode
-            // 
-            this.pd_prodcode.AutoSize = true;
-            this.pd_prodcode.Location = new System.Drawing.Point(399, 20);
-            this.pd_prodcode.Name = "pd_prodcode";
-            this.pd_prodcode.Size = new System.Drawing.Size(0, 12);
-            this.pd_prodcode.TabIndex = 31;
-            // 
-            // label2
-            // 
-            this.label2.AutoSize = true;
-            this.label2.Location = new System.Drawing.Point(596, 20);
-            this.label2.Name = "label2";
-            this.label2.Size = new System.Drawing.Size(65, 12);
-            this.label2.TabIndex = 30;
-            this.label2.Text = "物料名称:";
-            // 
-            // label1
-            // 
-            this.label1.AutoSize = true;
-            this.label1.Location = new System.Drawing.Point(340, 20);
-            this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(65, 12);
-            this.label1.TabIndex = 29;
-            this.label1.Text = "物料编号:";
-            // 
-            // pd_inoutno
-            // 
-            this.pd_inoutno.AutoSize = true;
-            this.pd_inoutno.Location = new System.Drawing.Point(89, 21);
-            this.pd_inoutno.Name = "pd_inoutno";
-            this.pd_inoutno.Size = new System.Drawing.Size(0, 12);
-            this.pd_inoutno.TabIndex = 28;
-            // 
-            // bi_vendbarcode
-            // 
-            this.bi_vendbarcode.Location = new System.Drawing.Point(774, 75);
-            this.bi_vendbarcode.Name = "bi_vendbarcode";
-            this.bi_vendbarcode.Size = new System.Drawing.Size(117, 21);
-            this.bi_vendbarcode.TabIndex = 27;
-            // 
-            // pr_zxbzs
-            // 
-            this.pr_zxbzs.Location = new System.Drawing.Point(309, 74);
-            this.pr_zxbzs.Name = "pr_zxbzs";
-            this.pr_zxbzs.Size = new System.Drawing.Size(117, 21);
-            this.pr_zxbzs.TabIndex = 26;
-            // 
-            // lable1
-            // 
-            this.lable1.AutoSize = true;
-            this.lable1.Location = new System.Drawing.Point(19, 21);
-            this.lable1.Name = "lable1";
-            this.lable1.Size = new System.Drawing.Size(77, 12);
-            this.lable1.TabIndex = 25;
-            this.lable1.Text = "出入库单号:";
-            // 
-            // bi_boxnum
-            // 
-            this.bi_boxnum.Location = new System.Drawing.Point(1037, 11);
-            this.bi_boxnum.Name = "bi_boxnum";
-            this.bi_boxnum.Size = new System.Drawing.Size(121, 21);
-            this.bi_boxnum.TabIndex = 24;
-            this.bi_boxnum.Visible = false;
-            // 
-            // bi_location
-            // 
-            this.bi_location.Caller = null;
-            this.bi_location.FormName = null;
-            this.bi_location.Location = new System.Drawing.Point(86, 74);
-            this.bi_location.Name = "bi_location";
-            this.bi_location.Size = new System.Drawing.Size(117, 21);
-            this.bi_location.TabIndex = 61;
-            this.bi_location.Visible = false;
-        
-            // 
-            // closeButton1
-            // 
-            this.closeButton1.Image = ((System.Drawing.Image)(resources.GetObject("closeButton1.Image")));
-            this.closeButton1.Location = new System.Drawing.Point(920, 146);
-            this.closeButton1.Name = "closeButton1";
-            this.closeButton1.Size = new System.Drawing.Size(80, 26);
-            this.closeButton1.TabIndex = 53;
-            this.closeButton1.Text = "关闭";
-            this.closeButton1.UseVisualStyleBackColor = true;
-            // 
-            // Batch_Generation_CodeDetail
-            // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
-            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.BackColor = System.Drawing.SystemColors.ControlLightLight;
-            this.ClientSize = new System.Drawing.Size(1278, 560);
-            this.Controls.Add(this.Panel0);
-            this.Controls.Add(this.dataGridView1);
-            this.Name = "Batch_Generation_CodeDetail";
-            this.Text = "条码信息维护";
-            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
-            this.Panel0.ResumeLayout(false);
-            this.Panel0.PerformLayout();
-            this.ResumeLayout(false);
-
-        }
-
-        #endregion
-        private System.Windows.Forms.DataGridView dataGridView1;
-        private System.Windows.Forms.Panel Panel0;
-        private System.Windows.Forms.Label label9;
-        private System.Windows.Forms.DateTimePicker bi_madedate;
-        private System.Windows.Forms.Label label7;
-        private System.Windows.Forms.Label label6;
-        private System.Windows.Forms.Label pr_unit;
-        private System.Windows.Forms.Label pi_title;
-        private System.Windows.Forms.Label pi_cardcode;
-        private System.Windows.Forms.Label label5;
-        private System.Windows.Forms.Label label4;
-        private System.Windows.Forms.Label label3;
-        private System.Windows.Forms.Label pr_detail;
-        private System.Windows.Forms.Label pd_prodcode;
-        private System.Windows.Forms.Label label2;
-        private System.Windows.Forms.Label label1;
-        private System.Windows.Forms.Label pd_inoutno;
-        private System.Windows.Forms.TextBox bi_vendbarcode;
-        private System.Windows.Forms.TextBox pr_zxbzs;
-        private System.Windows.Forms.Label lable1;
-        private System.Windows.Forms.TextBox bi_boxnum;
-        private System.Windows.Forms.Button PrintCode;
-        private System.Windows.Forms.TextBox pd_qty;
-        private System.Windows.Forms.Label label10;
-        private System.Windows.Forms.Button GenerateCode;
-        private System.Windows.Forms.Button GenerateCodeAndBoxNum;
-        private System.Windows.Forms.Button PrintAllBoxNum;
-        private CustomControl.ButtonUtil.CloseButton closeButton1;
-     
-        private System.Windows.Forms.Label label11;
-        private System.Windows.Forms.Label pr_tracekind;
-        private System.Windows.Forms.Label pd_inqty;
-        private System.Windows.Forms.Label label13;
-        private System.Windows.Forms.Label bi_location_label;
-        private CustomControl.TextBoxWithIcon.SearchTextBox bi_location;
-        private System.Windows.Forms.Label label8;
-        private System.Windows.Forms.Label pd_pdno;
-    }
-}

+ 0 - 482
UAS-MES/Batch_Generation_CodeDetail.cs

@@ -1,482 +0,0 @@
-using NPOI.SS.Util;
-using System;
-using System.Collections.Generic;
-using System.Data;
-using System.Text;
-using System.Windows.Forms;
-using 优软MES.DataOperate;
-using 优软MES.PublicMethod;
-
-namespace 优软MES
-{
-    public partial class Batch_Generation_CodeDetail : Form
-    {
-        DataHelper dh = new DataHelper();
-        DataTable dt = new DataTable();
-        //string caller = "ProdInOut!BarcodeIn";
-        string PD_ID;
-        string PI_ID;
-        string[] field = { "pd_inoutno","pd_pdno","pd_prodcode","pr_detail","pr_unit","pd_inqty", "pr_tracekind" ,"pi_cardcode","pi_title", "pd_inqty-nvl(pd_barcodeinqty,0)" , "pr_zxbzs","pr_unit" };
-        string table = "prodiodetail left join product on pr_code=pd_prodcode  left join prodinout on pi_id=pd_piid";
-        //明细行需要隐藏的字段
-        string[] hiddenfield = {"bi_pdid","bi_pdaget"};
-        string[] EditAbleField = {"bi_location","bi_madedate", "bi_vendbarcode","bi_inqty" };
-        public Batch_Generation_CodeDetail()
-        {
-            InitializeComponent();
-        }
-
-        public Batch_Generation_CodeDetail(string pd_id) {
-            
-            if (pd_id != null && pd_id != "")
-            {
-                InitializeComponent();
-                //设置只能输入数字的TextBox的委托事件
-                NumOnly();
-                PD_ID = pd_id;
-                //初始的时候设置timepicker为空
-                bi_madedate.Format = DateTimePickerFormat.Custom;
-                bi_madedate.CustomFormat = " ";
-
-                string sql = BaseUtil.AddField(field);
-                sql = "select " + sql + " from "+table+" where pd_id=" + pd_id;
-
-                dt = (DataTable)dh.ExecuteSql(sql, "select");
-                //加载数据
-                LoadData();
-                //通过控件名称和列的描述相同时赋值,由于表格上部分的控件是装在一个panel里面的,所以需要通过controls[0]从panel中获取
-                BaseUtil.SetFormValue(Controls["Panel0"].Controls, dt);
-                //从configs表中取数据
-                string Data = dh.GetConfig("UseLocationOrNot", "BarCodeSetting").ToString();
-                //如果配置的数据为1或者Y,说明启用这个配置
-                if (Data == "1" || Data == "Y")
-                {
-                    bi_location.Visible = true;
-                    bi_location_label.Visible = true;
-                }
-                BaseUtil.HideField(dataGridView1, hiddenfield);
-                BaseUtil.SetDataGridViewReadOnly(dataGridView1,EditAbleField);
-                //手动转换批总量
-                ValueTransform();
-                
-              
-            }
-        }
-
-        private void dateTimePicker1_ValueChanged(object sender, System.EventArgs e)
-        {
-            bi_madedate.Format = DateTimePickerFormat.Long;
-        }
-
-       
-
-        private void bi_prodate_ValueChanged(object sender, EventArgs e)
-        {
-            bi_madedate.Format = DateTimePickerFormat.Long;
-        }
-
-        private void GenerateCode_Click(object sender, EventArgs e)
-        {
-            //检查生成条码之前的逻辑
-            CheckBeforeGenCode();
-            //计算打包的数量num表示包数
-            //restqty表示不足整包之后的数量,单独作为一个包
-            int num = int.Parse(pd_qty.Text) / int.Parse(pr_zxbzs.Text);
-            int restqty = int.Parse(pd_qty.Text) - (num * int.Parse(pr_zxbzs.Text));
-            string ve_id = GetVendorID(PD_ID);
-            string pr_code = dh.getFieldDataByCondition("prodiodetail", "pd_prodcode","pd_id="+PD_ID).ToString();
-            //如果用为未选择日期则将日期置为空,否则选择日期的值
-            string madedate = bi_madedate.Text;
-            if (madedate.Trim() == "")
-            {
-                madedate = null;
-            }
-            else {
-                madedate = bi_madedate.Value.ToString();
-            }
-            //用于拼接SQl的StringBulider对象
-            StringBuilder sql = new StringBuilder();
-            //用于存放条码的数组
-            string[] barcode = new string[num];
-            for (int i = 0; i < num; i++)
-            {
-                barcode[i] = BarcodeMethod(pr_code, ve_id);
-            }
-            BaseUtil.CleanDataTable(dt);
-            //通过pd_id查询出需要插入的数据
-            dt = dh.getFieldsDataByCondition("prodiodetail left join prodinout on pd_piid=pi_id", new string[] { "pd_pdno", "pi_class", "pd_prodmadedate", "pi_date", "pd_whcode", "pi_whcode" }, "pd_id=" + PD_ID);
-            object pd_pdno = dt.Rows[0]["pd_pdno"];
-            object pi_class = dt.Rows[0]["pi_class"];
-            object pi_date = dt.Rows[0]["pi_date"];
-            object pd_prodmadedate = dt.Rows[0]["pd_prodmadedate"];
-            object pi_whcode = dt.Rows[0]["pi_whcode"];
-            object pd_whcode = dt.Rows[0]["pd_whcode"];
-            sql.Append("insert into barcodeio (");
-            sql.Append("bi_id,bi_piid,bi_pdid,bi_pdno,bi_inoutno,bi_piclass,bi_barcode,bi_prodcode,bi_whcode,bi_inqty,");
-            sql.Append("bi_madedate,bi_vendbarcode,bi_location,bi_status,bi_printstatus)");
-            sql.Append(" values (barcodeio_seq.nextval," + PI_ID + "," + PD_ID + ",'" + pd_pdno + "','" + pd_inoutno.Text + "','" + pi_class + "',:barcode,'" + pd_prodcode.Text + "',nvl('" + pd_whcode + "','" + pi_whcode + "'),'");
-            sql.Append(pr_zxbzs.Text + "',nvl( to_date('" + madedate + "', 'YYYY-MM-DD HH24:MI:SS'),to_date('" + pd_prodmadedate + "', 'YYYY-MM-DD HH24:MI:SS')),'" + bi_vendbarcode.Text + "','仓位', 0, 0)");
-            if (num > 0) {    
-                dh.BatchInsert(sql.ToString(),new string[] {"barcode"},barcode);
-            }
-            //有余数的话单独生成一条
-            if (restqty != 0) {
-                dh.BatchInsert(sql.ToString(), new string[] { "barcode" },new string[] { BarcodeMethod(pr_code, ve_id) } ); 
-            }
-            MessageBox.Show("生成条码成功");
-            LoadData();
-        }
-
-        private  static string lpad(int length, string number)
-        {            
-            while (number.Length < length)
-            {
-                number = "0" + number;
-            }
-            number = number.Substring(number.Length - length,length);
-            return number;
-        }
-
-        //生成条码的方法
-        public static string BarcodeMethod(string pr_code, string ve_id) {
-            StringBuilder code = new StringBuilder();
-            DataTable dt1 = new DataTable();
-            DataHelper dh = new DataHelper();
-            string date = "0";
-            dt1 =(DataTable) dh.ExecuteSql("select pr_id,pr_tracekind,pr_exbarcode from product where pr_code='"+pr_code+"'","select");
-            if (dt1.Rows.Count > 0) {
-                if (dt1.Rows[0]["pr_tracekind"].ToString() != "") {
-                    if (int.Parse(dt1.Rows[0]["pr_tracekind"].ToString()) == 2)
-                    { //批量管控
-                        string pr_id = dt1.Rows[0]["pr_id"].ToString();
-                        //清掉dt1的数据和结构
-                        BaseUtil.CleanDataTable(dt1);
-                        string[] field = { "bs_lenprid", "bs_datestr", "bs_lennum", "bs_maxnum", "bs_maxdate", "bs_lenveid" };
-                        dt1 = dh.getFieldsDataByCondition("barcodeSet", field, "bs_type='BATCH'");
-                        code.Append(lpad(int.Parse(dt1.Rows[0][0].ToString()), pr_id));
-                        code.Append(lpad(int.Parse(dt1.Rows[0][5].ToString()), ve_id));
-                        if (dt1.Rows[0][1].Equals("YYMMDD"))
-                        {
-                            SimpleDateFormat YMD = new SimpleDateFormat("yyMMdd");
-                            date = YMD.Format(new DateTime());
-                        }
-                        else if (dt1.Rows[0][1].Equals("YYMM"))
-                        {
-                            SimpleDateFormat YM = new SimpleDateFormat("yyMM");
-                            date = YM.Format(new DateTime());
-                        }
-                        else if (dt1.Rows[0][1].Equals("MMDD"))
-                        {
-                            SimpleDateFormat MD = new SimpleDateFormat("MMdd");
-                            date = MD.Format(new DateTime());
-                        }
-                        code.Append(date);
-                        dh.UpdateByCondition("barcodeSet", "bs_maxdate='" + date + "'", "bs_type='BATCH'");
-                        if (!("").Equals(dt1.Rows[0][4]) && null != dt1.Rows[0][4] && (!date.Equals("0")) && (int.Parse(dt1.Rows[0][4].ToString()) > int.Parse(date)))
-                        {
-                            code.Append(lpad(int.Parse(dt1.Rows[0][2].ToString()), "1"));// 流水重新开始
-                            dh.UpdateByCondition("barcodeSet", "bs_maxnum=2", "bs_type='BATCH'");
-                        }
-                        else
-                        {
-                            code.Append(lpad(int.Parse(dt1.Rows[0][2].ToString()), dt1.Rows[0][3].ToString()));// 当前流水号
-                            dh.UpdateByCondition("barcodeSet", "bs_maxnum=bs_maxnum+1", "bs_type='BATCH'");// 流水号增加1
-                        }
-                    }
-                    else
-                    {
-                        BaseUtil.ShowError("管控类型错误!");
-                    }
-                }
-            }
-            return code.ToString();
-        }
-
-
-        public static string outboxMethod(string pr_id, string kind) {
-
-            StringBuilder code = new StringBuilder();
-            DataHelper dh = new DataHelper();
-            object pr_kind= dh.getFieldDataByCondition("product", "pr_tracekind", "pr_id=" + pr_id );
-            if (pr_kind.ToString()!="") {
-                if ((kind.Equals("1") && pr_kind.ToString() == "1") || (kind.Equals("2") && pr_kind.ToString() == "2"))
-                {// 单间管控或者批管控
-                    DataTable dt= dh.getFieldsDataByCondition("barcodeSet",new string[] { "bs_id ,bs_lenprid,bs_lennum,bs_maxnum" } ,"bs_type='PACK'");
-                    if (dt.Rows.Count>0)
-                    {
-                        code.Append(lpad(int.Parse(dt.Rows[0]["bs_lenprid"].ToString()), pr_id));// PR_ID物料ID的长度
-                        code.Append(lpad(int.Parse(dt.Rows[0]["bs_lennum"].ToString()),dt.Rows[0]["bs_maxnum"].ToString()));// 当前流水号
-                        dh.UpdateByCondition("barcodeSet", "bs_maxnum=bs_maxnum+1", "bs_type='PACK' and  bs_id=" + dt.Rows[0]["bs_id"]);// 流水号增加1
-                    }
-                    else
-                    {
-                        BaseUtil.ShowError("未定义包装箱号产生规则或规则为审核");
-                    }
-                }
-                else
-                {
-                   BaseUtil.ShowError("管控类型错误!");
-                }
-            }
-            return code.ToString();
-        }
-
-        private void PrintCode_Click(object sender, EventArgs e)
-        {
-            
-        }
-
-        private void PrintAllBoxNum_Click(object sender, EventArgs e)
-        {
-
-        }
-
-        private void deleteDetailButton1_Click(object sender, EventArgs e)
-        {
-
-        }
-
-        private void saveButton1_Click(object sender, EventArgs e)
-        {
-            DataTable dt = (DataTable)dataGridView1.DataSource;
-            dh.UpDateTableByCondition(dt.GetChanges(), "barcodeio", "bi_id");
-        }
-
-        private void deleteDetailButton1_Click_1(object sender, EventArgs e)
-        {
-            //新建一个和grid长度一样的数组
-            string pd_status = dh.getFieldDataByCondition("prodiodetail", "pd_status", "pd_id=" +PD_ID).ToString();
-            if (pd_status=="99") {
-                BaseUtil.ShowError("单据已过账,不允许删除明细");
-            }
-            string[] deleteID = new string[dataGridView1.Rows.Count];
-            foreach (DataGridViewRow dgvc in dataGridView1.Rows) {
-                deleteID[dataGridView1.Rows.IndexOf(dgvc)] = dgvc.Cells["ID"].Value.ToString();
-            }
-
-            string bi_pdid=dh.getFieldDataByCondition("barcodeio", "bi_pdid", "bi_id=" + deleteID[0]).ToString();
-            //删除PackageDetail表信息
-            dh.ExecuteSql("delete from packagedetail where pd_outboxcode in (select bi_outboxcode from barcodeio where bi_pdid=" + bi_pdid + ")", "delete");
-            //删除Package表的信息
-            dh.ExecuteSql("delete from package where pa_outboxcode in (select bi_outboxcode from barcodeio where bi_pdid=" + bi_pdid + ")", "delete");
-            //删除BarcodeIO表信息
-            dh.DeleteDataByID("barcodeio", "bi_id", deleteID);
-            MessageBox.Show("清除明细成功");
-            LoadData();
-        }
-
-        /// <summary>
-        /// 生成条码和箱号按钮
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void GenerateCodeAndBoxNum_Click(object sender, EventArgs e)
-        {
-            //调用生成条码的方法
-            CheckBeforeGenCode();
-            if (bi_boxnum.Text == "")
-            {
-                BaseUtil.ShowError("箱内总数必须填写");
-            }
-            else
-            {
-                int rest = int.Parse(bi_boxnum.Text) % int.Parse(pr_zxbzs.Text);
-                if (rest != 0)
-                {
-                    BaseUtil.ShowError("箱内总是必须是最小包装量的整数倍");
-                }
-            }
-            string ve_id = GetVendorID(PD_ID);
-            DataTable dt = dh.getFieldsDataByCondition("prodiodetail", new string[] { "pd_prodcode,pd_prodid" }, "pd_id=" + PD_ID);
-            string pr_code = dt.Rows[0]["pd_prodcode"].ToString();
-            string pr_id = dt.Rows[0]["pd_prodid"].ToString();
-            //箱内件数
-            int numinpack = int.Parse(bi_boxnum.Text) / int.Parse(pr_zxbzs.Text);
-            //装箱的数量和条码的数量
-            int packnum = int.Parse(pd_qty.Text) / int.Parse(bi_boxnum.Text);
-            int codenum =   int.Parse(pd_qty.Text) / int.Parse(pr_zxbzs.Text);
-            //是否有剩余的最小包
-            int restcode = int.Parse(pd_qty.Text) -(codenum* int.Parse(pr_zxbzs.Text)) ;
-            //是否有剩余的尾箱
-            int restpack = int.Parse(pd_qty.Text) -(packnum * int.Parse(bi_boxnum.Text));
-            //记录箱号的数组
-            
-            //根据pd_id选出需要插入的数据
-            dt = dh.getFieldsDataByCondition("prodiodetail left join prodinout on pd_piid=pi_id", new string[] { "pd_pdno", "pi_class", "pd_prodmadedate", "pi_date", "pd_whcode", "pi_whcode" }, "pd_id=" + PD_ID);
-            object pd_pdno = dt.Rows[0]["pd_pdno"];
-            object pi_class = dt.Rows[0]["pi_class"];
-            object pi_date = dt.Rows[0]["pi_date"];
-            object pd_prodmadedate = dt.Rows[0]["pd_prodmadedate"];
-            object pi_whcode = dt.Rows[0]["pi_whcode"];
-            object pd_whcode = dt.Rows[0]["pd_whcode"];
-            string madedate = bi_madedate.Text;
-            if (madedate.Trim() == "")
-            {
-                madedate = null;
-            }
-            else
-            {
-                madedate = bi_madedate.Value.ToString();
-            }
-            StringBuilder sql = new StringBuilder();
-            //
-           
-            //如果剩余的箱数量大于0,则箱号+1
-            if (restpack != 0) {
-                packnum = packnum + 1;
-            }
-            string[] pa_id = new string[packnum];
-            string[] packNum = new string[packnum];
-            if (packnum > 0)
-            {
-                for (int i = 0; i < packnum; i++)
-                {      
-                    packNum[i] = outboxMethod(pr_id, "2");
-                    //通过序列获取到ID    
-                    pa_id[i] = dh.GetSEQ("PACKAGE_SEQ");
-                }
-                sql.Append("insert into package (");
-                sql.Append("pa_id,pa_outboxcode,pa_prodcode, pa_packdate,pa_packageqty, pa_totalqty, pa_status, pa_indate)");
-                sql.Append("values (:pa_id,:packnum,'" + pr_code + "', sysdate," + numinpack + "," + bi_boxnum.Text + ",'0',nvl( to_date('" + madedate + "', 'YYYY-MM-DD HH24:MI:SS'),to_date('" + pd_prodmadedate + "', 'YYYY-MM-DD HH24:MI:SS')))");
-                dh.BatchInsert(sql.ToString(), new string[] { "pa_id", "packnum" }, pa_id, packNum);
-            }
-            sql.Clear();
-            //记录条码号的数组
-           
-            //如果有余数则条码数量+1
-            if (restcode != 0){
-                codenum=codenum+1;
-            }
-            string[] codeNum = new string[codenum];
-            string[] bi_outboxid = new string[codenum];
-            string[] bi_outboxcode = new string[codenum];
-            if (codenum > 0){
-                for (int i = 0; i < codenum; i++)
-                {
-                    codeNum[i] = BarcodeMethod(pr_code, ve_id);
-                }
-                //包装数-1*箱内数量,先处理整箱的
-                int k = 0;
-                for (int i = 0; i < packnum-1; i++) {
-                    for (int j = 0; j < numinpack; j++) {
-                        bi_outboxid[k] = pa_id[i];
-                        bi_outboxcode[k] = packNum[i];
-                        k=k+1;
-                    }
-                }
-            
-                //最后单独处理剩余的一箱的条码,不论整箱还是有零件都可以
-                //最后一箱的条码数量
-                int remain = codenum - k;
-                for (int i = 0; i <remain; i++) {
-                    bi_outboxid[k] = pa_id[pa_id.Length - 1];
-                    bi_outboxcode[k] = packNum[packNum.Length - 1];
-                    k=k+1;
-                }
-          
-                //每个条码需要存对应的箱号的ID
-                sql.Append("insert into barcodeio (");
-                sql.Append("bi_id,bi_piid,bi_pdid,bi_pdno,bi_inoutno,bi_piclass,bi_barcode,bi_prodcode,bi_whcode,bi_inqty,");
-                sql.Append("bi_madedate,bi_vendbarcode,bi_location,bi_status,bi_printstatus,bi_outboxcode,bi_outboxid)");
-                sql.Append(" values (barcodeio_seq.nextval," + PI_ID + "," + PD_ID + ",'" + pd_pdno + "','" + pd_inoutno.Text + "','" + pi_class + "',:barcode,'" + pd_prodcode.Text + "',nvl('" + pd_whcode + "','" + pi_whcode + "'),'");
-                sql.Append(pr_zxbzs.Text + "',nvl( to_date('" + madedate + "', 'YYYY-MM-DD HH24:MI:SS'),to_date('" + pd_prodmadedate + "', 'YYYY-MM-DD HH24:MI:SS')),'" + bi_vendbarcode.Text + "','仓位',0,0,:packcode,:pa_id)");
-                dh.BatchInsert(sql.ToString(), new string[] { "barcode","packcode","pa_id" },codeNum, bi_outboxcode,bi_outboxid);
-
-                  
-            }
-
-
-            sql.Clear();
-            //insert into packageDetail(pd_id, pd_paid, pd_outboxcode, pd_barcode, pd_innerqty)values(PACKAGEDETAIL_SEQ, pd_id, 箱号, 条码号, 条码数量);
-            sql.Append("insert into packageDetail(pd_id, pd_paid, pd_outboxcode, pd_barcode, pd_innerqty) values (");
-            sql.Append("PACKAGEDETAIL_SEQ.nextval,:pd_paid,:packcode,:barcode,"+pd_qty.Text+")");
-            dh.BatchInsert(sql.ToString(), new string[] { "pd_paid","packcode", "barcode" },bi_outboxid,bi_outboxcode, codeNum);
-            MessageBox.Show("成功生成条码和箱号");
-            LoadData();
-        }
-
-        /// <summary>
-        /// 通过pd_id获取供应商的ID
-        /// </summary>
-        /// <param name="pd_id"></param>
-        /// <returns></returns>
-        public string GetVendorID(string pd_id) {
-            DataHelper dh = new DataHelper();
-            string pi_id=dh.getFieldDataByCondition("prodiodetail", "pd_piid", "pd_id=" + pd_id).ToString() ;
-            PI_ID = pi_id;
-            object ve_id=dh.getFieldDataByCondition("Vendor left join ProdInOut on pi_cardcode=ve_code", "ve_id", "pi_id=" + pi_id);
-            if (ve_id != null)
-            {
-                return ve_id.ToString();
-            }
-            else {
-                return "0";
-            }
-        }
-
-        private void ValueTransform() {
-           
-            switch (pr_tracekind.Text) {
-                case "":
-                    pr_tracekind.Text = "不管控";
-                    break;
-                case "0":
-                    pr_tracekind.Text = "不管控";
-                    break;
-                case "1":
-                    pr_tracekind.Text = "单间管控";
-                    break;
-                case "2":
-                    pr_tracekind.Text = "批量管控";
-                    break;
-            }
-        }
-
-        private void CheckBeforeGenCode() {
-            if (pr_tracekind.Text == "单件管控")
-            {
-                BaseUtil.ShowError("管控类型为单件管控时不允许生成条码");
-            }
-            if (pd_qty.Text != "")
-            {
-                if (!(int.Parse(pd_qty.Text) > 0) || !(int.Parse(pr_zxbzs.Text) > 0))
-                {
-                    BaseUtil.ShowError("批总量,最小包装数必须大于0");
-                }
-                if (int.Parse(pd_qty.Text) > int.Parse(pd_inqty.Text))
-                {
-                    BaseUtil.ShowError("批总量不允许大于来料总量!");
-                }
-            }
-            else
-            {
-                BaseUtil.ShowError("请填写批总量!");
-            }
-
-            //判断是否已经入库,状态为99表示已经入库
-            if (dh.getFieldDataByCondition("prodiodetail", "pd_status", "pd_id=" + PD_ID).ToString().Equals("99"))
-            {
-                BaseUtil.ShowError("该批次已入库,不允许生成条码");
-            }
-            object checknum = dh.getFieldDataByCondition("barcodeio", "sum(bi_inqty)", "bi_pdid=" + PD_ID);
-            if (checknum != null && checknum.ToString() != "")
-            {
-                if (int.Parse(pd_qty.Text) > int.Parse(pd_inqty.Text) - int.Parse(checknum.ToString()))
-                {
-                    BaseUtil.ShowError("批总量不能大于未生成条码数");
-                }
-            }
-        }
-
-        private void LoadData() {
-            dataGridView1.DataSource = dh.GetConfigureData("ProdInOut!BarcodeIn", "detailgrid", "bi_pdid=" + PD_ID);
-        }
-
-        private void NumOnly()
-        {
-            bi_boxnum.KeyPress += BaseUtil.NumOnly;
-            pr_zxbzs.KeyPress += BaseUtil.NumOnly;
-            pd_qty.KeyPress += BaseUtil.NumOnly;
-        }
-    }
-}

+ 0 - 400
UAS-MES/Batch_Generation_CodeDetail.resx

@@ -1,400 +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="deleteDetailButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
-    <value>
-        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
-</value>
-  </data>
-  <data name="saveButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
-    <value>
-        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
-</value>
-  </data>
-  <data name="closeButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
-    <value>
-        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
-</value>
-  </data>
-</root>

+ 0 - 232
UAS-MES/Batch_In.Designer.cs

@@ -1,232 +0,0 @@
-namespace 优软MES
-{
-    partial class Batch_In
-    {
-        /// <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.Panel0 = new System.Windows.Forms.Panel();
-            this.Confirm_In = new System.Windows.Forms.Button();
-            this.label5 = new System.Windows.Forms.Label();
-            this.label4 = new System.Windows.Forms.Label();
-            this.label3 = new System.Windows.Forms.Label();
-            this.label2 = new System.Windows.Forms.Label();
-            this.label1 = new System.Windows.Forms.Label();
-            this.Screen_Button = new System.Windows.Forms.Button();
-            this.pi_status = new System.Windows.Forms.TextBox();
-            this.wh_code = new 优软MES.CustomControl.TextBoxWithIcon.SearchTextBox();
-            this.pr_code = new 优软MES.CustomControl.TextBoxWithIcon.SearchTextBox();
-            this.pi_inoutno = new 优软MES.CustomControl.TextBoxWithIcon.SearchTextBox();
-            this.timePickerWithCombo1 = new 优软MES.CustomControl.TimePickerWithCombo.TimePickerWithCombo();
-            this.BI_DataGrid = new 优软MES.CustomControl.DataGrid_View.DataGridViewWithCheckBox();
-            this.Panel0.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.BI_DataGrid)).BeginInit();
-            this.SuspendLayout();
-            // 
-            // Panel0
-            // 
-            this.Panel0.Controls.Add(this.Confirm_In);
-            this.Panel0.Controls.Add(this.label5);
-            this.Panel0.Controls.Add(this.label4);
-            this.Panel0.Controls.Add(this.label3);
-            this.Panel0.Controls.Add(this.label2);
-            this.Panel0.Controls.Add(this.label1);
-            this.Panel0.Controls.Add(this.Screen_Button);
-            this.Panel0.Controls.Add(this.pi_status);
-            this.Panel0.Controls.Add(this.wh_code);
-            this.Panel0.Controls.Add(this.pr_code);
-            this.Panel0.Controls.Add(this.pi_inoutno);
-            this.Panel0.Controls.Add(this.timePickerWithCombo1);
-            this.Panel0.Dock = System.Windows.Forms.DockStyle.Top;
-            this.Panel0.Location = new System.Drawing.Point(0, 0);
-            this.Panel0.Name = "Panel0";
-            this.Panel0.Size = new System.Drawing.Size(1308, 161);
-            this.Panel0.TabIndex = 14;
-            // 
-            // Confirm_In
-            // 
-            this.Confirm_In.Cursor = System.Windows.Forms.Cursors.Hand;
-            this.Confirm_In.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.Confirm_In.Image = global::优软MES.Properties.Resources._2_0btn_36;
-            this.Confirm_In.Location = new System.Drawing.Point(1143, 14);
-            this.Confirm_In.Name = "Confirm_In";
-            this.Confirm_In.Size = new System.Drawing.Size(111, 33);
-            this.Confirm_In.TabIndex = 22;
-            this.Confirm_In.Text = "确认入库";
-            this.Confirm_In.UseVisualStyleBackColor = true;
-            this.Confirm_In.Click += new System.EventHandler(this.Confirm_In_Click);
-            // 
-            // label5
-            // 
-            this.label5.AutoSize = true;
-            this.label5.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label5.Location = new System.Drawing.Point(40, 122);
-            this.label5.Name = "label5";
-            this.label5.Size = new System.Drawing.Size(77, 14);
-            this.label5.TabIndex = 21;
-            this.label5.Text = "物料编号:";
-            // 
-            // label4
-            // 
-            this.label4.AutoSize = true;
-            this.label4.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label4.Location = new System.Drawing.Point(444, 124);
-            this.label4.Name = "label4";
-            this.label4.Size = new System.Drawing.Size(56, 14);
-            this.label4.TabIndex = 20;
-            this.label4.Text = "仓 库:";
-            // 
-            // label3
-            // 
-            this.label3.AutoSize = true;
-            this.label3.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label3.Location = new System.Drawing.Point(935, 75);
-            this.label3.Name = "label3";
-            this.label3.Size = new System.Drawing.Size(56, 14);
-            this.label3.TabIndex = 19;
-            this.label3.Text = "状 态:";
-            // 
-            // label2
-            // 
-            this.label2.AutoSize = true;
-            this.label2.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label2.Location = new System.Drawing.Point(444, 75);
-            this.label2.Name = "label2";
-            this.label2.Size = new System.Drawing.Size(56, 14);
-            this.label2.TabIndex = 18;
-            this.label2.Text = "日 期:";
-            // 
-            // label1
-            // 
-            this.label1.AutoSize = true;
-            this.label1.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label1.Location = new System.Drawing.Point(40, 76);
-            this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(77, 14);
-            this.label1.TabIndex = 17;
-            this.label1.Text = "入库单号:";
-            // 
-            // Screen_Button
-            // 
-            this.Screen_Button.Cursor = System.Windows.Forms.Cursors.Hand;
-            this.Screen_Button.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.Screen_Button.Image = global::优软MES.Properties.Resources._2_0btn_36;
-            this.Screen_Button.Location = new System.Drawing.Point(16, 14);
-            this.Screen_Button.Name = "Screen_Button";
-            this.Screen_Button.Size = new System.Drawing.Size(111, 33);
-            this.Screen_Button.TabIndex = 16;
-            this.Screen_Button.Text = "筛选";
-            this.Screen_Button.UseVisualStyleBackColor = true;
-            this.Screen_Button.Click += new System.EventHandler(this.Screen_Button_Click);
-            // 
-            // pi_status
-            // 
-            this.pi_status.Location = new System.Drawing.Point(1007, 74);
-            this.pi_status.Name = "pi_status";
-            this.pi_status.Size = new System.Drawing.Size(247, 21);
-            this.pi_status.TabIndex = 15;
-            // 
-            // wh_code
-            // 
-            this.wh_code.Caller = null;
-            this.wh_code.FormName = null;
-            this.wh_code.Location = new System.Drawing.Point(517, 120);
-            this.wh_code.Name = "wh_code";
-            this.wh_code.Size = new System.Drawing.Size(247, 21);
-            this.wh_code.TabIndex = 14;
-            // 
-            // pr_code
-            // 
-            this.pr_code.Caller = null;
-            this.pr_code.FormName = null;
-            this.pr_code.Location = new System.Drawing.Point(123, 120);
-            this.pr_code.Name = "pr_code";
-            this.pr_code.Size = new System.Drawing.Size(247, 21);
-            this.pr_code.TabIndex = 13;
-            // 
-            // pi_inoutno
-            // 
-            this.pi_inoutno.Caller = null;
-            this.pi_inoutno.FormName = null;
-            this.pi_inoutno.Location = new System.Drawing.Point(123, 74);
-            this.pi_inoutno.Name = "pi_inoutno";
-            this.pi_inoutno.Size = new System.Drawing.Size(247, 21);
-            this.pi_inoutno.TabIndex = 12;
-            // 
-            // timePickerWithCombo1
-            // 
-            this.timePickerWithCombo1.BeginTime = null;
-            this.timePickerWithCombo1.BeginTimeText = null;
-            this.timePickerWithCombo1.EndTime = null;
-            this.timePickerWithCombo1.EndTimeText = null;
-            this.timePickerWithCombo1.Location = new System.Drawing.Point(517, 75);
-            this.timePickerWithCombo1.Name = "timePickerWithCombo1";
-            this.timePickerWithCombo1.Size = new System.Drawing.Size(380, 25);
-            this.timePickerWithCombo1.TabIndex = 11;
-            // 
-            // BI_DataGrid
-            // 
-            this.BI_DataGrid.AllowUserToAddRows = false;
-            this.BI_DataGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
-            this.BI_DataGrid.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.BI_DataGrid.Location = new System.Drawing.Point(0, 161);
-            this.BI_DataGrid.Name = "BI_DataGrid";
-            this.BI_DataGrid.RowTemplate.Height = 23;
-            this.BI_DataGrid.Size = new System.Drawing.Size(1308, 367);
-            this.BI_DataGrid.TabIndex = 15;
-            // 
-            // Batch_In
-            // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
-            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(1308, 528);
-            this.Controls.Add(this.BI_DataGrid);
-            this.Controls.Add(this.Panel0);
-            this.Name = "Batch_In";
-            this.Text = "批量入库";
-            this.Panel0.ResumeLayout(false);
-            this.Panel0.PerformLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.BI_DataGrid)).EndInit();
-            this.ResumeLayout(false);
-        }
-
-        #endregion
-        private System.Windows.Forms.Panel Panel0;
-        private System.Windows.Forms.Label label5;
-        private System.Windows.Forms.Label label4;
-        private System.Windows.Forms.Label label3;
-        private System.Windows.Forms.Label label2;
-        private System.Windows.Forms.Label label1;
-        private System.Windows.Forms.Button Screen_Button;
-        private System.Windows.Forms.TextBox pi_status;
-        private CustomControl.TextBoxWithIcon.SearchTextBox wh_code;
-        private CustomControl.TextBoxWithIcon.SearchTextBox pr_code;
-        private CustomControl.TextBoxWithIcon.SearchTextBox pi_inoutno;
-        private CustomControl.TimePickerWithCombo.TimePickerWithCombo timePickerWithCombo1;
-        private System.Windows.Forms.Button Confirm_In;
-        private CustomControl.DataGrid_View.DataGridViewWithCheckBox BI_DataGrid;
-    }
-}

+ 0 - 150
UAS-MES/Batch_In.cs

@@ -1,150 +0,0 @@
-using System;
-using System.Data;
-using System.Text;
-using System.Windows.Forms;
-using 优软MES.CustomControl.DataGrid_View;
-using 优软MES.DataOperate;
-using 优软MES.PublicMethod;
-
-namespace 优软MES
-{
-    public partial class Batch_In : Form
-    {
-
-        string caller = "ProdInOut!Deal";
-        string formName = "Batch_In";
-        string defaultCondition = "nvl(pd_status,0)='0' and nvl(pd_inqty,0)>0 and pi_class='采购验收单' and nvl(pd_checkstatus,0)>0";
-        string[] hiddenField = new string[] {"pi_id" };
-        DataHelper dh = new DataHelper();
-
-        public Batch_In()
-        {
-            InitializeComponent();
-            DataTable dt = dh.GetConfigureData(caller, "DataList", defaultCondition);
-            BI_DataGrid.DataSource = dt;
-            BaseUtil.HideField(BI_DataGrid,hiddenField);
-            //添加图片列
-            pi_inoutno.Caller = caller;
-            pi_inoutno.FormName = formName;
-            pr_code.Caller = caller;
-            pr_code.FormName = formName;
-            wh_code.Caller = caller;
-            wh_code.FormName = formName;
-        }
-
-        private void Screen_Button_Click(object sender, EventArgs e)
-        {
-            string beginTime = timePickerWithCombo1.BeginTime;
-            string endTime = timePickerWithCombo1.EndTime;
-            string pi_inoutno = this.pi_inoutno.Text;
-            string pr_code = this.pr_code.Text;
-            string pd_location = wh_code.Text;
-            string pi_status = this.pi_status.Text;
-            StringBuilder condition = new StringBuilder();
-            if (!string.IsNullOrWhiteSpace(timePickerWithCombo1.BeginTime) && !string.IsNullOrWhiteSpace(timePickerWithCombo1.EndTime))
-            {
-                condition.Append(" to_char(pi_date,'yyyy/MM/dd hh:mm:ss') between '" + beginTime + "' and '" + endTime + "'");
-            }
-            if (!string.IsNullOrEmpty(pi_inoutno))
-            {
-                if (condition.Length == 0)
-                {
-                    condition.Append("  pi_inoutno like '%" + pi_inoutno + "%' ");
-                }
-                else
-                {
-                    condition.Append(" and pi_inoutno like '%" + pi_inoutno + "%'");
-                }
-            }
-            if (!string.IsNullOrEmpty(pr_code))
-            {
-                if (condition.Length == 0)
-                {
-                    condition.Append("  pr_code like '%" + pr_code + "%'");
-                }
-                else
-                {
-                    condition.Append(" and pr_code like '%" + pr_code + "%'");
-                }
-
-            }
-            if (!string.IsNullOrEmpty(pd_location))
-            {
-                if (condition.Length == 0)
-                {
-                    condition.Append("  pd_whcode like '%" + pd_location + "%'");
-                }
-                else
-                {
-                    condition.Append(" and pd_whcode like '%" + pd_location + "%'");
-                }
-            }
-            if (condition.Length != 0)
-            {
-                BI_DataGrid.DataSource = dh.GetConfigureData(caller, "DataList", condition.ToString());
-            }
-            else
-            {
-                BI_DataGrid.DataSource = dh.GetConfigureData(caller, "DataList", defaultCondition);
-            }
-        }
-
-        private void Confirm_In_Click(object sender, EventArgs e)
-        {
-            string[] pd_id = new string[BI_DataGrid.Rows.Count];
-            string[] pi_inoutno = new string[BI_DataGrid.Rows.Count];
-            StringBuilder pd_id_str = new StringBuilder();
-            //string[] pi_id = new string[BI_DataGrid.Rows.Count];
-            //string[] pd_pdno = new string[BI_DataGrid.Rows.Count];
-            //string[] pd_prodcode = new string[BI_DataGrid.Rows.Count];
-            DataTable dt = (DataTable)BI_DataGrid.DataSource;
-            int k = 0;
-            for (int i = 0; i < BI_DataGrid.Rows.Count; i++)
-            {
-                if (BI_DataGrid.Rows[i].Cells[0].Value!=null&&(bool)BI_DataGrid.Rows[i].Cells[0].Value) {
-                    //查找对应caption的列名
-                    pd_id[k] = dt.Rows[i][BaseUtil.GetColumnNameByCaption(dt, "pd_id")].ToString();
-                    pd_id_str.Append(pd_id[k] + ",");
-                    pi_inoutno[k] = dt.Rows[i][BaseUtil.GetColumnNameByCaption(dt, "pi_inoutno")].ToString();
-                    //pi_id[k] = dt.Rows[i][BaseUtil.GetColumnNameByCaption(dt, "pi_id")].ToString();
-                    //pd_pdno[k] = dt.Rows[i][BaseUtil.GetColumnNameByCaption(dt, "pd_pdno")].ToString();
-                    //pd_prodcode[k] = dt.Rows[i][BaseUtil.GetColumnNameByCaption(dt, "pd_prodcode")].ToString();
-                    k++;
-                }
-            }
-            //dh.CallProcedure("sp_commitprodinout", new string[] { "v_p_piclass", "v_p_piinoutno" , "v_p_pdid", "v_p_commitid" });
-            if (k == 0) {
-                BaseUtil.ShowError("请勾选需要入库的明细!");
-            }
-         
-            //用于存放查询的结果
-            DataTable dt1 = (DataTable)dh.ExecuteSql("select pd_status from prodiodetail  where pd_id  in ("+pd_id_str.Remove(pd_id_str.Length-1,1)+")","select");
-            StringBuilder Error_Str = new StringBuilder();
-            foreach (DataRow dr in dt1.Rows) {
-                if (dr["pd_status"].ToString() != "0") {
-                    Error_Str.Append("单号"+pi_inoutno[dt1.Rows.IndexOf(dr)]+"已经入库!");
-                }
-            }
-            //拼接错误信息
-            if (Error_Str.Length != 0) {
-                BaseUtil.ShowError(Error_Str.ToString());
-            }
-            Error_Str.Clear();
-            BaseUtil.CleanDataTable(dt1);
-            //判断管控类型为批管控的时候必须打印条码
-            dt1 =(DataTable)dh.ExecuteSql("select bi_printstatus,pr_tracekind from barcodeio left join product on pr_id=bi_prodid where bi_pdid in("+ pd_id_str.Remove(pd_id_str.Length - 1, 1) + ")", "select");
-          
-            foreach (DataRow dr in dt1.Rows) {
-                if (dr["bi_printstatus"].ToString() != "1" && dr["bi_printstatus"].ToString()=="2")
-                {
-                    Error_Str.Append("单号" + pi_inoutno[dt1.Rows.IndexOf(dr)] + "未打印条码!");
-                }
-            }
-
-            if (Error_Str.Length != 0)
-            {
-                BaseUtil.ShowError(Error_Str.ToString());
-            }
-        }
-    }
-}

+ 0 - 120
UAS-MES/Batch_In.resx

@@ -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>

+ 0 - 151
UAS-MES/CodeSoft.Designer.cs

@@ -1,151 +0,0 @@
-namespace UAS_MES
-{
-    partial class CodeSoft
-    {
-        /// <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.button1 = new System.Windows.Forms.Button();
-            this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
-            this.lstLabelBrowser = new System.Windows.Forms.ListView();
-            this.FolderPath = new System.Windows.Forms.TextBox();
-            this.label1 = new System.Windows.Forms.Label();
-            this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
-            this.groupBox1 = new System.Windows.Forms.GroupBox();
-            this.SQL = new System.Windows.Forms.TextBox();
-            this.backgroundWorker1 = new System.ComponentModel.BackgroundWorker();
-            this.Error = new System.Windows.Forms.Label();
-            this.groupBox1.SuspendLayout();
-            this.SuspendLayout();
-            // 
-            // button1
-            // 
-            this.button1.Location = new System.Drawing.Point(435, 21);
-            this.button1.Name = "button1";
-            this.button1.Size = new System.Drawing.Size(86, 24);
-            this.button1.TabIndex = 2;
-            this.button1.Text = "打开";
-            this.button1.UseVisualStyleBackColor = true;
-            this.button1.Click += new System.EventHandler(this.button1_Click);
-            // 
-            // openFileDialog1
-            // 
-            this.openFileDialog1.FileName = "openFileDialog1";
-            // 
-            // lstLabelBrowser
-            // 
-            this.lstLabelBrowser.Location = new System.Drawing.Point(47, 63);
-            this.lstLabelBrowser.Name = "lstLabelBrowser";
-            this.lstLabelBrowser.Size = new System.Drawing.Size(474, 290);
-            this.lstLabelBrowser.TabIndex = 5;
-            this.lstLabelBrowser.UseCompatibleStateImageBehavior = false;
-            this.lstLabelBrowser.SelectedIndexChanged += new System.EventHandler(this.lstLabelBrowser_SelectedIndexChanged);
-            // 
-            // FolderPath
-            // 
-            this.FolderPath.Enabled = false;
-            this.FolderPath.Location = new System.Drawing.Point(118, 21);
-            this.FolderPath.Name = "FolderPath";
-            this.FolderPath.Size = new System.Drawing.Size(298, 21);
-            this.FolderPath.TabIndex = 6;
-            this.FolderPath.TextChanged += new System.EventHandler(this.FolderPath_TextChanged);
-            // 
-            // label1
-            // 
-            this.label1.AutoSize = true;
-            this.label1.Location = new System.Drawing.Point(35, 27);
-            this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(77, 12);
-            this.label1.TabIndex = 7;
-            this.label1.Text = "选择文件夹:";
-            this.label1.Click += new System.EventHandler(this.label1_Click);
-            // 
-            // groupBox1
-            // 
-            this.groupBox1.Controls.Add(this.SQL);
-            this.groupBox1.Location = new System.Drawing.Point(619, 63);
-            this.groupBox1.Name = "groupBox1";
-            this.groupBox1.Size = new System.Drawing.Size(448, 244);
-            this.groupBox1.TabIndex = 10;
-            this.groupBox1.TabStop = false;
-            this.groupBox1.Text = "SQL语句:";
-            // 
-            // SQL
-            // 
-            this.SQL.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.SQL.Location = new System.Drawing.Point(6, 20);
-            this.SQL.Multiline = true;
-            this.SQL.Name = "SQL";
-            this.SQL.Size = new System.Drawing.Size(436, 218);
-            this.SQL.TabIndex = 0;
-            // 
-            // Error
-            // 
-            this.Error.AutoSize = true;
-            this.Error.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.Error.ForeColor = System.Drawing.Color.Red;
-            this.Error.Location = new System.Drawing.Point(633, 330);
-            this.Error.Name = "Error";
-            this.Error.Size = new System.Drawing.Size(0, 14);
-            this.Error.TabIndex = 11;
-            // 
-            // CodeSoft
-            // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
-            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(1129, 462);
-            this.Controls.Add(this.Error);
-            this.Controls.Add(this.groupBox1);
-            this.Controls.Add(this.label1);
-            this.Controls.Add(this.FolderPath);
-            this.Controls.Add(this.lstLabelBrowser);
-            this.Controls.Add(this.button1);
-            this.Name = "CodeSoft";
-            this.Text = "条码打印SQL维护";
-            this.Load += new System.EventHandler(this.CodeSoft_Load);
-            this.groupBox1.ResumeLayout(false);
-            this.groupBox1.PerformLayout();
-            this.ResumeLayout(false);
-            this.PerformLayout();
-
-        }
-
-        #endregion
-        private System.Windows.Forms.Button button1;
-        private System.Windows.Forms.OpenFileDialog openFileDialog1;
-        private System.Windows.Forms.ListView lstLabelBrowser;
-        private System.Windows.Forms.TextBox FolderPath;
-        private System.Windows.Forms.Label label1;
-        private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog1;
-        private System.Windows.Forms.GroupBox groupBox1;
-        private System.ComponentModel.BackgroundWorker backgroundWorker1;
-        private System.Windows.Forms.Label Error;
-        private System.Windows.Forms.TextBox SQL;
-        private CustomControl.ButtonUtil.NormalButton saveFormButton3=new CustomControl.ButtonUtil.NormalButton();
-        private CustomControl.ButtonUtil.NormalButton saveFormButton4=new CustomControl.ButtonUtil.NormalButton();
-        private CustomControl.ButtonUtil.NormalButton PrintTest=new CustomControl.ButtonUtil.NormalButton();
-    }
-}

+ 0 - 240
UAS-MES/CodeSoft.cs

@@ -1,240 +0,0 @@
-using System;
-using System.Windows.Forms;
-using LabelManager2;
-using System.Drawing;
-using System.IO;
-using UAS_MES.DataOperate;
-using System.Data;
-
-namespace UAS_MES
-{
-    public partial class CodeSoft : Form
-    {
-        ApplicationClass lbl =new ApplicationClass();
-        //预览框中文件的索引
-        int selectedIndex;
-        //用来存放文件夹的文件名
-        private string[] browsingFormats;
-        //选中的Label的名称
-        string LabelName;
-        //包含路径的文件名
-        string LabelPath;
-       
-        DataHelper dh = new DataHelper();
-       
-
-        public CodeSoft()
-        {
-            InitializeComponent();
-
-
-            //不存在目录创建目录
-            //if (!Directory.Exists(System.Windows.Forms.Application.StartupPath+("//Log")))//如果不存在就创建file文件夹
-            //{
-            //    Console.Write("不存在");
-            //    Directory.CreateDirectory(System.Windows.Forms.Application.StartupPath + ("//Log"));
-            //}
-            ////不存在文件创建文件
-            //string LogName = System.DateTime.Now.Date.ToString("yyyyMMdd");
-            //if (!File.Exists(System.Windows.Forms.Application.StartupPath + "\\Log\\"+LogName+".txt")) {
-            //    Console.Write("不存在路径");
-            //    File.Create(System.Windows.Forms.Application.StartupPath + "\\Log\\" + LogName + ".txt");//创建该文件   
-            //}
-
-            //FileStream fs1 = new FileStream(System.Windows.Forms.Application.StartupPath + "\\Log\\" + LogName + ".txt", FileMode.Append, FileAccess.Write);//创建写入文件    
-            //StreamWriter sw = new StreamWriter(fs1);
-            //Console.Write(System.DateTime.Now.Second);
-            //for (int i = 0; i < 100000; i++) {
-            //    sw.WriteLine(i);
-            //    sw.WriteLine("[runtype][runtype][runtype][runtype][runtype][runtype][runtype][runtype][runtype][runtype][runtype][runtype][runtype][runtype][runtype]");//开始写入值   
-            //    sw.WriteLine("type=1");
-            //}
-            //Console.Write(System.DateTime.Now.Second);
-            //sw.Close();
-            //fs1.Close();
-
-            //条码赋值
-            //lbl.Documents.Open(@"C:\Users\callmexiaozhang\Desktop\Document1.lab", false);//调用设好的lbl标签
-            //Document doc = lbl.ActiveDocument;
-            //doc.Variables.Item("var0").Value = "123123";
-            //doc.Variables.Item("var1").Value = "123123";
-
-            //设置默认打印机
-            //Console.Write(doc.Variables.FormVariables.Item("var0").Value);
-            //Strings vars = lbl.PrinterSystem().Printers(enumKindOfPrinters.lppxAllPrinters);
-            //PrintDocument prtdoc = new PrintDocument();
-            //string strDefaultPrinter = prtdoc.PrinterSettings.PrinterName;
-            //for (int j = 0; j < vars.Count; j++)
-            //{
-            //    string[] arryString = vars.Item(j).Split(',');
-            //    comboBox1.Items.Add(arryString[0]);
-            //    if (arryString[0] == strDefaultPrinter)
-            //    {
-            //        comboBox1.SelectedItem = strDefaultPrinter;
-            //    }
-            //}
-            //设置listview中每个单元的大小和图片
-            lstLabelBrowser.View = View.LargeIcon;
-            lstLabelBrowser.LargeImageList = new ImageList();
-            lstLabelBrowser.LargeImageList.ImageSize = new Size(50, 50);
-            lstLabelBrowser.LargeImageList.Images.Add(UAS_MES.Properties.Resources.file_info_64px_1176626_easyicon_net);
-        }
-
-        private void button1_Click(object sender, EventArgs e)
-        {    
-            folderBrowserDialog1.Description = "选择打印模板所在的路径";
-            DialogResult result = folderBrowserDialog1.ShowDialog();
-            if (result == DialogResult.OK) {
-                lstLabelBrowser.Clear();
-                FolderPath.Text = folderBrowserDialog1.SelectedPath;
-                DirectoryInfo TheFolder = new DirectoryInfo(folderBrowserDialog1.SelectedPath);
-                browsingFormats = Directory.GetFiles(FolderPath.Text, "*.lab");
-                for (int i = 0; i < browsingFormats.Length; i++) {
-                    int lenght = browsingFormats[i].Split('\\').Length;
-                    lstLabelBrowser.Items.Add(browsingFormats[i].Split('\\')[lenght - 1]);
-                    lstLabelBrowser.Items[i].ImageIndex = 0;
-                }
-            }
-        }
-
-        private void saveFormButton1_Click(object sender, EventArgs e)
-        {
-            Error.Text = "";
-            try
-            {
-                dh.CheckSQL(SQL.Text);
-                if (LabelName != "" && LabelName != null)
-                {
-                    SaveSQL();
-                }
-                else
-                {
-                    Error.Text = "请选择一个标签文件";
-                }
-            }
-            catch (Exception ex)
-            {
-                if (ex.Message.Contains("ORA-01008"))
-                {
-                    SaveSQL();
-                }
-                else
-                {
-                    Error.Text = ex.Message;
-                }
-            }
-        }
-
-        private void lstLabelBrowser_SelectedIndexChanged(object sender, EventArgs e)
-        {
-            if (lstLabelBrowser.SelectedItems.Count == 1) {
-                selectedIndex = lstLabelBrowser.SelectedIndices[0];
-                LabelPath =browsingFormats[selectedIndex];
-                LabelName = lstLabelBrowser.Items[selectedIndex].Text.Split('.')[0];
-                DataTable dt= dh.getFieldsDataByCondition("Label", new string[] {"la_sql"},"La_name='"+LabelName+"'");
-                if (dt.Rows.Count > 0)
-                {
-                    SQL.Text = dt.Rows[0]["la_sql"].ToString();
-                }
-                else {
-                    SQL.Text = "";
-                }            
-            }
-        }
-
-        private void SaveSQL() {
-            if (!dh.CheckExist("Label", "la_name='" + LabelName + "'"))
-            {
-                dh.ExecuteSql("insert into label (la_id,la_name,la_sql) values(label_seq.nextval,'" + LabelName + "','" + SQL.Text + "')", "insert");
-                Error.Text = "保存成功";
-            }
-            else
-            {
-                dh.UpdateByCondition("label", "la_sql='" + SQL.Text + "'", "la_name='" + LabelName + "'");
-                Error.Text = "保存成功";
-            }
-        }
-
-        private void Check_SQL_Click(object sender, EventArgs e)
-        {
-            try
-            {
-                dh.CheckSQL(SQL.Text);
-                Error.Text = "检测通过";
-            }
-            catch (Exception ex)
-            {
-                //如果有动态添加的参数则不去判断
-                if (ex.Message.Contains("ORA-01008"))
-                {
-                    Error.Text = "检测通过";
-                }
-                else
-                {
-                    Error.Text = ex.Message;
-                }
-            }
-        }
-
-        private void PrintTest_Click(object sender, EventArgs e)
-        {
-            if (LabelPath != null && LabelPath != "")
-            {
-                if (SQL.Text != null && SQL.Text != "")
-                {
-                    try
-                    {
-                        DataTable dt=(DataTable)dh.ExecuteSql(SQL.Text, "select");
-                        Error.Text = "检测通过";
-                        lbl.Documents.Open(LabelPath, false);//调用设好的lbl标签
-                        Document doc = lbl.ActiveDocument;
-                        if (doc.Variables.Count > 0)
-                        {
-                            for (int i = 0; i < dt.Columns.Count; i++) {
-                                doc.Variables.Item(dt.Columns[i].ColumnName.ToLower()).Value = dt.Rows[0][i].ToString();
-                            }
-                        }
-                        doc.PrintDocument(1);
-                        doc.Close();
-                        Error.Text = "通过测试";
-                    }
-                    catch (Exception ex)
-                    {
-                        //如果有动态添加的参数则不去判断
-                        if (ex.Message.Contains("ORA-01008"))
-                        {
-                            Error.Text = "检测通过";
-                        }
-                        else
-                        {
-                            Error.Text = ex.Message;
-                        }
-                    }
-                }
-                else
-                {
-                    Error.Text = "请先维护SQL";
-                }
-            }
-            else
-            {
-                Error.Text = "请选择一个标签";
-            }
-        }
-
-        private void FolderPath_TextChanged(object sender, EventArgs e)
-        {
-
-        }
-
-        private void label1_Click(object sender, EventArgs e)
-        {
-
-        }
-
-        private void CodeSoft_Load(object sender, EventArgs e)
-        {
-
-        }
-    }
-}

+ 0 - 129
UAS-MES/CodeSoft.resx

@@ -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="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>17, 17</value>
-  </metadata>
-  <metadata name="folderBrowserDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>165, 17</value>
-  </metadata>
-  <metadata name="backgroundWorker1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>345, 17</value>
-  </metadata>
-</root>

+ 0 - 1
UAS-MES/Properties/AssemblyInfo.cs

@@ -12,7 +12,6 @@ using System.Runtime.InteropServices;
 [assembly: AssemblyCopyright("Copyright ©  2017")]
 [assembly: AssemblyTrademark("")]
 [assembly: AssemblyCulture("")] 
-[assembly: log4net.Config.XmlConfigurator()]
 //将 ComVisible 设置为 false 将使此程序集中的类型
 //对 COM 组件不可见。  如果需要从 COM 访问此程序集中的类型,
 //请将此类型的 ComVisible 特性设置为 true。