Example #1
0
        private void login_Click(object sender, EventArgs e)
        {
            //开发测试阶段无需对用户名与密码进行验证。
            /////////////////////////////////////////

            /*
             *
             * if(userName.Text == "")
             * {
             *  MessageBox.Show("用户名不能为空!");
             *  return;
             * }
             * if(password.Text == "")
             * {
             *  MessageBox.Show("密码不能为空!");
             *  return;
             * }
             *
             * if(new tb_EmployeeMethod().Find(userName.Text,password.Text) == true)
             */
            {
                /*MainForm frm = new MainForm();
                 * frm.curUser = userName.Text;
                 * frm.Show();*/
                JhGoodsForm jhGoodsForm = new JhGoodsForm("YH");
                jhGoodsForm.Show();
                JhGoodsForm jhGoodsForm2 = new JhGoodsForm("DJ");
                jhGoodsForm2.Show();

                /*CompanyInfoForm companyInfoForm = new CompanyInfoForm();
                 * companyInfoForm.Show();*/

                this.Hide();
            }
        }
Example #2
0
        private void goodsPurchaseMenuItem_Click(object sender, EventArgs e)
        {
            JhGoodsForm jhGoodsForm = new JhGoodsForm("YH");

            jhGoodsForm.Owner = this;
            jhGoodsForm.ShowDialog();
        }
Example #3
0
 //关闭窗口将其从list中装入
 public void DeleteJhGoodsForm(JhGoodsForm jh)
 {
     jhGoodsForms.Remove(jh);
 }
Example #4
0
 //将进货窗口装入list
 public void CreateJhGoodsForm(JhGoodsForm jh)
 {
     jhGoodsForms.Add(jh);
 }