| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | public static string HttpPost(string url, string meth, string param) |
| | | { |
| | | string _caption = "拼命加载中,请稍后..."; |
| | |
| | | txt.Enabled = false; |
| | | continue; |
| | | } |
| | | //自定部门 |
| | | if (colType is UcLookDepartment) |
| | | { |
| | | var txt = colType as UcLookDepartment; |
| | | txt.SetIdOrCode(strVal); |
| | | if (txt.IsReadly == false) |
| | | txt.Enabled = !isEdt; |
| | | else |
| | | txt.Enabled = false; |
| | | continue; |
| | | } |
| | | if (colType is SimpleButton) |
| | | { |
| | | var txt = colType as SimpleButton; |
| | |
| | | txt.Enabled = !isEdt; |
| | | continue; |
| | | } |
| | | //自定部门 |
| | | if (ctrl is UcLookDepartment) |
| | | { |
| | | var txt = ctrl as UcLookDepartment; |
| | | txt.SetIdOrCode("-1"); |
| | | txt.Enabled = !isEdt; |
| | | continue; |
| | | } |
| | | if (ctrl is SimpleButton) |
| | | { |
| | | var txt = ctrl as SimpleButton; |
| | |
| | | txt.Enabled = false; |
| | | continue; |
| | | } |
| | | //自定部门 |
| | | if (ctrl is UcLookDepartment) |
| | | { |
| | | var txt = ctrl as UcLookDepartment; |
| | | if (txt.IsReadly == false) |
| | | txt.Enabled = !isEdt; |
| | | else |
| | | txt.Enabled = false; |
| | | continue; |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | /// </summary> |
| | | /// <param name="tabControl"></param> |
| | | /// <param name="idx">0查看,1退出,2删除,3修改,4新增加</param> |
| | | public static void JumpTab(XtraTabControl tabControl, int action) { |
| | | public static void JumpTab(XtraTabControl tabControl, int action) |
| | | { |
| | | |
| | | if (action == 0) { |
| | | if (action == 0) |
| | | { |
| | | tabControl.TabPages[0].PageEnabled = true; |
| | | tabControl.TabPages[1].PageEnabled = true; |
| | | tabControl.SelectedTabPageIndex = 1; |
| | |
| | | if (action == 4) |
| | | { |
| | | tabControl.TabPages[0].PageEnabled = false; |
| | | tabControl.TabPages[1].PageEnabled = true; |
| | | tabControl.SelectedTabPageIndex = 1; |
| | | return; |
| | | } |
| | | if (action == 5) |
| | | { |
| | | tabControl.TabPages[0].PageEnabled = true; |
| | | tabControl.TabPages[1].PageEnabled = true; |
| | | tabControl.SelectedTabPageIndex = 1; |
| | | return; |
| | |
| | | if (str.ToUpper() == "true".ToUpper()) |
| | | return 1; |
| | | return 0; |
| | | } |
| | | |
| | | public string GetIsNullOrEmpty(string str) |
| | | { |
| | | if (string.IsNullOrEmpty(str.Trim())) |
| | | return "{>"; |
| | | return str.Trim(); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | return ""; |
| | | } |
| | | |
| | |
| | | /// <param name="icoName"></param> |
| | | public static void SetGridViewParameterMx(GridView gridView1) |
| | | { |
| | | gridView1.OptionsView.ColumnAutoWidth = false;//自动调整列宽 |
| | | gridView1.OptionsFilter.AllowFilterEditor = false; |
| | | gridView1.OptionsFilter.ShowCustomFunctions = DevExpress.Utils.DefaultBoolean.False; |
| | | gridView1.OptionsCustomization.AllowFilter = false; |