private void btnAlter_Click(object sender, EventArgs e)
 {
     if (int.Parse(dgvApplyInfo.SelectedRows[0].Cells["AppState"].Value.ToString()) > 0)
     {
         MessageBox.Show("已进入流程,无法修改", "消息", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     //else if (((DateTime)(dgvApplyInfo.SelectedRows[0].Cells["ApplicantsDate"].Value)).AddDays(3).Date < DateTime.Now.Date)
     //{
     //    MessageBox.Show("超过修改时间,无法修改", "消息", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     //}
     else
     {
         if (applicationInfo.TransNo != null)
         {
             frmAlterApplication faa = new frmAlterApplication(applicationInfo);
             if (faa.ShowDialog() == DialogResult.OK)
             {
                 this.GetApplicationDetail();
             }
         }
         else
         {
             MessageBox.Show("请选择一行记录", "消息", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         }
     }
 }
 private void dgvApplyDetails_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (tabControl1.SelectedIndex == 0)
     {
         frmAlterApplication faa = new frmAlterApplication(applicationInfo);
         if (faa.ShowDialog() == DialogResult.OK)
         {
             this.GetApplicationDetail();
         }
     }
     else if (tabControl1.SelectedIndex == 1)
     {
         frmAlterStoreApplication fasa = new frmAlterStoreApplication(applicationInfo, "Deliver");
         if (fasa.ShowDialog() == DialogResult.OK)
         {
             this.GetApplicationDetail();
         }
     }
     else if (tabControl1.SelectedIndex == 2)
     {
         frmAlterStoreApplication fasa = new frmAlterStoreApplication(applicationInfo, "Receipt");
         if (fasa.ShowDialog() == DialogResult.OK)
         {
             this.GetApplicationDetail();
         }
     }
 }
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (tabControl1.SelectedIndex == 0)
     {
         frmAlterApplication faa = new frmAlterApplication(applicationInfo);
         if (faa.ShowDialog() == DialogResult.OK)
         {
             this.GetApplicationDetail();
         }
     }
     else if (tabControl1.SelectedIndex == 1)
     {
         frmAlterStoreApplication fasa = new frmAlterStoreApplication(applicationInfo, "Deliver");
         if (fasa.ShowDialog() == DialogResult.OK)
         {
             this.GetApplicationDetail();
         }
     }
     else if (tabControl1.SelectedIndex == 2)
     {
         frmAlterStoreApplication fasa = new frmAlterStoreApplication(applicationInfo, "Receipt");
         if (fasa.ShowDialog() == DialogResult.OK)
         {
             this.GetApplicationDetail();
         }
     }
 }
 private void btnAlter_Click(object sender, EventArgs e)
 {
     if (Login.LoginUser.IsAdmin == 1)
     {
         frmAlterApplication faa = new frmAlterApplication(applicationInfo);
         if (faa.ShowDialog() == DialogResult.OK)
         {
             this.GetApplicationDetail();
         }
     }
 }
Exemple #5
0
 private void dgvApplyInfo_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (applicationInfo.CtrlID != null)
     {
         frmAlterApplication faa = new frmAlterApplication(applicationInfo);
         if (faa.ShowDialog() == DialogResult.OK)
         {
             this.GetApplicationDetail();
         }
     }
 }
Exemple #6
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (applicationInfo.TransNo != null)
     {
         frmAlterApplication faa = new frmAlterApplication(applicationInfo);
         faa.GetEditState();
         if (faa.ShowDialog() == DialogResult.OK)
         {
             this.GetApplicationDetail();
         }
     }
 }
 private void btnAlter_Click(object sender, EventArgs e)
 {
     if (applicationInfo.TransNo != null)
     {
         frmAlterApplication faa = new frmAlterApplication(applicationInfo);
         if (faa.ShowDialog() == DialogResult.OK)
         {
             this.GetApplicationDetail();
         }
     }
     else
     {
         MessageBox.Show("请选择一行记录", "消息", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }
Exemple #8
0
 private void btnAlter_Click(object sender, EventArgs e)
 {
     if ((int)dgvApplyInfo.SelectedRows[0].Cells["Column27"].Value > 0)
     {
         MessageBox.Show("已进入审批状态,无法修改", "消息", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     else
     {
         if (applicationInfo.CtrlID != null)
         {
             frmAlterApplication objfrmAlter = new frmAlterApplication(applicationInfo);
             if (objfrmAlter.ShowDialog() == DialogResult.OK)
             {
                 this.GetApplicationDetail();
             }
         }
         else
         {
             MessageBox.Show("请选择一行记录", "消息", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         }
     }
 }