| | |
| | | using Gs.DevApp.Entity; |
| | | using DevExpress.RichEdit.Export; |
| | | using DevExpress.Utils.DirectXPaint; |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.ToolBox; |
| | | using Newtonsoft.Json; |
| | | using System; |
| | |
| | | string orgId = ""; |
| | | private List<FilterEntity> _filterList = new List<FilterEntity>(); |
| | | private readonly string _webServiceName = "MesQmCheckitemManager/"; |
| | | public Frm_CqfaItems(string _strType, string _orgId) |
| | | public Frm_CqfaItems() |
| | | { |
| | | InitializeComponent(); |
| | | strType = _strType; |
| | | orgId = _orgId; |
| | | pageBar1.setBar(false); |
| | | this.gvMain.CustomDrawColumnHeader += (s, e) => { Gs.DevApp.ToolBox.UtilityHelper.CustomDrawColumnHeader(s, e); }; |
| | | this.gvMain.MouseUp += (s, e) => { Gs.DevApp.ToolBox.UtilityHelper.CustomMouseUp(s, e, gcMain, gvMain); }; |
| | |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gvMain); |
| | | } |
| | | public void Initialize() |
| | | public void Initialize(string _strType,string _orgId) |
| | | { |
| | | strType=_strType; |
| | | orgId=_orgId; |
| | | getPageList(1); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | public string GetSelect() |
| | | { |
| | | System.Text.StringBuilder sb = new System.Text.StringBuilder(); |
| | | gvMain.PostEditor(); |
| | | gvMain.UpdateCurrentRow(); |
| | | DataTable dt = this.gcMain.DataSource as DataTable; |
| | | { |
| | | foreach (DataRow dr in dt.Rows) |
| | | { |
| | | string checkBox = dr["chkInt"].ToString(); |
| | | string _guid = dr["guid"].ToString(); |
| | | if (Gs.DevApp.ToolBox.UtilityHelper.ToCheck(checkBox)) |
| | | { |
| | | if (sb.Length > 0) |
| | | sb.Append(","); |
| | | sb.Append(_guid); |
| | | } |
| | | } |
| | | } |
| | | return sb.ToString(); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |