| | |
| | | ConfigurationManager.AppSettings["WebApiUrl"]; |
| | | |
| | | /// <summary> |
| | | /// 数据过滤 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public static string GetOrgWhere() |
| | | { |
| | | System.Text.StringBuilder sb = new System.Text.StringBuilder(); |
| | | sb.Append(" (select aboutGuid as fid from SYS_USER_BIND where userGuid='" + LoginInfoModel.CurrentUser.LoginUserGuid + "' and ftype='组织')"); |
| | | return sb.ToString(); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 读取加载信息 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | |
| | | { |
| | | colmn.Visible = !isEdt; |
| | | if (colmn.Visible == true) |
| | | colmn.VisibleIndex = 99999; |
| | | colmn.VisibleIndex = 1; |
| | | } |
| | | else |
| | | { |
| | |
| | | if (colType is UcLookOrg) |
| | | { |
| | | var txt = colType as UcLookOrg; |
| | | txt.SetIdOrCode(strVal); |
| | | txt.IsReadly = isEdt; |
| | | continue; |
| | | } |
| | | if (colType is UcLookKw) |
| | | { |
| | | var txt = colType as UcLookKw; |
| | | txt.SetIdOrCode(strVal); |
| | | txt.IsReadly = isEdt; |
| | | continue; |
| | |
| | | txt.IsReadly = isEdt; |
| | | continue; |
| | | } |
| | | // |
| | | if (ctrl is UcLookKw) |
| | | { |
| | | var txt = ctrl as UcLookKw; |
| | | txt.SetIdOrCode("-1"); |
| | | txt.IsReadly = isEdt; |
| | | continue; |
| | | } |
| | | //自定义单据类型下拉 |
| | | if (ctrl is UcDictionaryComBox) |
| | | { |
| | |
| | | if (ctrl is UcLookCk) |
| | | { |
| | | var txt = ctrl as UcLookCk; |
| | | txt.IsReadly = isEdt; |
| | | continue; |
| | | } |
| | | //自定义仓库 |
| | | if (ctrl is UcLookKw) |
| | | { |
| | | var txt = ctrl as UcLookKw; |
| | | txt.IsReadly = isEdt; |
| | | continue; |
| | | } |
| | |
| | | /// <param name="isPostSearch"></param> |
| | | /// <param name="action2">委托2(列表显示明细)</param> |
| | | public static void SetGridViewParameter(GridView gridView1, PictureBox picCheckBox = null, Form fm = null, string fileName = "checkStatus", string icoName = "", DelegateGetModel action = null, DevExpress.Utils.ToolTipController tips = null, bool isPostSearch = true, DelegateGetModel action2 = null) |
| | | { |
| | | gridView1.PopupMenuShowing += (s, e) => |
| | | { //2025-09-04 kyy 引入中文插件注 |
| | | /*gridView1.PopupMenuShowing += (s, e) => |
| | | { |
| | | if (e.MenuType == DevExpress.XtraGrid.Views.Grid.GridMenuType.Column) |
| | | { |
| | |
| | | } |
| | | } |
| | | } |
| | | }; |
| | | };*/ |
| | | gridView1.OptionsView.ColumnAutoWidth = false;//自动调整列宽 |
| | | if (isPostSearch == true) |
| | | { |
| | |
| | | /// <param name="icoName"></param> |
| | | public static void SetGridViewParameterMx(GridView gridView1, DevExpress.Utils.ToolTipController tips = null) |
| | | { |
| | | gridView1.PopupMenuShowing += (s, e) => |
| | | //2025-09-04 kyy 注 |
| | | /* gridView1.PopupMenuShowing += (s, e) => |
| | | { |
| | | if (e.MenuType == DevExpress.XtraGrid.Views.Grid.GridMenuType.Column) |
| | | { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | }; |
| | | gridView1.OptionsView.ShowGroupPanel = false; |
| | | gridView1.OptionsCustomization.AllowGroup = false; |
| | | gridView1.OptionsCustomization.AllowGroup = false;*/ |
| | | |
| | | // gridView1.OptionsView.Alignment = DataGridViewContentAlignment.MiddleLeft; |
| | | foreach (GridColumn column in gridView1.Columns) |
| | |
| | | return false; |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 设置GridView复选框列点击时自动刷新条件汇总 |
| | | /// 2025-08-15 kyy 新增公用方法 |
| | |
| | | ipqc首检, |
| | | fqc, |
| | | 生产退料入库检, |
| | | 其它入库检 |
| | | 其它入库检, |
| | | 销售退货入库检, |
| | | 超期检, |
| | | 委外退料入库检, |
| | | cqcjyes,//重检方案 |
| | | cqcjno,//重检方案 |
| | | 产线称重, |
| | | iqc称重, |
| | | 受托入库 |
| | | } |
| | | |
| | | |
| | | |
| | | public enum OrderType |
| | | { |
| | | 其它入库, |
| | | 物料调拨, |
| | | 其它出库 |
| | | } |
| | | |
| | | |
| | | } |