| | |
| | | }); |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | |
| | | //选择库存组织(变明细中的物料和变货主) |
| | | this.txt_fStockOrgId.EditChanged += (s, e) => |
| | | { |
| | |
| | | txt_fStockId.Focus(); |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(kcCk)) |
| | | if (string.IsNullOrEmpty(kh)) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择客户!"); |
| | | txt_fStockId.Focus(); |
| | | txt_fCustId.Focus(); |
| | | return; |
| | | } |
| | | var _obj = new |
| | |
| | | list = new List<dynamic>(), |
| | | }; |
| | | gvMx1.CloseEditor(); |
| | | gvMx1.PostEditor(); |
| | | gvMx1.UpdateCurrentRow(); |
| | | if (gvMx1.DataRowCount <= 0) |
| | | { |
| | |
| | | { |
| | | gcMain1.DataSource = dt; |
| | | gcMain1.ForceInitialize(); |
| | | gridView1.BestFitColumns(); |
| | | gridView1.BestFitColumns(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView1); |
| | | } |
| | | else |
| | | UtilityHelper.SetDefaultTable(gcMain1, gridView1); |
| | |
| | | gvMx1.SetFocusedRowCellValue("itemModel", SelectedDataRow["itemModel"]); |
| | | gvMx1.SetFocusedRowCellValue("kcDw", SelectedDataRow["dwName"]); |
| | | gvMx1.SetFocusedRowCellValue("itemId", SelectedDataRow["id"]); |
| | | gvMx1.PostEditor(); |
| | | gvMx1.UpdateCurrentRow(); |
| | | } |
| | | |
| | | private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) |
| | |
| | | DataRow row = gvMx1.GetDataRow(e.FocusedRowHandle); |
| | | lbMxGuid.Text = row["guid"].ToString(); |
| | | ucBtnPrint1.guidKey = row["guid"].ToString(); |
| | | txtWlid.Text = row["itemId"].ToString(); |
| | | txtWlid.Text = row["itemNo"].ToString(); |
| | | txtWlgg.Text = row["itemModel"].ToString(); |
| | | txtWlmc.Text = row["itemName"].ToString(); |
| | | txtQuantity.Text = row["sqsl"].ToString();//申请总量 |