using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Windows.Forms; using UAS_MES_NEW.DataOperate; using UAS_MES_NEW.Entity; using UAS_MES_NEW.PublicMethod; namespace UAS_MES_NEW.Warehouse { public partial class Make_ChangeCode : CustomControl.BaseForm.BaseForm { [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; DataHelper dh; LogStringBuilder sql = new LogStringBuilder(); string sncode = ""; //页面Caller public Boolean generate; public Make_ChangeCode(string sncode) { InitializeComponent(); this.sncode = sncode; } private void Confirm_Click(object sender, EventArgs e) { generate = false; MessageBox.Show("添加出货单成功"); generate = true; } private void Warehouse_NewPiInOut_Load(object sender, EventArgs e) { dh = SystemInf.dh; } private void headBar1_MouseDown(object sender, MouseEventArgs e) { ReleaseCapture(); SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); } } }