Example #1
0
 private void imbt_UpLoadData_Click(object sender, EventArgs e)
 {
     if (b_findEmp)
     {
         string StockNo = InputQuery.ShowInputBox("请输入入库单据", string.Empty).ToUpper();
         if (!string.IsNullOrEmpty(StockNo) && StockNo.Trim() != "NA")
         {
             LabError.Text = string.Empty;
             SendMsg(mLogMsgType.Normal, "执行过站...");
             Call_TEST_STOCKIN(StockNo);
             if (!string.IsNullOrEmpty(LabError.Text))
             {
                 SendMsg(mLogMsgType.Error, "Call_TEST_STOCKIN Error");
                 return;
             }
             SendMsg(mLogMsgType.Normal, "更改WIP STATION");
             UPDATE_WIPSTATION(StockNo);
             SendMsg(mLogMsgType.Normal, "写入数据到仓库...");
             Insert_Z_WIP_TRACKING(StockNo);
             ClearData();
             SendMsg(mLogMsgType.Normal, "数据上传完成....");
             PrintInventoryDocuments(StockNo);
         }
     }
     else
     {
         SendMsg(mLogMsgType.Error, "请输入权限...");
     }
 }
Example #2
0
        private void imbt_RePrint_Click(object sender, EventArgs e)
        {
            string StockIn = InputQuery.ShowInputBox("请输入入库单据", string.Empty).ToUpper();

            if (!string.IsNullOrEmpty(StockIn))
            {
                if (StockIn != "NA")
                {
                    PrintInventoryDocuments(StockIn);
                }
            }
        }
Example #3
0
        //显示InputBox
        public static string ShowInputBox(string Title, string keyInfo)
        {
            InputQuery inputbox = new InputQuery();

            inputbox.Text = Title;
            if (keyInfo.Trim() != string.Empty)
            {
                inputbox.lblInfo.Text = keyInfo;
            }
            inputbox.ShowDialog();

            return(inputbox.txtData.Text);
        }