|
@@ -4,6 +4,7 @@ using System.ComponentModel;
|
|
|
using System.Data;
|
|
using System.Data;
|
|
|
using System.Drawing;
|
|
using System.Drawing;
|
|
|
using System.Linq;
|
|
using System.Linq;
|
|
|
|
|
+using System.Runtime.InteropServices;
|
|
|
using System.Text;
|
|
using System.Text;
|
|
|
using System.Windows.Forms;
|
|
using System.Windows.Forms;
|
|
|
using UAS_MES.DataOperate;
|
|
using UAS_MES.DataOperate;
|
|
@@ -13,6 +14,14 @@ namespace UAS_MES.Warehouse
|
|
|
{
|
|
{
|
|
|
public partial class Warehouse_ProdDetail : Form
|
|
public partial class Warehouse_ProdDetail : Form
|
|
|
{
|
|
{
|
|
|
|
|
+ [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;
|
|
|
|
|
+
|
|
|
DataTable dbfind;
|
|
DataTable dbfind;
|
|
|
|
|
|
|
|
DataHelper dh;
|
|
DataHelper dh;
|
|
@@ -45,5 +54,11 @@ namespace UAS_MES.Warehouse
|
|
|
InOutDetailDGV.Rows[i].Cells["ungetqty"].Value = (int.Parse(InOutDetailDGV.Rows[i].Cells["outqty"].Value.ToString()) - int.Parse(InOutDetailDGV.Rows[i].Cells["getqty"].Value.ToString())).ToString();
|
|
InOutDetailDGV.Rows[i].Cells["ungetqty"].Value = (int.Parse(InOutDetailDGV.Rows[i].Cells["outqty"].Value.ToString()) - int.Parse(InOutDetailDGV.Rows[i].Cells["getqty"].Value.ToString())).ToString();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ private void headBar1_MouseDown(object sender, MouseEventArgs e)
|
|
|
|
|
+ {
|
|
|
|
|
+ ReleaseCapture();
|
|
|
|
|
+ SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|