copy from DevApp/Gs.DevApp/UserControl/SelectItemTbl.cs
copy to DevApp/Gs.DevApp/DevFrm/WW/SelectWwPc.cs
Îļþ´Ó DevApp/Gs.DevApp/UserControl/SelectItemTbl.cs ¸´ÖÆ |
| | |
| | | using Gs.DevApp.ToolBox; |
| | | using DevExpress.XtraEditors; |
| | | using Gs.DevApp.ToolBox; |
| | | using Newtonsoft.Json; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | |
| | | namespace Gs.DevApp.UserControl |
| | | { |
| | | public partial class SelectItemTbl : DevExpress.XtraEditors.XtraForm |
| | | public partial class SelectWwPc : DevExpress.XtraEditors.XtraForm |
| | | { |
| | | private readonly string _webServiceName = "MesItemTblManager/"; |
| | | private string daaGuid = ""; |
| | | public SelectItemTbl(string _daaGuid) |
| | | |
| | | private readonly string _webServiceName = "WWPCManager/"; |
| | | private string lineId = ""; |
| | | public SelectWwPc(string _lineId) |
| | | { |
| | | InitializeComponent(); |
| | | this.daaGuid = _daaGuid; |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, null, "", (value) => |
| | | { |
| | | |
| | | }, null, false); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, null, "", null, null, false); |
| | | getPageList(1); |
| | | btnIn.Click += (s, e) => |
| | | { |
| | |
| | | DataTable dt = this.gcMain.DataSource as DataTable;//å¾å°GridControlçæ°æ®æº |
| | | foreach (int idx in rows) |
| | | { |
| | | string _guid = dt.Rows[idx]["dabGuid"].ToString(); |
| | | string _guid = dt.Rows[idx]["guid"].ToString(); |
| | | list.Add(_guid); |
| | | } |
| | | UpdateParent?.Invoke(this, |
| | |
| | | /// </summary> |
| | | public event EventHandler<UpdateParentEventArgs> UpdateParent; |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// </summary> |
| | | /// <param name="curPage">第å 页</param> |
| | |
| | | everyPageSize = 999999, |
| | | sortName = "", |
| | | keyWhere = "", |
| | | daaGuid = daaGuid |
| | | inBusType = "CG", |
| | | lineId = this.lineId |
| | | }; |
| | | var json = JsonConvert.SerializeObject(_obj); |
| | | try |
| | | { |
| | | var strReturn = UtilityHelper.HttpPost("", |
| | | _webServiceName + "SelectPba", json); |
| | | _webServiceName + "SelectForm", json); |
| | | var dd = UtilityHelper.ReturnToTablePage(strReturn); |
| | | var dt = dd.rtnData.list; |
| | | gcMain.BindingContext = new BindingContext(); |