| | |
| | | if (Parent != null) getNamespace(); |
| | | } |
| | | |
| | | private bool _isCk(int _type) { |
| | | private bool _isCk(int _type) |
| | | { |
| | | Form parentForm = this.FindForm(); |
| | | if (parentForm != null) |
| | | { |
| | | PictureBox specificControl = (PictureBox)parentForm.Controls.Find("picCheckBox", true).FirstOrDefault(); |
| | | if (specificControl== null) |
| | | return false; |
| | | if (specificControl.Tag == null) |
| | | return false; |
| | | if (_type == 1) |
| | | { |
| | | PictureBox specificControl = (PictureBox)parentForm.Controls.Find("picCheckBox", true).FirstOrDefault(); |
| | | if (specificControl != null) |
| | | { |
| | | if (specificControl.Tag.ToString() == "已审核") |
| | |
| | | } |
| | | if (_type == 0) |
| | | { |
| | | PictureBox specificControl = (PictureBox)parentForm.Controls.Find("picCheckBox", true).FirstOrDefault(); |
| | | if (specificControl != null) |
| | | { |
| | | if (specificControl.Tag.ToString() == "未审核") |
| | |
| | | |
| | | private void BtnFjianYan_ItemClick(object sender, ItemClickEventArgs e) |
| | | { |
| | | bool bl = _isCk(0); |
| | | if (bl) return; |
| | | if (btnFjianYanClick != null) |
| | | btnFjianYanClick(this, e); |
| | | else |
| | |
| | | lst.Add(btnPiZhun.Name); |
| | | lst.Add(btnHelp.Name); |
| | | lst.Add(btnBoHui.Name); |
| | | lst.Add(btnTzbl.Name); |
| | | lst.Add(btnKg.Name); |
| | | lst.Add(btnWg.Name); |
| | | lst.Add(btnZhongTai.Name); |
| | | _enabledBtn(lst); |
| | | this.currentAction = "esc"; |
| | | if (btnEscClick != null) btnEscClick(this, e); |
| | |
| | | lst.Add(btnZhongTai.Name); |
| | | lst.Add(btnHelp.Name); |
| | | lst.Add(btnLoad.Name); |
| | | lst.Add(btnTzbl.Name); |
| | | _enabledBtn(lst); |
| | | } |
| | | } |
| | |
| | | _enabledBtn(lst); |
| | | this.currentAction = "edit"; |
| | | if (btnEdtClick != null) btnEdtClick(this, e); |
| | | |
| | | |
| | | } |
| | | |
| | | private void BtnDel_ItemClick(object sender, ItemClickEventArgs e) |
| | |
| | | if (bl) return; |
| | | if (btnDelClick != null) btnDelClick(this, e); |
| | | |
| | | // btnEsc.Enabled = false; |
| | | // btnEsc.Enabled = false; |
| | | this.currentAction = ""; |
| | | } |
| | | |
| | |
| | | Form parentForm = this.FindForm(); |
| | | if (parentForm != null) |
| | | { |
| | | PictureBox specificControl =(PictureBox) parentForm.Controls.Find("picCheckBox", true).FirstOrDefault(); |
| | | PictureBox specificControl = (PictureBox)parentForm.Controls.Find("picCheckBox", true).FirstOrDefault(); |
| | | if (specificControl != null) |
| | | { |
| | | specificControl.Image = global::Gs.DevApp.Properties.Resources.ico_noCheck; |
| | |
| | | var _obj = new |
| | | { |
| | | userGuid = LoginInfoModel.CurrentUser.LoginUserGuid, |
| | | orgGuid = LoginInfoModel.CurrentUser.LoginOrgGuid, |
| | | formNamespace = _formNamespace |
| | | }; |
| | | var strReturn = ""; |