| | |
| | | |
| | | }; |
| | | //设置工单 |
| | | this.txt_bl001.EditChanged += (s, e) => |
| | | this.txt_aboutGuid.EditChanged += (s, e) => |
| | | { |
| | | txt_bl002.Text = txt_bl001.GetPrdNo(); |
| | | txt_bl014.Text = txt_bl001.GetPrdName(); |
| | | txt_bl015.Text = txt_bl001.GetPrdModel(); |
| | | }; |
| | | string strGdId = txt_aboutGuid.GetId(); |
| | | if (string.IsNullOrEmpty(strGdId)) return; |
| | | txt_bl002.Text = txt_aboutGuid.GetPrdNo(); |
| | | txt_bl014.Text = txt_aboutGuid.GetPrdName(); |
| | | txt_bl015.Text = txt_aboutGuid.GetPrdModel(); |
| | | |
| | | var _obj = new |
| | | { |
| | | currentPage = 1, |
| | | everyPageSize = 999999, |
| | | sortName = "", |
| | | keyWhere = "", |
| | | inP1 = strGdId |
| | | }; |
| | | var json = JsonConvert.SerializeObject(_obj); |
| | | try |
| | |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | }; |
| | | |
| | | } |
| | | private void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | | { |
| | |
| | | private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.isSetBtn = false; |
| | | string inGdId = txt_bl001.GetId();//工单号 |
| | | string inGdId = txt_aboutGuid.GetId();//工单号 |
| | | string inCkId = txt_bl010.GetId();//发料仓 |
| | | if (string.IsNullOrEmpty(inGdId)) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择工单!"); |
| | | txt_bl001.Focus(); |
| | | txt_aboutGuid.Focus(); |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(inCkId)) |
| | |
| | | inCkId = inCkId,//仓库 |
| | | inYy = txt_bl007.Text.Trim(),//原因 |
| | | inType = txt_bl017.Text.Trim(),//类型 |
| | | busType = 801,//业务类型编码 |
| | | busTypeTxt = "委外超领",//业务类型 |
| | | list = new List<dynamic>(), |
| | | }; |
| | | gvMx1.CloseEditor(); |
| | |
| | | private void getPageList(int curPage) |
| | | { |
| | | var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); |
| | | _sbSqlWhere += " and bl017=801"; |
| | | PageQueryModel pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "create_date", "asc", "", _sbSqlWhere.ToString()); |
| | | string json = JsonConvert.SerializeObject(pgq); |
| | | try |
| | |
| | | gvMx1.SetFocusedRowCellValue("bld003", SelectedDataRow["itemName"]); |
| | | gvMx1.SetFocusedRowCellValue("bld004", SelectedDataRow["itemModel"]); |
| | | gvMx1.SetFocusedRowCellValue("dabGuid", SelectedDataRow["dabGuid"]); |
| | | gvMx1.SetFocusedRowCellValue("bld008", SelectedDataRow["dab007"]);//已领用量 |
| | | gvMx1.SetFocusedRowCellValue("bld009", SelectedDataRow["dwName"]);//单位 |
| | | } |
| | | |
| | | private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) |