| | |
| | | MessageBox.Show(ex.Message); |
| | | } |
| | | } |
| | | |
| | | foreach (Control ctrl in controls) |
| | | { |
| | | if (ctrl is TextEdit) |
| | | { |
| | | var txt = ctrl as TextEdit; |
| | | if (_isRead(txt.Tag)) |
| | | { |
| | | txt.ReadOnly = true; |
| | | } |
| | | else |
| | | txt.ReadOnly = isEdt; |
| | | continue; |
| | | } |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | btnChkIco.Text = checkStatus; |
| | | btnChkIco.Visible = true; |
| | | if (checkStatus == "1" || checkStatus.ToUpper() == true.ToString().ToUpper()) |
| | | { |
| | | btnChkIco.Image = global::Gs.DevApp.Properties.Resources.ico_check; |
| | | btnChkIco.Tag = "已审核"; |
| | | } |
| | | else |
| | | { |
| | | btnChkIco.Image = global::Gs.DevApp.Properties.Resources.ico_noCheck; |
| | | btnChkIco.Tag = "未审核"; |
| | | } |
| | | btnChkIco.Anchor = AnchorStyles.Top | AnchorStyles.Right; // 靠右 |
| | | btnChkIco.Location = new Point(fm.ClientSize.Width - btnChkIco.Width - 20, 80); // 距离顶部10像素 |
| | | } |