| | |
| | | </assemblyBinding> |
| | | </runtime> |
| | | <appSettings> |
| | | <!--<add key="WebApiUrl" value="http://localhost:5263/" />--> |
| | | <add key="WebApiUrl" value="http://localhost:5263/" /> |
| | | <!--<add key="WebApiUrl" value="http://192.168.1.145:8081/" />--> |
| | | <add key="WebApiUrl" value="http://192.168.1.145:81/" /> |
| | | <!--<add key="WebApiUrl" value="http://192.168.1.145:81/" />--> |
| | | <add key="LogPath" value="logs" /> |
| | | <add key="ProductName" value="G-MES V2.0" /> |
| | | <add key="PageSize" value="50" /> |
| | |
| | | { |
| | | lbGuid.Text = ""; |
| | | Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 4); |
| | | UtilityHelper.CleanValueByControl(this.layoutMx1.Controls, true); |
| | | frm_CqfaItems1.Clean(); |
| | | frm_CqfaItems2.Clean(); |
| | | //增加时,默认组织 |
| | | string deftOrg = UtilityHelper.GetFirstOrg(txt_fSubsidiary); |
| | | } |
| | |
| | | dynamic dy = _rtn.rtnData; |
| | | lbGuid.Text = strGuid; |
| | | UtilityHelper.SetValueByObj(this.layoutMx1.Controls, dy, isEdit); |
| | | frm_CqfaItems1.Initialize(QcSeason.cqcjyes.ToString(), txt_fSubsidiary.GetId()); |
| | | frm_CqfaItems2.Initialize(QcSeason.cqcjno.ToString(), txt_fSubsidiary.GetId()); |
| | | frm_CqfaItems1.Initialize(lbGuid.Text.Trim(), QcSeason.cqcjyes.ToString(), txt_fSubsidiary.GetId()); |
| | | frm_CqfaItems2.Initialize(lbGuid.Text.Trim(), QcSeason.cqcjno.ToString(), txt_fSubsidiary.GetId()); |
| | | } |
| | | else |
| | | ToolBox.MsgHelper.ShowError("提示:" + _rtn.rtnMsg); |
| | |
| | | if (_rtn.rtnCode > 0 && _rtn.rtnData.outSum * 1 > 0) |
| | | { |
| | | MsgHelper.ShowInformation("提示:" + _rtn.rtnData.outMsg.ToString()); |
| | | frm_CqfaItems1.Initialize(QcSeason.cqcjyes.ToString(), txt_fSubsidiary.GetId()); |
| | | frm_CqfaItems2.Initialize(QcSeason.cqcjno.ToString(), txt_fSubsidiary.GetId()); |
| | | frm_CqfaItems1.Initialize(lbGuid.Text.Trim(), QcSeason.cqcjyes.ToString(), txt_fSubsidiary.GetId()); |
| | | frm_CqfaItems2.Initialize(lbGuid.Text.Trim(), QcSeason.cqcjno.ToString(), txt_fSubsidiary.GetId()); |
| | | } |
| | | else |
| | | MsgHelper.ShowError(_rtn.rtnData.outMsg.ToString()); |
| | |
| | | this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | this.gv_itemId = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | this.pageBar1 = new UserControls.Data.UcPageBar(); |
| | | this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.gcMain)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.gvMain)).BeginInit(); |
| | | this.SuspendLayout(); |
| | |
| | | this.gv_salesOrderId, |
| | | this.gv_orderLineId, |
| | | this.gridColumn1, |
| | | this.gv_itemId}); |
| | | this.gv_itemId, |
| | | this.gridColumn3}); |
| | | this.gvMain.GridControl = this.gcMain; |
| | | this.gvMain.IndicatorWidth = 50; |
| | | this.gvMain.Name = "gvMain"; |
| | |
| | | this.pageBar1.TabIndex = 10; |
| | | this.pageBar1.TotalPages = 0; |
| | | // |
| | | // gridColumn3 |
| | | // |
| | | this.gridColumn3.Caption = "方案编码"; |
| | | this.gridColumn3.FieldName = "fabm"; |
| | | this.gridColumn3.MinWidth = 25; |
| | | this.gridColumn3.Name = "gridColumn3"; |
| | | this.gridColumn3.Visible = true; |
| | | this.gridColumn3.VisibleIndex = 6; |
| | | this.gridColumn3.Width = 94; |
| | | // |
| | | // Frm_CqfaItems |
| | | // |
| | | this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F); |
| | |
| | | private DevExpress.XtraGrid.Columns.GridColumn gv_itemId; |
| | | private UserControls.Data.UcPageBar pageBar1; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gridColumn1; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gridColumn3; |
| | | } |
| | | } |
| | |
| | | { |
| | | string strType = ""; |
| | | string orgId = ""; |
| | | string pGuid = ""; |
| | | private List<FilterEntity> _filterList = new List<FilterEntity>(); |
| | | private readonly string _webServiceName = "MesQmCheckitemManager/"; |
| | | public Frm_CqfaItems() |
| | |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gvMain); |
| | | } |
| | | public void Initialize(string _strType,string _orgId) |
| | | public void Initialize(string _pGuid, string _strType, string _orgId) |
| | | { |
| | | strType=_strType; |
| | | orgId=_orgId; |
| | | strType = _strType; |
| | | orgId = _orgId; |
| | | pGuid = _pGuid; |
| | | getPageList(1); |
| | | } |
| | | |
| | | public void Clean() |
| | | { |
| | | gcMain.DataSource = null; |
| | | } |
| | | #region 源物料数据绑定 |
| | | |
| | | private void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | |
| | | { |
| | | gcMain.DataSource = null; |
| | | var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); |
| | | _sbSqlWhere += " and org.fid=" + orgId + ""; |
| | | var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "item_no", "asc", "", _sbSqlWhere.ToString(), strType); |
| | | _sbSqlWhere += " and org.fid=" + orgId + ""; |
| | | //这个pguid,作为方案的主键 |
| | | var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "item_no", "asc", pGuid, _sbSqlWhere.ToString(), strType); |
| | | var json = JsonConvert.SerializeObject(pgq); |
| | | try |
| | | { |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |