| | |
| | | /// <summary> |
| | | /// http请求 |
| | | /// </summary> |
| | | /// <param name="url"></param> |
| | | /// <param name="meth"></param> |
| | | /// <param name="param"></param> |
| | | /// <param name="isLoading"></param> |
| | | /// <param name="url">api根地址</param> |
| | | /// <param name="meth">方法名称</param> |
| | | /// <param name="param">json参数</param> |
| | | /// <param name="isLoading">是否loading</param> |
| | | /// <returns></returns> |
| | | public static string HttpPost(string url, string meth, string param, bool isLoading = true) |
| | | { |
| | |
| | | txt.Enabled = !isEdt; |
| | | continue; |
| | | } |
| | | //多选 |
| | | if (colType is RadioGroup) |
| | | { |
| | | var txt = colType as RadioGroup; |
| | | if (txt != null) |
| | | txt.SelectedIndex =int.Parse( strVal); |
| | | txt.ReadOnly = isEdt; |
| | | continue; |
| | | } |
| | | //时间 |
| | | if (colType is DateTimePicker) |
| | | { |
| | |
| | | txt.ReadOnly = isEdt; |
| | | continue; |
| | | } |
| | | //多选 |
| | | if (ctrl is RadioGroup) |
| | | { |
| | | var txt = ctrl as RadioGroup; |
| | | if (txt != null) |
| | | txt.SelectedIndex = 0; |
| | | txt.ReadOnly = isEdt; |
| | | continue; |
| | | } |
| | | //时间 |
| | | if (ctrl is DateTimePicker) |
| | | { |
| | |
| | | txt.ReadOnly = isEdt; |
| | | continue; |
| | | } |
| | | //多选 |
| | | if (ctrl is RadioGroup) |
| | | { |
| | | var txt = ctrl as RadioGroup; |
| | | txt.ReadOnly = isEdt; |
| | | continue; |
| | | } |
| | | //日期 |
| | | if (ctrl is DateTimePicker) |
| | | { |