Example #1
0
        private void frmOutPlanCL_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Escape)
            {
                Global.frmCurrent = this.Owner;
                this.Owner.Show();
                this.Owner = null;
                Business.InvokeMethod(Global.frmCurrent, "LoadData", new object[] { });
                this.Close();
            }
            else if (e.KeyCode == Keys.F24)
            {
                frmOut frm = new frmOut();
                //frm.m_zfh = m_zfh;
                //frm.m_jhh = m_jhh;
                //frm.m_zph = m_zph;
                //frm.m_lh = m_lh;
                //frm.m_cltype = m_cltype;
                //frm.m_hth = m_hth;
                Global.frmCurrent = frm;
                frm.Owner         = this;
                frm.Show();
                this.Hide();
            }
            else if (e.KeyCode == Keys.F21)
            {
                //int js = 0;
                //int mz = 0;
                //string clhs = "";

                //for (int i = 0; i < dtCl.Rows.Count; i++)
                //{
                //    if (dtCl.Rows[i]["WCFlag"].ToString() == "1")
                //    {
                //        clhs += "'" +dtCl.Rows[i]["CLH"].ToString() + "',";
                //        js++;
                //        if (dtCl.Rows[i]["MZ"].ToString() != "")
                //        {
                //            mz += Convert.ToInt32(dtCl.Rows[i]["MZ"]);
                //        }
                //    }
                //}
                //if (clhs.Length > 0) clhs = clhs.Substring(0, clhs.Length - 1);

                if (Global.storage.scanDic.Count > 0)
                {
                    frmSend frmSend = new frmSend();
                    //frmSend.js = js.ToString();
                    //frmSend.mz = mz.ToString();
                    //frmSend.clhs = clhs;
                    Global.frmCurrent = frmSend;
                    frmSend.Owner     = this;
                    frmSend.Show();
                    this.Hide();
                }
            }
        }
Example #2
0
 private void frmOutPlanZF_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Escape)
     {
         Global.frmCurrent = this.Owner;
         this.Owner.Show();
         this.Owner = null;
         Business.InvokeMethod(Global.frmCurrent, "LoadData", new object[] { });
         this.Close();
     }
     else if (e.KeyCode == Keys.F24)
     {
         if (curRow >= 0)
         {
             frmOut frm = new frmOut();
             Global.frmCurrent = frm;
             frm.Owner         = this;
             frm.Show();
             this.Hide();
         }
     }
 }