| | |
| | | /// <returns></returns> |
| | | public static string HttpPost(string url, string meth, string param, bool isLoading = true) |
| | | { |
| | | Size _size; string _caption; Color _color; Padding _pad; |
| | | (_size, _caption, _color, _pad) = getLoading(); |
| | | DevExpress.Utils.WaitDialogForm wdf = new DevExpress.Utils.WaitDialogForm("加载进度:" + meth, _caption, _size); |
| | | wdf.BackColor = _color; |
| | | wdf.Padding = _pad; |
| | | wdf.SetCaption("加载进度:" + meth); |
| | | wdf.Visible = isLoading; |
| | | DevExpress.Utils.WaitDialogForm wdf = null; |
| | | if (isLoading == true) |
| | | { |
| | | Size _size; string _caption; Color _color; Padding _pad; |
| | | (_size, _caption, _color, _pad) = getLoading(); |
| | | wdf = new DevExpress.Utils.WaitDialogForm("加载进度:" + meth, _caption, _size); |
| | | wdf.BackColor = _color; |
| | | wdf.Padding = _pad; |
| | | wdf.SetCaption("加载进度:" + meth); |
| | | wdf.Visible = isLoading; |
| | | } |
| | | HttpWebRequest request = null; |
| | | StreamWriter requestStream = null; |
| | | WebResponse response = null; |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | wdf.Close(); |
| | | if (wdf != null) |
| | | wdf.Close(); |
| | | LogHelper.Debug(url, param + ":" + ex.Message); |
| | | throw ex; |
| | | } |
| | |
| | | requestStream = null; |
| | | response = null; |
| | | } |
| | | wdf.Close(); |
| | | if (wdf != null) |
| | | wdf.Close(); |
| | | return responseStr; |
| | | } |
| | | |
| | |
| | | { |
| | | colmn.Visible = true; |
| | | colmn.OptionsColumn.ReadOnly = false; |
| | | }; |
| | | } |
| | | ; |
| | | if (colmn.Name.ToString().Contains("gvMxDel") || colmn.Name.ToString().Contains("gvMxTui")) |
| | | { |
| | | colmn.Visible = !isEdt; |
| | |
| | | { |
| | | var txt = colType as RadioGroup; |
| | | if (txt != null) |
| | | txt.SelectedIndex =int.Parse( strVal); |
| | | txt.SelectedIndex = int.Parse(strVal); |
| | | txt.ReadOnly = isEdt; |
| | | continue; |
| | | } |
| | |
| | | { |
| | | int _handle = gridView1.FocusedRowHandle; |
| | | bool _bl = xtraTabControl1.TabPages[0].PageEnabled; |
| | | if (_bl == false) { return; }; |
| | | if (_bl == false) { return; } |
| | | ; |
| | | if (_handle < 0) |
| | | { |
| | | xtraTabControl1.SelectedTabPageIndex = -1; |
| | |
| | | 委外退料入库检, |
| | | cqcjyes,//重检方案 |
| | | cqcjno,//重检方案 |
| | | 产线称重, |
| | | iqc称重, |
| | | 受托入库 |
| | | } |
| | | |
| | | |