| | |
| | | } |
| | | public delegate void DelegateGetModel(string guid); |
| | | public delegate void DelegateGetList(int currentPage); |
| | | |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | |
| | | view.ActiveEditor.MouseUp += ActiveEditor_MouseUp; |
| | | }; |
| | | } |
| | | if (action2 != null) { |
| | | if (action2 != null) |
| | | { |
| | | gridView1.FocusedRowChanged += (s, e) => |
| | | { |
| | | int _handle = gridView1.FocusedRowHandle; |
| | |
| | | }; |
| | | } |
| | | } |
| | | |
| | | |
| | | private static void ActiveEditor_MouseUp(object sender, MouseEventArgs e) |
| | | { |
| | | BaseEdit edit = sender as BaseEdit; |
| | |
| | | edit.SelectAll(); |
| | | } |
| | | |
| | | public static void SetGridLayout(GridView gridView1) |
| | | public static void SetGridLayout(GridView gridView1,int maxWidth=500) |
| | | { |
| | | foreach (GridColumn column in gridView1.Columns) |
| | | { |
| | | if (column.Width > 500) |
| | | column.Width = 500; |
| | | if (column.Width > maxWidth) |
| | | column.Width = maxWidth; |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 设置选项卡 |
| | | /// </summary> |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <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(); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | /// <summary> |
| | | /// 判断是不是一个有效的数值 |
| | | /// </summary> |
| | |
| | | 受托入库 |
| | | } |
| | | |
| | | public enum OrderType |
| | | { |
| | | 其它入库, |
| | | 物料调拨, |
| | | 其它出库 |
| | | } |
| | | |
| | | |
| | | |
| | | } |