| | |
| | | txt.Enabled = !isEdt; |
| | | continue; |
| | | } |
| | | //if (colType is CheckEdit) |
| | | //{ |
| | | // var txt = colType as CheckEdit; |
| | | // if (txt != null) |
| | | // txt.Checked = bool.Parse(strVal); |
| | | // txt.ReadOnly = isEdt; |
| | | // continue; |
| | | //} |
| | | |
| | | //时间 |
| | | if (colType is DateTimePicker) |
| | | { |
| | |
| | | if (ctrl is MemoEdit) |
| | | { |
| | | var txt = ctrl as MemoEdit; |
| | | txt.Text = ""; |
| | | txt.ReadOnly = isEdt; |
| | | if (txt.Tag != null && txt.Tag.ToString().Length > 0 && txt.Tag.ToString().StartsWith("moren")) |
| | | { |
| | | txt.Text = txt.Tag.ToString().Replace("moren.", ""); |
| | | } |
| | | else |
| | | txt.Text = ""; |
| | | if (_isRead(txt.Tag)) |
| | | { |
| | | txt.ReadOnly = true; |
| | | } |
| | | else |
| | | txt.ReadOnly = isEdt; |
| | | continue; |
| | | } |
| | | //下拉 |
| | |
| | | txt.ReadOnly = isEdt; |
| | | continue; |
| | | } |
| | | if (ctrl is MemoEdit) |
| | | { |
| | | var txt = ctrl as MemoEdit; |
| | | if (txt != null) |
| | | txt.Text = ""; |
| | | txt.ReadOnly = isEdt; |
| | | continue; |
| | | } |
| | | |
| | | //时间 |
| | | if (ctrl is DateTimePicker) |
| | | { |
| | |
| | | if (ctrl is MemoEdit) |
| | | { |
| | | var txt = ctrl as MemoEdit; |
| | | txt.ReadOnly = isEdt; |
| | | if (_isRead(txt.Tag)) |
| | | { |
| | | txt.ReadOnly = true; |
| | | } |
| | | else |
| | | txt.ReadOnly = isEdt; |
| | | continue; |
| | | } |
| | | //数字卡 |