| | |
| | | var lst = new List<string>(); |
| | | lst = ee.StringList; |
| | | var _obj = lst; |
| | | var strReturn = UtilityHelper.HttpPost("", |
| | | "WompbaManager/SelectPbaToView", |
| | | var strReturn = UtilityHelper.HttpPost("", _webServiceName + "SelectViewResult", |
| | | JsonConvert.SerializeObject(_obj)); |
| | | var dt = UtilityHelper.ReturnToList(strReturn); |
| | | DataTable _newTable = dt.rtnData; |
| | |
| | | |
| | | private void Txt_daahb013_EditChanged(object sender, EventArgs e) |
| | | { |
| | | txt_daahb015.getSuppler(txt_daahb013.GetId()); |
| | | string workGuid = this.txt_daahb013.GetGuid(); |
| | | txt_daahb015.getSuppler(workGuid); |
| | | } |
| | | |
| | | private async void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | |
| | | lbGuid.Text = ""; |
| | | List<DevExpress.XtraGrid.Views.Grid.GridView> gridViews = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); |
| | | gridViews.Add(gvMx1); |
| | | gridViews.Add(gvMx2); |
| | | UtilityHelper.CleanValueByControl(this.panel1.Controls, true, gridViews); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx1, gvMx1); |
| | | } |
| | |
| | | private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.isSetBtn = false; |
| | | //if (string.IsNullOrEmpty(txt_account.Text.Trim())) |
| | | string workId = txt_daahb013.GetId(); |
| | | if (string.IsNullOrEmpty(workId.Trim())) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("登录账号不能为空!"); |
| | | // txt_account.Focus(); |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择车间!"); |
| | | txt_daahb013.Focus(); |
| | | return; |
| | | } |
| | | string lineId = txt_daahb015.GetId(); |
| | | //if (string.IsNullOrEmpty(lineId.Trim())) |
| | | //{ |
| | | // Gs.DevApp.ToolBox.MsgHelper.Warning("请选择产线!"); |
| | | // txt_daahb015.Focus(); |
| | | // return; |
| | | //} |
| | | var _obj = new |
| | | { |
| | | guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //主建 |
| | | bz = txt_daahb009.Text.Trim(), |
| | | cjId = workId, |
| | | cxId = lineId, |
| | | list = new List<dynamic>(), |
| | | }; |
| | | gvMx1.CloseEditor(); |
| | | gvMx1.UpdateCurrentRow(); |
| | | if (gvMx1.DataRowCount <= 0) |
| | | { |
| | | MsgHelper.ShowError("明细不能为空,请选择你的收料明细!"); |
| | | return; |
| | | } |
| | | for (var i = 0; i < gvMx1.DataRowCount; i++) |
| | | { |
| | | var row = gvMx1.GetDataRow(i); |
| | | if (row != null) |
| | | { |
| | | Guid? _guid = UtilityHelper.ToGuid(row["guid"].ToString()); |
| | | //string _msl = row["quantity"].ToString(); |
| | | //if (string.IsNullOrEmpty(_msl)) |
| | | //{ |
| | | // MsgHelper.ShowError("数量不能为空!"); |
| | | // return; |
| | | //} |
| | | _obj.list.Add(new |
| | | { |
| | | Guid = _guid, |
| | | AboutGuid = Gs.DevApp.ToolBox.UtilityHelper.ToGuid(row["daaGuid"].ToString()), |
| | | LineId = 1,//产线id |
| | | //Yjkgsj = (row["mesStartProd"].ToString()),//预计开工时间 |
| | | //Jhrs = row["planPersonnel"].ToString(),//计划人数 |
| | | //Hxsj = row["changeLinetime"].ToString(),//换线时间 |
| | | //Bz = row["daa009"].ToString(),//备注 |
| | | //Blsj = row["prepareTime"].ToString(),//预计备料时间 |
| | | //Pcsl = row["daa008"].ToString()//排产数量 |
| | | }); |
| | | } |
| | | } |
| | | try |
| | | { |
| | | string strJson = UtilityHelper.HttpPost("", _webServiceName + "EditModel", JsonConvert.SerializeObject(_obj)); |