| | |
| | | if (Parent != null) getNamespace(); |
| | | } |
| | | |
| | | private bool _isCk() { |
| | | Form parentForm = this.FindForm(); |
| | | if (parentForm != null) |
| | | { |
| | | PictureBox specificControl = (PictureBox)parentForm.Controls.Find("picCheckBox", true).FirstOrDefault(); |
| | | if (specificControl != null) |
| | | { |
| | | if (specificControl.Tag.ToString() == "已审核") |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowInformation("该单据已被审核,无法进行操作!"); |
| | | return true; |
| | | } |
| | | } |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | private void BtnBoHui_ItemClick(object sender, ItemClickEventArgs e) |
| | | { |
| | | if (btnBoHuiClick != null) |
| | |
| | | |
| | | private void BtnChk_ItemClick(object sender, ItemClickEventArgs e) |
| | | { |
| | | bool bl = _isCk(); |
| | | if (bl) return; |
| | | if (btnChkClick != null) |
| | | { |
| | | btnChkClick(this, e); |
| | |
| | | |
| | | private void BtnJianYan_ItemClick(object sender, ItemClickEventArgs e) |
| | | { |
| | | bool bl = _isCk(); |
| | | if (bl) return; |
| | | if (btnJianYanClick != null) |
| | | btnJianYanClick(this, e); |
| | | else |
| | |
| | | lst.Add(btnLog.Name); |
| | | lst.Add(btnPiZhun.Name); |
| | | lst.Add(btnHelp.Name); |
| | | lst.Add(btnBoHui.Name); |
| | | _enabledBtn(lst); |
| | | this.currentAction = "esc"; |
| | | if (btnEscClick != null) btnEscClick(this, e); |
| | |
| | | lst.Add(btnChk.Name); |
| | | lst.Add(btnFchk.Name); |
| | | lst.Add(btnDel.Name); |
| | | lst.Add(btnJianYan.Name); |
| | | lst.Add(btnFjianYan.Name); |
| | | lst.Add(btnQuery.Name); |
| | | lst.Add(btnLog.Name); |
| | | lst.Add(btnZhiLiangChk.Name); |
| | | lst.Add(btnZhiLiangFchk.Name); |
| | | lst.Add(btnPiZhun.Name); |
| | | lst.Add(btnBoHui.Name); |
| | | lst.Add(btnDesign.Name); |
| | | lst.Add(btnReport.Name); |
| | | lst.Add(btnKg.Name); |
| | | lst.Add(btnWg.Name); |
| | | lst.Add(btnZhongTai.Name); |
| | | _enabledBtn(lst); |
| | | } |
| | | } |
| | |
| | | |
| | | private void BtnEdit_ItemClick(object sender, ItemClickEventArgs e) |
| | | { |
| | | bool bl = _isCk(); |
| | | if (bl) return; |
| | | var lst = new List<string>(); |
| | | lst.Add(btnSave.Name); |
| | | lst.Add(btnEsc.Name); |
| | |
| | | _enabledBtn(lst); |
| | | this.currentAction = "edit"; |
| | | if (btnEdtClick != null) btnEdtClick(this, e); |
| | | Form parentForm = this.FindForm(); |
| | | if (parentForm != null) |
| | | { |
| | | Control specificControl = parentForm.Controls.Find("picCheckBox", true).FirstOrDefault(); |
| | | if (specificControl != null) |
| | | { |
| | | specificControl.Visible = false; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | private void BtnDel_ItemClick(object sender, ItemClickEventArgs e) |
| | | { |
| | | bool bl = _isCk(); |
| | | if (bl) return; |
| | | if (btnDelClick != null) btnDelClick(this, e); |
| | | } |
| | | |
| | |
| | | Form parentForm = this.FindForm(); |
| | | if (parentForm != null) |
| | | { |
| | | Control specificControl = parentForm.Controls.Find("picCheckBox", true).FirstOrDefault(); |
| | | PictureBox specificControl =(PictureBox) parentForm.Controls.Find("picCheckBox", true).FirstOrDefault(); |
| | | if (specificControl != null) |
| | | { |
| | | specificControl.Visible = false; |
| | | specificControl.Image = global::Gs.DevApp.Properties.Resources.ico_noCheck; |
| | | specificControl.Tag = "未审核"; |
| | | } |
| | | } |
| | | } |