Beispiel #1
0
        private void btn_checkout_Click(object sender, EventArgs e)
        {
            CheckForm checkForm = new CheckForm();

            checkForm.Show();//非模态单独窗口,需要和其他窗口交互
            //checkForm.ShowInTaskbar = false;
            //checkForm.ShowDialog();
        }
Beispiel #2
0
 private void btn审核_Click(object sender, EventArgs e)
 {
     if (!check出库数量())
     {
         return;
     }
     ckform = new mySystem.CheckForm(this);
     ckform.Show();
 }
 //审核功能
 private void btn审核_Click(object sender, EventArgs e)
 {
     if (mySystem.Parameter.userName == dt记录详情.Rows[0]["操作员"].ToString())
     {
         MessageBox.Show("当前登录的审核员与操作员为同一人,不可进行审核!");
         return;
     }
     checkform = new CheckForm(this);
     checkform.Show();
 }
Beispiel #4
0
 private void btn审核_Click(object sender, EventArgs e)
 {
     if (mySystem.Parameter.userName == dtOuter.Rows[0]["申请人"].ToString())
     {
         MessageBox.Show("申请人和审核员不能是同一个人");
         return;
     }
     ckform = new mySystem.CheckForm(this);
     ckform.Show();
 }
Beispiel #5
0
 private void btn审核_Click(object sender, EventArgs e)
 {
     if (dtOuter.Rows[0]["操作员"].ToString() == mySystem.Parameter.userName)
     {
         MessageBox.Show("操作员和审核员不能是同一个人!");
         return;
     }
     ckform = new CheckForm(this);
     ckform.Show();
 }
Beispiel #6
0
 private void btn审核_Click(object sender, EventArgs e)
 {
     // TODO 弹出赵梦的窗口
     if (mySystem.Parameter.userName == tb操作员.Text)
     {
         MessageBox.Show("审核员不能和操作员为同一个人");
         return;
     }
     checkform = new CheckForm(this);
     checkform.Show();
 }
Beispiel #7
0
 private void btn审核_Click(object sender, EventArgs e)
 {
     // 如果有不是yes的,就不准审核
     foreach (DataGridViewRow gdvr in dataGridView1.Rows)
     {
         if (gdvr.DefaultCellStyle.BackColor == Color.Red)
         {
             MessageBox.Show("有条目待确认");
             return;
         }
     }
     check = new CheckForm(this);
     check.Show();
 }
 //审核功能
 private void btn审核_Click(object sender, EventArgs e)
 {
     if (check当前登录的审核员与操作员())
     {
         MessageBox.Show("当前登录的审核员与操作员为同一人,不可进行审核!");
         return;
     }
     else if (need数据审核())
     {
         MessageBox.Show("需要数据审核");
         return;
     }
     checkform = new CheckForm(this);
     checkform.Show();
 }
Beispiel #9
0
 //审核功能
 private void btn审核_Click(object sender, EventArgs e)
 {
     foreach (DataRow dr in dt记录详情.Rows)
     {
         if (dr["审核员"] == DBNull.Value || dr["审核员"].ToString() == "" || dr["审核员"].ToString().Trim() == "__待审核")
         {
             MessageBox.Show("请先完成数据审核");
             return;
         }
     }
     if (mySystem.Parameter.userName == dt记录详情.Rows[0]["操作员"].ToString())
     {
         MessageBox.Show("当前登录的审核员与操作员为同一人,不可进行审核!");
         return;
     }
     checkform = new CheckForm(this);
     checkform.Show();
 }
Beispiel #10
0
 //审核按钮
 private void btn审核_Click(object sender, EventArgs e)
 {
     foreach (DataGridViewRow gdvr in dataGridView1.Rows)
     {
         if (gdvr.DefaultCellStyle.BackColor == Color.Red)
         {
             MessageBox.Show("有条目待确认");
             return;
         }
     }
     if (mySystem.Parameter.userName == dt记录.Rows[0]["确认人"].ToString())
     {
         MessageBox.Show("当前登录的审核员与操作员为同一人,不可进行审核!");
         return;
     }
     checkform = new CheckForm(this);
     checkform.Show();
 }
Beispiel #11
0
 //审核功能
 private void btn审核_Click(object sender, EventArgs e)
 {
     if (mySystem.Parameter.userName == dt记录详情.Rows[0]["操作员"].ToString())
     {
         MessageBox.Show("当前登录的审核员与操作员为同一人,不可进行审核!");
         return;
     }
     //先进行内表审核,再进行外表审核
     for (int i = 0; i < dataGridView1.Rows.Count; i++)
     {
         if (dataGridView1.Rows[i].Cells["审核员"].Value.ToString() == "__待审核")
         {
             MessageBox.Show("第" + (i + 1).ToString() + "行数据没有审核,请先审核表内数据!");
             return;
         }
     }
     checkform = new CheckForm(this);
     checkform.Show();
 }
Beispiel #12
0
 //审核功能
 private void btn审核_Click(object sender, EventArgs e)
 {
     if (mySystem.Parameter.userName == dt记录详情.Rows[0]["操作员"].ToString())
     {
         MessageBox.Show("当前登录的审核员与操作员为同一人,不可进行审核!");
         return;
     }
     //判断内表是否完全审核
     for (int i = 0; i < dt记录详情.Rows.Count; i++)
     {
         if (dt记录详情.Rows[i]["审核员"].ToString() == "__待审核")
         {
             MessageBox.Show("数据审核未完成");
             return;
         }
         if (dt记录详情.Rows[i]["审核员"].ToString() == "")
         {
             MessageBox.Show("第" + (i + 1) + "行未提交数据审核");
             return;
         }
     }
     checkform = new CheckForm(this);
     checkform.Show();
 }
Beispiel #13
0
 private void btn审核_Click(object sender, EventArgs e)
 {
     checkform = new CheckForm(this);
     checkform.Show();
 }