| | |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | using DevExpress.XtraEditors; |
| | | using DevExpress.XtraGrid.Views.Grid; |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.ToolBox; |
| | | using Gs.DevApp.UserControl; |
| | |
| | | toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; |
| | | toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; |
| | | gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1); |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1); |
| | | } |
| | | |
| | | private void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | |
| | | } |
| | | |
| | | private void getModel(string strGuid, bool isEdit, int tabIdx) |
| | |
| | | this.gv_prdPack.AppearanceCell.Options.UseFont = true; |
| | | this.gv_prdPack.Caption = "最小包装数"; |
| | | this.gv_prdPack.FieldName = "prdPack"; |
| | | this.gv_prdPack.MinWidth = 80; |
| | | this.gv_prdPack.MinWidth = 50; |
| | | this.gv_prdPack.Name = "gv_prdPack"; |
| | | this.gv_prdPack.OptionsColumn.AllowEdit = false; |
| | | this.gv_prdPack.Tag = "query_a.prd_pack"; |
| | |
| | | this.gv_highLimt.AppearanceCell.Options.UseFont = true; |
| | | this.gv_highLimt.Caption = "最大库存"; |
| | | this.gv_highLimt.FieldName = "highlimit"; |
| | | this.gv_highLimt.MinWidth = 80; |
| | | this.gv_highLimt.MinWidth = 50; |
| | | this.gv_highLimt.Name = "gv_highLimt"; |
| | | this.gv_highLimt.OptionsColumn.AllowEdit = false; |
| | | this.gv_highLimt.Tag = "query_a.highLimt"; |
| | |
| | | this.gv_lowLimt.AppearanceCell.Options.UseFont = true; |
| | | this.gv_lowLimt.Caption = "最低库存"; |
| | | this.gv_lowLimt.FieldName = "lowlimit"; |
| | | this.gv_lowLimt.MinWidth = 80; |
| | | this.gv_lowLimt.MinWidth = 50; |
| | | this.gv_lowLimt.Name = "gv_lowLimt"; |
| | | this.gv_lowLimt.OptionsColumn.AllowEdit = false; |
| | | this.gv_lowLimt.Tag = "query_a.lowlimit"; |
| | |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | using DevExpress.XtraEditors; |
| | |
| | | toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; |
| | | toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; |
| | | gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1); |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1); |
| | | gridView1.CustomDrawRowIndicator += (s, e) => |
| | | { |
| | | if (e.Info.IsRowIndicator && e.RowHandle >= 0) |
| | | e.Info.DisplayText = (e.RowHandle + 1).ToString(); |
| | | }; |
| | | gridView1.CustomDrawEmptyForeground += (s, e) => |
| | | { |
| | | var str = "暂未查找到匹配的数据!"; |
| | | var f = new Font("微软雅黑", 16); |
| | | var r = new Rectangle(gridView1.GridControl.Width / 2 - 100, |
| | | e.Bounds.Top + 45, e.Bounds.Right - 5, e.Bounds.Height - 5); |
| | | e.Graphics.DrawString(str, f, Brushes.Gray, r); |
| | | }; |
| | | } |
| | | private void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | | { |
| | |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | |
| | | } |
| | | |
| | | private void getModel(string strGuid, bool isEdit, int tabIdx) |
| | |
| | | { |
| | | private List<FilterEntity> _filterList = new List<FilterEntity>(); |
| | | private readonly string _webServiceName = "MesPositionManager/"; |
| | | |
| | | public Frm_MesPosition() |
| | | { |
| | | InitializeComponent(); |
| | | toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; |
| | | toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; |
| | | gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; |
| | | getPageList(1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1); |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | gridView1.CustomDrawRowIndicator += (s, e) => |
| | | { |
| | | if (e.Info.IsRowIndicator && e.RowHandle >= 0) |
| | | e.Info.DisplayText = (e.RowHandle + 1).ToString(); |
| | | }; |
| | | gridView1.CustomDrawEmptyForeground += (s, e) => |
| | | { |
| | | var str = "暂未查找到匹配的数据!"; |
| | | var f = new Font("微软雅黑", 16); |
| | | var r = new Rectangle(gridView1.GridControl.Width / 2 - 100, |
| | | e.Bounds.Top + 45, e.Bounds.Right - 5, e.Bounds.Height - 5); |
| | | e.Graphics.DrawString(str, f, Brushes.Gray, r); |
| | | }; |
| | | } |
| | | private void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | | { |
| | |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | using DevExpress.XtraEditors; |
| | |
| | | toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; |
| | | toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; |
| | | gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1); |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | gridView1.CustomDrawRowIndicator += (s, e) => |
| | | { |
| | | if (e.Info.IsRowIndicator && e.RowHandle >= 0) |
| | | e.Info.DisplayText = (e.RowHandle + 1).ToString(); |
| | | }; |
| | | gridView1.CustomDrawEmptyForeground += (s, e) => |
| | | { |
| | | var str = "暂未查找到匹配的数据!"; |
| | | var f = new Font("微软雅黑", 16); |
| | | var r = new Rectangle(gridView1.GridControl.Width / 2 - 100, |
| | | e.Bounds.Top + 45, e.Bounds.Right - 5, e.Bounds.Height - 5); |
| | | e.Graphics.DrawString(str, f, Brushes.Gray, r); |
| | | }; |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1); |
| | | } |
| | | private void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | | { |
| | |
| | | /// <param name="pageSize">每页几条</param> |
| | | private void getPageList(int curPage) |
| | | { |
| | | |
| | | var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); |
| | | var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "fname", "asc", "", |
| | | _sbSqlWhere.ToString()); |
| | |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | | return; |
| | | } |
| | | |
| | | UtilityHelper.JumpToTab(xtraTabControl1, tabIdx); |
| | | var _obj = new |
| | | { |
| | |
| | | toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; |
| | | toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; |
| | | gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1, picCheckBox, this, "checkStatus", ""); |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1, picCheckBox, this, "checkStatus", ""); |
| | | } |
| | | |
| | | private void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | |
| | | /// <param name="pageSize">每页几条</param> |
| | | private void getPageList(int curPage) |
| | | { |
| | | |
| | | |
| | | var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); |
| | | var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "a.create_date", |
| | | "asc", "", _sbSqlWhere.ToString()); |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | private void getModel(string strGuid, bool isEdit, int tabIdx) |
| | | { |
| | | if (string.IsNullOrEmpty(strGuid)) |
| | |
| | | /// <exception cref="NotImplementedException"></exception> |
| | | private void ToolBarMenu1_btnFChkClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_departmentname, gridView1, "departmentcode"); |
| | | toolBarMenu1.guidKey = rowGuid; |
| | | _toolCk(0); |
| | | } |
| | | /// <summary> |
| | | /// 取消事件 |
| | |
| | | /// <param name="e"></param> |
| | | private void ToolBarMenu1_btnChkClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_departmentname, gridView1, "departmentcode"); |
| | | toolBarMenu1.guidKey = rowGuid; |
| | | _toolCk(1); |
| | | } |
| | | /// <summary> |
| | | /// 修改事件 |
| | |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | | return; |
| | | } |
| | | |
| | | getModel(rowGuid, true, 1); |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 工具条事件 |
| | | /// </summary> |
| | | /// <param name="inFieldValue"></param> |
| | | private void _toolCk(int _inFieldValue) |
| | | { |
| | | string strMsg = ""; |
| | | switch (_inFieldValue) |
| | | { |
| | | case 1: |
| | | strMsg = "审核"; |
| | | break; |
| | | case 0: |
| | | strMsg = "反审核"; |
| | | break; |
| | | }; |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_departmentname, gridView1, "departmentname"); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | | return; |
| | | } |
| | | if (!MsgHelper.AskQuestion("你选择了【" + rowName + "】,确定" + strMsg + "吗?")) |
| | | return; |
| | | |
| | | var _obj = new |
| | | { |
| | | guid = rowGuid, |
| | | ckValue = _inFieldValue, |
| | | parameter = "SYS_DEPARTMENT,check_date,check_status,check_by" |
| | | }; |
| | | try |
| | | { |
| | | var strJson = UtilityHelper.HttpPost("", "General/GeneralCheck", |
| | | JsonConvert.SerializeObject(_obj)); |
| | | var _rtn = UtilityHelper.ReturnToDynamic(strJson); |
| | | MsgHelper.Warning(_rtn.rtnData.outMsg.ToString()); |
| | | if (_rtn.rtnCode > 0) |
| | | { |
| | | if (xtraTabControl1.SelectedTabPageIndex == 1) |
| | | getModel(lbGuid.Text.Trim(), false, 999); |
| | | else |
| | | getPageList(1); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | this.gridColumn1.FieldName = "suppSname"; |
| | | this.gridColumn1.MinWidth = 100; |
| | | this.gridColumn1.Name = "gridColumn1"; |
| | | this.gridColumn1.OptionsColumn.AllowEdit = false; |
| | | this.gridColumn1.Tag = "a.supp_sname"; |
| | | this.gridColumn1.Visible = true; |
| | | this.gridColumn1.VisibleIndex = 4; |
| | |
| | | toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; |
| | | toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; |
| | | gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; |
| | | gridView1.CustomDrawRowIndicator += |
| | | GridView1_CustomDrawRowIndicator; |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1); |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1); |
| | | } |
| | | private void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | | { |
| | | _filterList = Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns); |
| | | Task.Delay(100); |
| | | getPageList(1); |
| | | } |
| | | |
| | | private void GridView1_CustomDrawRowIndicator(object sender, |
| | | RowIndicatorCustomDrawEventArgs e) |
| | | { |
| | | if (e.Info.IsRowIndicator && e.RowHandle >= 0) |
| | | e.Info.DisplayText = (e.RowHandle + 1).ToString(); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <param name="pageSize">每页几条</param> |
| | | private void getPageList(int curPage) |
| | | { |
| | | |
| | | var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); |
| | | var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "create_date", |
| | | "asc", "", _sbSqlWhere.ToString()); |
| | |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | |
| | | } |
| | | |
| | | private void getModel(string strGuid, bool isEdit, int tabIdx) |
| | | { |
| | | if (string.IsNullOrEmpty(strGuid)) |
| | |
| | | /// <exception cref="NotImplementedException"></exception> |
| | | private void ToolBarMenu1_btnFChkClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_lookupTypeCode, gridView1); |
| | | toolBarMenu1.guidKey = rowGuid; |
| | | |
| | | _toolCk(0); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <param name="e"></param> |
| | | private void ToolBarMenu1_btnChkClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_lookupTypeCode, gridView1); |
| | | toolBarMenu1.guidKey = rowGuid; |
| | | _toolCk(1); |
| | | } |
| | | /// <summary> |
| | | /// 取消事件 |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 工具条事件 |
| | | /// </summary> |
| | | /// <param name="inFieldValue"></param> |
| | | private void _toolCk(int _inFieldValue) |
| | | { |
| | | string strMsg = ""; |
| | | switch (_inFieldValue) |
| | | { |
| | | case 1: |
| | | strMsg = "审核"; |
| | | break; |
| | | case 0: |
| | | strMsg = "反审核"; |
| | | break; |
| | | }; |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_lookupTypeName, gridView1, "lookupTypeName"); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | | return; |
| | | } |
| | | if (!MsgHelper.AskQuestion("你选择了【" + rowName + "】,确定" + strMsg + "吗?")) |
| | | return; |
| | | |
| | | var _obj = new |
| | | { |
| | | guid = rowGuid, |
| | | ckValue = _inFieldValue, |
| | | parameter = "MES_SYS_LOOKUP_TYPES,check_date,check_status,check_by" |
| | | }; |
| | | try |
| | | { |
| | | var strJson = UtilityHelper.HttpPost("", "General/GeneralCheck", |
| | | JsonConvert.SerializeObject(_obj)); |
| | | var _rtn = UtilityHelper.ReturnToDynamic(strJson); |
| | | MsgHelper.Warning(_rtn.rtnData.outMsg.ToString()); |
| | | if (_rtn.rtnCode > 0) |
| | | { |
| | | if (xtraTabControl1.SelectedTabPageIndex == 1) |
| | | getModel(lbGuid.Text.Trim(), false, 999); |
| | | else |
| | | getPageList(1); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | /// <exception cref="NotImplementedException"></exception> |
| | | private void ToolBarMenu1_btnFChkClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_lookupTypeCode, gridView1); |
| | | toolBarMenu1.guidKey = rowGuid; |
| | | _toolCk(0); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <param name="e"></param> |
| | | private void ToolBarMenu1_btnChkClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_lookupTypeCode, gridView1); |
| | | toolBarMenu1.guidKey = rowGuid; |
| | | _toolCk(1); |
| | | } |
| | | /// <summary> |
| | | /// 取消事件 |
| | |
| | | } |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// 工具条事件 |
| | | /// </summary> |
| | | /// <param name="inFieldValue"></param> |
| | | private void _toolCk(int _inFieldValue) |
| | | { |
| | | string strMsg = ""; |
| | | switch (_inFieldValue) |
| | | { |
| | | case 1: |
| | | strMsg = "审核"; |
| | | break; |
| | | case 0: |
| | | strMsg = "反审核"; |
| | | break; |
| | | }; |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_lookupTypeName, gridView1, "lookupTypeName"); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | | return; |
| | | } |
| | | if (!MsgHelper.AskQuestion("你选择了【" + rowName + "】,确定" + strMsg + "吗?")) |
| | | return; |
| | | |
| | | var _obj = new |
| | | { |
| | | guid = rowGuid, |
| | | ckValue = _inFieldValue, |
| | | parameter = "MES_SYS_LOOKUP_TYPES,check_date,check_status,check_by" |
| | | }; |
| | | try |
| | | { |
| | | var strJson = UtilityHelper.HttpPost("", "General/GeneralCheck", |
| | | JsonConvert.SerializeObject(_obj)); |
| | | var _rtn = UtilityHelper.ReturnToDynamic(strJson); |
| | | MsgHelper.Warning(_rtn.rtnData.outMsg.ToString()); |
| | | if (_rtn.rtnCode > 0) |
| | | { |
| | | if (xtraTabControl1.SelectedTabPageIndex == 1) |
| | | getModel(lbGuid.Text.Trim(), false, 999); |
| | | else |
| | | getPageList(1); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; |
| | | toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; |
| | | gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; |
| | | gridView1.FocusedRowChanged += (s, e) => |
| | | { |
| | | UtilityHelper.SetCheckIco(s, picCheckBox, this, "checkStatus", ""); |
| | | }; |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1, picCheckBox, this, "checkStatus", ""); |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | getTree(); |
| | |
| | | Txt_flagIncludeDocCode_CheckedChanged; |
| | | txt_isSpilit.CheckedChanged += |
| | | Txt_flagIncludeDocCode_CheckedChanged; |
| | | |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <exception cref="NotImplementedException"></exception> |
| | | private void ToolBarMenu1_btnFChkClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_docCode, gridView1); |
| | | toolBarMenu1.guidKey = rowGuid; |
| | | _toolCk(0); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <param name="e"></param> |
| | | private void ToolBarMenu1_btnChkClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_docCode, gridView1); |
| | | toolBarMenu1.guidKey = rowGuid; |
| | | _toolCk(1); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_docCode, gridView1); |
| | | lbGuid, txt_docCode, gridView1, "docCode"); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | |
| | | UtilityHelper.JumpToTab(xtraTabControl1, 0); |
| | | getPageList(1); |
| | | } |
| | | |
| | | MsgHelper.Warning("提示:" + _rtn.rtnMsg); |
| | | } |
| | | catch (Exception ex) |
| | |
| | | { |
| | | DoPreviewCode(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 工具条事件 |
| | | /// </summary> |
| | | /// <param name="inFieldValue"></param> |
| | | private void _toolCk(int _inFieldValue) |
| | | { |
| | | string strMsg = ""; |
| | | switch (_inFieldValue) |
| | | { |
| | | case 1: |
| | | strMsg = "审核"; |
| | | break; |
| | | case 0: |
| | | strMsg = "反审核"; |
| | | break; |
| | | }; |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_docCode, gridView1, "docCode"); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | | return; |
| | | } |
| | | if (!MsgHelper.AskQuestion("你选择了【" + rowName + "】,确定" + strMsg + "吗?")) |
| | | return; |
| | | |
| | | var _obj = new |
| | | { |
| | | guid = rowGuid, |
| | | ckValue = _inFieldValue, |
| | | parameter = "SYS_DOC_RULE,check_date,check_status,check_by" |
| | | }; |
| | | try |
| | | { |
| | | var strJson = UtilityHelper.HttpPost("","General/GeneralCheck", |
| | | JsonConvert.SerializeObject(_obj)); |
| | | var _rtn = UtilityHelper.ReturnToDynamic(strJson); |
| | | MsgHelper.Warning(_rtn.rtnData.outMsg.ToString()); |
| | | if (_rtn.rtnCode > 0) |
| | | { |
| | | if (xtraTabControl1.SelectedTabPageIndex == 1) |
| | | getModel(lbGuid.Text.Trim(), false, 999); |
| | | else |
| | | getPageList(1); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions2 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject5 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject6 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject7 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject8 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | this.lb_pageStatus = new DevExpress.XtraEditors.LabelControl(); |
| | | this.gv_pageStatus = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | this.lb_pageIdx = new DevExpress.XtraEditors.LabelControl(); |
| | |
| | | this.toolBarMenu1 = new Gs.DevApp.UserControl.UcToolBarMenu(); |
| | | this.gcMain = new DevExpress.XtraGrid.GridControl(); |
| | | this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | this.repositoryItemButtonEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit(); |
| | | this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); |
| | | this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage(); |
| | | this.pageBar1 = new UserControls.Data.UcPageBar(); |
| | |
| | | ((System.ComponentModel.ISupportInitialize)(this.txt_pageView.Properties)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.gcMain)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.repositoryItemButtonEdit1)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); |
| | | this.xtraTabControl1.SuspendLayout(); |
| | | this.xtraTabPage1.SuspendLayout(); |
| | |
| | | this.gcMain.Location = new System.Drawing.Point(0, 0); |
| | | this.gcMain.MainView = this.gridView1; |
| | | this.gcMain.Name = "gcMain"; |
| | | this.gcMain.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { |
| | | this.repositoryItemButtonEdit1}); |
| | | this.gcMain.Size = new System.Drawing.Size(1126, 531); |
| | | this.gcMain.TabIndex = 1; |
| | | this.gcMain.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { |
| | |
| | | this.gv_icoimg, |
| | | this.gv_pageGroup, |
| | | this.gv_pageIdx, |
| | | this.gv_pageStatus}); |
| | | this.gv_pageStatus, |
| | | this.gridColumn1}); |
| | | this.gridView1.GridControl = this.gcMain; |
| | | this.gridView1.IndicatorWidth = 50; |
| | | this.gridView1.Name = "gridView1"; |
| | | this.gridView1.OptionsFind.ShowSearchNavButtons = false; |
| | | this.gridView1.OptionsView.ShowAutoFilterRow = true; |
| | | this.gridView1.OptionsView.ShowGroupPanel = false; |
| | | // |
| | | // gridColumn1 |
| | | // |
| | | this.gridColumn1.Caption = "上传图标"; |
| | | this.gridColumn1.ColumnEdit = this.repositoryItemButtonEdit1; |
| | | this.gridColumn1.MaxWidth = 80; |
| | | this.gridColumn1.MinWidth = 25; |
| | | this.gridColumn1.Name = "gridColumn1"; |
| | | this.gridColumn1.Visible = true; |
| | | this.gridColumn1.VisibleIndex = 6; |
| | | this.gridColumn1.Width = 60; |
| | | // |
| | | // repositoryItemButtonEdit1 |
| | | // |
| | | this.repositoryItemButtonEdit1.AutoHeight = false; |
| | | editorButtonImageOptions2.Image = global::Gs.DevApp.Properties.Resources.cleartablestyle_16x161; |
| | | editorButtonImageOptions2.ImageToTextAlignment = DevExpress.XtraEditors.ImageAlignToText.LeftCenter; |
| | | this.repositoryItemButtonEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { |
| | | new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "上传", -1, true, true, false, editorButtonImageOptions2, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject5, serializableAppearanceObject6, serializableAppearanceObject7, serializableAppearanceObject8, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)}); |
| | | this.repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1"; |
| | | this.repositoryItemButtonEdit1.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor; |
| | | this.repositoryItemButtonEdit1.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.repositoryItemButtonEdit1_ButtonClick); |
| | | // |
| | | // xtraTabControl1 |
| | | // |
| | |
| | | ((System.ComponentModel.ISupportInitialize)(this.txt_pageView.Properties)).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.gcMain)).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.repositoryItemButtonEdit1)).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); |
| | | this.xtraTabControl1.ResumeLayout(false); |
| | | this.xtraTabPage1.ResumeLayout(false); |
| | |
| | | private DevExpress.XtraGrid.Columns.GridColumn gv_pageView; |
| | | private DevExpress.XtraEditors.CheckEdit txt_pageStatus; |
| | | private System.Windows.Forms.NumericUpDown txt_pageIdx; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gridColumn1; |
| | | private DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit repositoryItemButtonEdit1; |
| | | } |
| | | } |
| | |
| | | pageBar1.TotalPages = dddd; |
| | | pageBar1.RecordCount = dd.rtnData.total;//记录总数 |
| | | pageBar1.CurrentPage = curPage;//当前页 |
| | | pageBar1.setTxt(); |
| | | } |
| | | else |
| | | { |
| | |
| | | ToolBox.MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | } |
| | | |
| | | private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) |
| | | { |
| | | var rowhandle = gridView1.FocusedRowHandle; |
| | | if (rowhandle < 0) |
| | | return; |
| | | if (e.Button.Index == 0) |
| | | { |
| | | var dr = gridView1.GetDataRow(rowhandle); |
| | | var mxGuid = dr["guid"].ToString(); |
| | | Gs.DevApp.UserControl.ShowUp frm = new Gs.DevApp.UserControl.ShowUp(mxGuid); |
| | | frm.UpdateParent += (ss, ee) => |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowInformation("上传成功!"); |
| | | getPageList(1, UtilityHelper.GetPageSize()); |
| | | }; |
| | | frm.ShowDialog(); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | /// <param name="e"></param> |
| | | private void ToolBarMenu1_btnQueryClick(object sender, EventArgs e) |
| | | { |
| | | |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowInformation("该窗体不支持查询,若想更新页面,请点击 刷新"); |
| | | } |
| | | /// <summary> |
| | | /// 查询回调 |
| | |
| | | i++; |
| | | } |
| | | } |
| | | |
| | | txt_icon.Properties.LargeImages = dicImg; |
| | | txt_icon.Properties.SmallImages = dicImg; |
| | | } |
| | |
| | | toolBarMenu1.btnEscClick += ToolBarMenu1_btnEscClick; |
| | | toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; |
| | | gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; |
| | | getPageList(1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1); |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | } |
| | | private void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | |
| | | /// <param name="pageSize">每页几条</param> |
| | | private void getPageList(int curPage) |
| | | { |
| | | |
| | | var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); |
| | | var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "CREATE_TIME", |
| | | "desc", "", _sbSqlWhere.ToString()); |
| | |
| | | toolBarMenu1.btnEscClick += ToolBarMenu1_btnEscClick; |
| | | toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; |
| | | gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; |
| | | getPageList(1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1); |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | } |
| | | private void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | |
| | | { |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_userName, gridView1); |
| | | lbGuid, txt_userName, gridView1, "userName"); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | | return; |
| | | } |
| | | |
| | | getModel(rowGuid, true, 1); |
| | | } |
| | | |
| | |
| | | /// <param name="pageSize">每页几条</param> |
| | | private void getPageList(int curPage) |
| | | { |
| | | |
| | | var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); |
| | | var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "CREATE_TIME", |
| | | "asc", "", _sbSqlWhere.ToString()); |
| | |
| | | /* Create By GS EasyCode */ |
| | | namespace Gs.DevApp.DevFrm |
| | | { |
| | | partial class Frm_MesDepot |
| | | partial class Frm_MesDepot |
| | | { |
| | | /// <summary> |
| | | /// Required designer variable. |
| | |
| | | this.tabMxPage1.Controls.Add(this.gcMx1); |
| | | this.tabMxPage1.Name = "tabMxPage1"; |
| | | this.tabMxPage1.Size = new System.Drawing.Size(1124, 338); |
| | | this.tabMxPage1.Text = "明细1"; |
| | | this.tabMxPage1.Text = "仓位列表"; |
| | | // |
| | | // gcMx1 |
| | | // |
| | |
| | | |
| | | } |
| | | #endregion |
| | | private UserControl.UcToolBarMenu toolBarMenu1; |
| | | private UserControl.UcToolBarMenu toolBarMenu1; |
| | | private DevExpress.XtraGrid.GridControl gcMain; |
| | | private DevExpress.XtraGrid.Views.Grid.GridView gridView1; |
| | | private DevExpress.XtraTab.XtraTabControl xtraTabControl1; |
| | |
| | | private System.Windows.Forms.Panel panel1; |
| | | private System.Windows.Forms.Label lbGuid; |
| | | private DevExpress.XtraEditors.LabelControl labelControl11; |
| | | private DevExpress.XtraTab.XtraTabControl tabMx; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gvMx1depotSectionNamet; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gvMx1kbQty; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gvMx1lastupdateDate; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gvMx1lastupdateBy; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gvMx1description; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gvMx1completenessFlag; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gvMx1depotSectionName; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gvMx1depotSectionCode; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gvMx1guid; |
| | | private DevExpress.XtraTab.XtraTabPage tabMxPage1; |
| | | private DevExpress.XtraGrid.GridControl gcMx1; |
| | | private DevExpress.XtraGrid.Views.Grid.GridView gvMx1; |
| | | private DevExpress.XtraTab.XtraTabControl tabMx; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gvMx1depotSectionNamet; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gvMx1kbQty; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gvMx1lastupdateDate; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gvMx1lastupdateBy; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gvMx1description; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gvMx1completenessFlag; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gvMx1depotSectionName; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gvMx1depotSectionCode; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gvMx1guid; |
| | | private DevExpress.XtraTab.XtraTabPage tabMxPage1; |
| | | private DevExpress.XtraGrid.GridControl gcMx1; |
| | | private DevExpress.XtraGrid.Views.Grid.GridView gvMx1; |
| | | |
| | | private DevExpress.XtraEditors.LabelControl lb_materialProperti; |
| | | private DevExpress.XtraEditors.TextEdit txt_materialProperti; |
| | | private DevExpress.XtraEditors.LabelControl lb_materialProperti; |
| | | private DevExpress.XtraEditors.TextEdit txt_materialProperti; |
| | | |
| | | private DevExpress.XtraEditors.LabelControl lb_isFkc; |
| | | private DevExpress.XtraEditors.TextEdit txt_isFkc; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gv_isFkc; |
| | | private DevExpress.XtraEditors.LabelControl lb_isFkc; |
| | | private DevExpress.XtraEditors.TextEdit txt_isFkc; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gv_isFkc; |
| | | |
| | | private DevExpress.XtraEditors.LabelControl lb_zuid; |
| | | private DevExpress.XtraEditors.TextEdit txt_zuid; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gv_zuid; |
| | | private DevExpress.XtraEditors.LabelControl lb_zuid; |
| | | private DevExpress.XtraEditors.TextEdit txt_zuid; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gv_zuid; |
| | | |
| | | private DevExpress.XtraEditors.LabelControl lb_piType; |
| | | private DevExpress.XtraEditors.TextEdit txt_piType; |
| | | private DevExpress.XtraEditors.LabelControl lb_piType; |
| | | private DevExpress.XtraEditors.TextEdit txt_piType; |
| | | |
| | | private DevExpress.XtraEditors.LabelControl lb_cwhaddress; |
| | | private DevExpress.XtraEditors.TextEdit txt_cwhaddress; |
| | | private DevExpress.XtraEditors.LabelControl lb_cwhaddress; |
| | | private DevExpress.XtraEditors.TextEdit txt_cwhaddress; |
| | | |
| | | private DevExpress.XtraEditors.LabelControl lb_isNg; |
| | | private DevExpress.XtraEditors.TextEdit txt_isNg; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gv_isNg; |
| | | private DevExpress.XtraEditors.LabelControl lb_isNg; |
| | | private DevExpress.XtraEditors.TextEdit txt_isNg; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gv_isNg; |
| | | |
| | | private DevExpress.XtraEditors.LabelControl lb_isWy; |
| | | private DevExpress.XtraEditors.TextEdit txt_isWy; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gv_isWy; |
| | | private DevExpress.XtraEditors.LabelControl lb_isWy; |
| | | private DevExpress.XtraEditors.TextEdit txt_isWy; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gv_isWy; |
| | | |
| | | private DevExpress.XtraEditors.LabelControl lb_iconType; |
| | | private DevExpress.XtraEditors.TextEdit txt_iconType; |
| | | private DevExpress.XtraEditors.LabelControl lb_iconType; |
| | | private DevExpress.XtraEditors.TextEdit txt_iconType; |
| | | |
| | | private DevExpress.XtraEditors.LabelControl lb_depottypecode; |
| | | private DevExpress.XtraEditors.TextEdit txt_depottypecode; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gv_depottypecode; |
| | | private DevExpress.XtraEditors.LabelControl lb_depottypecode; |
| | | private DevExpress.XtraEditors.TextEdit txt_depottypecode; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gv_depottypecode; |
| | | |
| | | private DevExpress.XtraEditors.LabelControl lb_type2; |
| | | private DevExpress.XtraEditors.TextEdit txt_type2; |
| | | private DevExpress.XtraEditors.LabelControl lb_type2; |
| | | private DevExpress.XtraEditors.TextEdit txt_type2; |
| | | |
| | | private DevExpress.XtraEditors.LabelControl lb_type1; |
| | | private DevExpress.XtraEditors.TextEdit txt_type1; |
| | | private DevExpress.XtraEditors.LabelControl lb_type1; |
| | | private DevExpress.XtraEditors.TextEdit txt_type1; |
| | | |
| | | private DevExpress.XtraEditors.LabelControl lb_factory; |
| | | private DevExpress.XtraEditors.TextEdit txt_factory; |
| | | private DevExpress.XtraEditors.LabelControl lb_factory; |
| | | private DevExpress.XtraEditors.TextEdit txt_factory; |
| | | |
| | | private DevExpress.XtraEditors.LabelControl lb_depottype; |
| | | private DevExpress.XtraEditors.TextEdit txt_depottype; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gv_depottype; |
| | | private DevExpress.XtraEditors.LabelControl lb_depottype; |
| | | private DevExpress.XtraEditors.TextEdit txt_depottype; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gv_depottype; |
| | | |
| | | private DevExpress.XtraEditors.LabelControl lb_lastupdateDate; |
| | | private DevExpress.XtraEditors.TextEdit txt_lastupdateDate; |
| | | private DevExpress.XtraEditors.LabelControl lb_lastupdateDate; |
| | | private DevExpress.XtraEditors.TextEdit txt_lastupdateDate; |
| | | |
| | | private DevExpress.XtraEditors.LabelControl lb_lastupdateBy; |
| | | private DevExpress.XtraEditors.TextEdit txt_lastupdateBy; |
| | | private DevExpress.XtraEditors.LabelControl lb_lastupdateBy; |
| | | private DevExpress.XtraEditors.TextEdit txt_lastupdateBy; |
| | | |
| | | private DevExpress.XtraEditors.LabelControl lb_createDate; |
| | | private DevExpress.XtraEditors.TextEdit txt_createDate; |
| | | private DevExpress.XtraEditors.LabelControl lb_createDate; |
| | | private DevExpress.XtraEditors.TextEdit txt_createDate; |
| | | |
| | | private DevExpress.XtraEditors.LabelControl lb_createBy; |
| | | private DevExpress.XtraEditors.TextEdit txt_createBy; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gv_createBy; |
| | | private DevExpress.XtraEditors.LabelControl lb_createBy; |
| | | private DevExpress.XtraEditors.TextEdit txt_createBy; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gv_createBy; |
| | | |
| | | private DevExpress.XtraEditors.LabelControl lb_description; |
| | | private DevExpress.XtraEditors.TextEdit txt_description; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gv_description; |
| | | private DevExpress.XtraEditors.LabelControl lb_description; |
| | | private DevExpress.XtraEditors.TextEdit txt_description; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gv_description; |
| | | |
| | | private DevExpress.XtraEditors.LabelControl lb_depotName; |
| | | private DevExpress.XtraEditors.TextEdit txt_depotName; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gv_depotName; |
| | | private DevExpress.XtraEditors.LabelControl lb_depotName; |
| | | private DevExpress.XtraEditors.TextEdit txt_depotName; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gv_depotName; |
| | | |
| | | private DevExpress.XtraEditors.LabelControl lb_depotCode; |
| | | private DevExpress.XtraEditors.TextEdit txt_depotCode; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gv_depotCode; |
| | | private DevExpress.XtraEditors.LabelControl lb_depotCode; |
| | | private DevExpress.XtraEditors.TextEdit txt_depotCode; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gv_depotCode; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gvMxDel; |
| | | private DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit repositoryItemButtonEdit1; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gv_id; |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Text; |
| | | using System.Windows.Forms; |
| | | using DevExpress.XtraEditors; |
| | | using DevExpress.XtraEditors.Controls; |
| | |
| | | toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; |
| | | toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; |
| | | gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; |
| | | getPageList(1, UtilityHelper.GetPageSize()); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1, picCheckBox, this, "checkStatus", ""); |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | } |
| | | |
| | |
| | | /// <param name="pageSize"></param> |
| | | private void PageBar1_PagerEvent(int curPage, int pageSize) |
| | | { |
| | | getPageList(curPage, pageSize); |
| | | getPageList(curPage); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | private void Frm_UpdateParent(object sender, UpdateParentEventArgs e) |
| | | { |
| | | _filterList = e.FilterList; |
| | | getPageList(1, pageBar1.RowsCount); |
| | | getPageList(1); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <exception cref="NotImplementedException"></exception> |
| | | private void ToolBarMenu1_btnFChkClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_depotName, gridView1); |
| | | toolBarMenu1.guidKey = rowGuid; |
| | | _toolCk(0); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <param name="e"></param> |
| | | private void ToolBarMenu1_btnChkClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_depotName, gridView1); |
| | | toolBarMenu1.guidKey = rowGuid; |
| | | _toolCk(1); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | if (xtraTabControl1.SelectedTabPageIndex == 1) |
| | | getModel(lbGuid.Text.Trim(), false, 999); |
| | | else |
| | | getPageList(1, UtilityHelper.GetPageSize()); |
| | | getPageList(1); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | CompletenessFlag = Gs.DevApp.ToolBox.UtilityHelper.ToInt(row["completenessFlag"].ToString()), |
| | | }); |
| | | } |
| | | |
| | | var _obj = new MesDepots |
| | | { |
| | | Guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), |
| | |
| | | /// </summary> |
| | | /// <param name="curPage">第几页</param> |
| | | /// <param name="pageSize">每页几条</param> |
| | | private void getPageList(int curPage, int pageSize) |
| | | private void getPageList(int curPage) |
| | | { |
| | | var _sbSqlWhere = new StringBuilder(); |
| | | foreach (var itm in _filterList) |
| | | _sbSqlWhere.Append(" and " + itm.fileId + itm.fileOper + "'" + |
| | | itm.fileValue + "'"); |
| | | var pgq = new PageQueryModel(curPage, pageSize, "a.depot_code", "asc", |
| | | var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); |
| | | var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "a.depot_code", "asc", |
| | | "", _sbSqlWhere.ToString()); |
| | | var json = JsonConvert.SerializeObject(pgq); |
| | | try |
| | |
| | | pageBar1.TotalPages = dddd; |
| | | pageBar1.RecordCount = dd.rtnData.total; //记录总数 |
| | | pageBar1.CurrentPage = curPage; //当前页 |
| | | pageBar1.setTxt(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 工具条事件 |
| | | /// </summary> |
| | | /// <param name="inFieldValue"></param> |
| | | private void _toolCk(int _inFieldValue) |
| | | { |
| | | string strMsg = ""; |
| | | switch (_inFieldValue) |
| | | { |
| | | case 1: |
| | | strMsg = "审核"; |
| | | break; |
| | | case 0: |
| | | strMsg = "反审核"; |
| | | break; |
| | | }; |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_depotName, gridView1, "depotName"); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | | return; |
| | | } |
| | | if (!MsgHelper.AskQuestion("你选择了【" + rowName + "】,确定" + strMsg + "吗?")) |
| | | return; |
| | | |
| | | var _obj = new |
| | | { |
| | | guid = rowGuid, |
| | | ckValue = _inFieldValue, |
| | | parameter = "MES_DEPOTS,check_date,check_status,check_by" |
| | | }; |
| | | try |
| | | { |
| | | var strJson = UtilityHelper.HttpPost("", "General/GeneralCheck", |
| | | JsonConvert.SerializeObject(_obj)); |
| | | var _rtn = UtilityHelper.ReturnToDynamic(strJson); |
| | | MsgHelper.Warning(_rtn.rtnData.outMsg.ToString()); |
| | | if (_rtn.rtnCode > 0) |
| | | { |
| | | if (xtraTabControl1.SelectedTabPageIndex == 1) |
| | | getModel(lbGuid.Text.Trim(), false, 999); |
| | | else |
| | | getPageList(1); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | <None Include="Resources\deletelist2_16x16.png" /> |
| | | <None Include="Resources\reset_16x16.png" /> |
| | | <None Include="Resources\exportfile_16x161.png" /> |
| | | <None Include="Resources\cleartablestyle_16x161.png" /> |
| | | <Content Include="Resources\user_16x16.png" /> |
| | | </ItemGroup> |
| | | <ItemGroup /> |
| | |
| | | /// <summary> |
| | | /// 查找 System.Drawing.Bitmap 类型的本地化资源。 |
| | | /// </summary> |
| | | internal static System.Drawing.Bitmap cleartablestyle_16x161 { |
| | | get { |
| | | object obj = ResourceManager.GetObject("cleartablestyle_16x161", resourceCulture); |
| | | return ((System.Drawing.Bitmap)(obj)); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 查找 System.Drawing.Bitmap 类型的本地化资源。 |
| | | /// </summary> |
| | | internal static System.Drawing.Bitmap close_16x16 { |
| | | get { |
| | | object obj = ResourceManager.GetObject("close_16x16", resourceCulture); |
| | |
| | | <data name="refresh_32x321" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\refresh_32x321.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="logo_png_black" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\logo_png_black.png;System.Drawing.Bitmap, |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="usergroup_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\usergroup_32x32.png;System.Drawing.Bitmap, |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | |
| | | <data name="checkbuttons_16x162" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\checkbuttons_16x162.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="checkbox2_32x321" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\checkbox2_32x321.png;System.Drawing.Bitmap, |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="updatetableofcontents_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\updatetableofcontents_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="checkbox_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\checkbox_32x32.png;System.Drawing.Bitmap, |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="sortbyinvoice_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\sortbyinvoice_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | |
| | | <data name="reset_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\reset_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="bodepartment_16x161" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\bodepartment_16x161.png;System.Drawing.Bitmap, |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="bouser_16x162" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\bouser_16x162.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="viewmergeddata_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\viewmergeddata_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="checkbox2_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\checkbox2_16x16.png;System.Drawing.Bitmap, |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | |
| | | </data> |
| | | <data name="checkbox2_32x323" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\checkbox2_32x323.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="drilldownonarguments_chart_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\drilldownonarguments_chart_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="trackingchanges_previous_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\trackingchanges_previous_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | |
| | | <value>..\Resources\logo_png.png;System.Drawing.Bitmap, System.Drawing, |
| | | Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="spellcheck_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\spellcheck_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="renamedatasource_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\renamedatasource_32x32.png;System.Drawing.Bitmap, |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | |
| | | <data name="sortasc_32x321" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\sortasc_32x321.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="newitem_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\newitem_16x16.png;System.Drawing.Bitmap, |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="checkbox2_16x161" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\checkbox2_16x161.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="deletelist2_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\deletelist2_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="show_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\show_32x32.png;System.Drawing.Bitmap, |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="show_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\show_16x16.png;System.Drawing.Bitmap, |
| | |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="ico_noCheck" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\ico_noCheck.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="engineering_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\engineering_16x16.png;System.Drawing.Bitmap, |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | |
| | | </data> |
| | | <data name="dropandhighlowlines_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\dropandhighlowlines_16x16.png;System.Drawing.Bitmap, |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="converttorange_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\converttorange_32x32.png;System.Drawing.Bitmap, |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="alignmiddlecenter_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\alignmiddlecenter_32x32.png;System.Drawing.Bitmap, |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="trackingchanges_next_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\trackingchanges_next_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | |
| | | </data> |
| | | <data name="sortasc_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\sortasc_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="fill_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\fill_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="meeting_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\meeting_32x32.png;System.Drawing.Bitmap, |
| | |
| | | <data name="down_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\down_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="exportfile_16x161" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\exportfile_16x161.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="filledradarwithoutmarkers_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\filledradarwithoutmarkers_32x32.png;System.Drawing.Bitmap, |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="fill_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\fill_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | <data name="alignmiddlecenter_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\alignmiddlecenter_32x32.png;System.Drawing.Bitmap, |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="addcalculatedfield_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\addcalculatedfield_16x16.png;System.Drawing.Bitmap, |
| | |
| | | <value>..\Resources\login_bg6.png;System.Drawing.Bitmap, System.Drawing, |
| | | Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="spellcheck_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\spellcheck_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | <data name="checkbox2_32x321" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\checkbox2_32x321.png;System.Drawing.Bitmap, |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="convert_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\convert_32x32.png;System.Drawing.Bitmap, |
| | |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="area3d_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\area3d_32x32.png;System.Drawing.Bitmap, |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="printlayoutview_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\printlayoutview_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="checkbuttons_32x322" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\checkbuttons_32x322.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="area3d_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\area3d_32x32.png;System.Drawing.Bitmap, |
| | | <data name="checkbox_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\checkbox_32x32.png;System.Drawing.Bitmap, |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="loadfrom_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\loadfrom_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="drilldownonarguments_chart_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\drilldownonarguments_chart_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | <data name="show_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\show_32x32.png;System.Drawing.Bitmap, |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="changedatasourcepivottable_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\changedatasourcepivottable_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="bodepartment_16x161" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\bodepartment_16x161.png;System.Drawing.Bitmap, |
| | | <data name="viewmergeddata_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\viewmergeddata_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="logo_png_black" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\logo_png_black.png;System.Drawing.Bitmap, |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="ico_noCheck" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\ico_noCheck.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="insertdatafield_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\insertdatafield_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | |
| | | <data name="add_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\add_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="converttorange_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\converttorange_32x32.png;System.Drawing.Bitmap, |
| | | <data name="newitem_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\newitem_16x16.png;System.Drawing.Bitmap, |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | |
| | | System.Drawing, Version=4.0.0.0, Culture=neutral, |
| | | PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="exportfile_16x161" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\exportfile_16x161.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | <data name="cleartablestyle_16x161" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\cleartablestyle_16x161.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | </root> |
| | |
| | | if (btnFChkClick != null) |
| | | { |
| | | btnFChkClick(this, e); |
| | | return; |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(guidKey)) |
| | | { |
| | | // MsgHelper.Warning("请先选择你要操作的行!"); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | if (string.IsNullOrEmpty(chkParameter)) |
| | | { |
| | | MsgHelper.ShowError("没有指定审核参数,请联系开发人员获取支持!"); |
| | | return; |
| | | } |
| | | |
| | | if (!MsgHelper.AskQuestion("你选择了1条数据,确定反审核吗?")) |
| | | return; |
| | | _ckService(0.ToString()); |
| | | } |
| | | return; |
| | | } |
| | | |
| | | private void BtnChk_ItemClick(object sender, ItemClickEventArgs e) |
| | |
| | | if (btnChkClick != null) |
| | | { |
| | | btnChkClick(this, e); |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(chkParameter)) |
| | | { |
| | | //MsgHelper.ShowError("没有指定审核参数,请联系开发人员获取支持!"); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | if (string.IsNullOrEmpty(guidKey)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | | return; |
| | | } |
| | | if (!MsgHelper.AskQuestion("你选择了1条数据,确定审核吗?")) |
| | | return; |
| | | _ckService(1.ToString()); |
| | | } |
| | | return; |
| | | } |
| | | private void BtnFjieAn_ItemClick(object sender, ItemClickEventArgs e) |
| | | { |
| | |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | private void _ckService(string _ckValue) |
| | | { |
| | | var _obj = new |
| | | { |
| | | guid = guidKey, |
| | | parameter = chkParameter, |
| | | ckValue = _ckValue |
| | | }; |
| | | var strJson = UtilityHelper.HttpPost("", "General/GeneralCheck", |
| | | JsonConvert.SerializeObject(_obj)); |
| | | var _rtn = UtilityHelper.ReturnToDynamic(strJson); |
| | | MsgHelper.Warning("提示:" + _rtn.rtnData["outMsg"].ToString()); |
| | | if (_rtn.rtnCode > 0) |
| | | { |
| | | } |
| | | } |
| | | |
| | | |
| | | #region 公共事件 |
| | | |