Пример #1
0
 private void btnAssistance_Click(object sender, EventArgs e)
 {
     if (this.txtorderid.Enabled)
     {
         MessageBox.Show("请先扫描单据");
         this.txtorderid.Focus();
         this.txtorderid.SelectAll();
         return;
     }
     Ot.frmUpdAssistance frm = new Rf_Wms.Ot.frmUpdAssistance();
     frm.orderid = this.txtorderid.Text;
     frm.fun     = "replenishOrder/updateAssistance";
     frm.ShowDialog();
     if (!string.IsNullOrEmpty(frm.assistance))
     {
         this.btnAssistance.Text = frm.assistance;
     }
     foreach (Control v in this.Controls)
     {
         if (v is TextBox)
         {
             if (v.Enabled)
             {
                 v.Focus();
             }
         }
     }
 }
Пример #2
0
 private void btnAssistance_Click(object sender, EventArgs e)
 {
     Ot.frmUpdAssistance frm = new Rf_Wms.Ot.frmUpdAssistance();
     frm.orderid = this.laborderid.Text;
     frm.fun     = "updateTransferAssistance";
     frm.ShowDialog();
     if (!string.IsNullOrEmpty(frm.assistance))
     {
         this.btnAssistance.Text = frm.assistance;
     }
     foreach (Control v in this.Controls)
     {
         if (v is TextBox)
         {
             if (v.Enabled)
             {
                 v.Focus();
             }
         }
     }
 }