| | |
| | | if (string.IsNullOrEmpty(_sqGuid)) |
| | | return; |
| | | txt_custName.Text = txt_salesOrderId.GetSalesCusName(); |
| | | txt_salesOrg.Text = txt_salesOrderId.GetSalesOrgName(); |
| | | txt_xsOrgName.Text = txt_salesOrderId.GetSalesOrgName(); |
| | | System.Text.StringBuilder sbWhere = new System.Text.StringBuilder(); |
| | | var _obj = new PageQueryModel(1, 999999, "item_no", "asc", "", sbWhere.ToString(), _sqGuid); |
| | | var json = JsonConvert.SerializeObject(_obj); |
| | |
| | | { |
| | | List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); |
| | | gvList.Add(gvMx1); |
| | | gvList.Add(gvMx2); |
| | | UtilityHelper.ChangeEnableByControl(this.layoutMx1.Controls, true, gvList); |
| | | } |
| | | } |
| | |
| | | Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 4); |
| | | List<DevExpress.XtraGrid.Views.Grid.GridView> gridViews = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); |
| | | gridViews.Add(gvMx1); |
| | | gridViews.Add(gvMx2); |
| | | UtilityHelper.CleanValueByControl(this.layoutMx1.Controls, true, gridViews); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx1, gvMx1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx2, gvMx2); |
| | | |
| | | } |
| | | /// <summary> |
| | |
| | | toolBarMenu1.isSetBtn = true; |
| | | List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); |
| | | gvList.Add(gvMx1); |
| | | gvList.Add(gvMx2); |
| | | UtilityHelper.ChangeEnableByControl(this.layoutMx1.Controls, false, gvList); |
| | | toolBarMenu1.currentAction = ""; |
| | | } |
| | |
| | | lbGuid.Text = strGuid; |
| | | List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); |
| | | gvList.Add(gvMx1); |
| | | gvList.Add(gvMx2); |
| | | UtilityHelper.SetValueByObj(this.layoutMx1.Controls, dy, isEdit, gvList); |
| | | JObject _job = JObject.Parse(strJson); |
| | | JArray array = new JArray(); |
| | |
| | | { |
| | | SearchLookUpEdit LookupEdit = sender as SearchLookUpEdit; |
| | | DataRowView SelectedDataRow = (DataRowView)LookupEdit.GetSelectedDataRow(); |
| | | //gvMx1.SetFocusedRowCellValue("itemNo", SelectedDataRow["itemNo"].ToString()); |
| | | gvMx1.SetFocusedRowCellValue("materialName", SelectedDataRow["itemName"].ToString()); |
| | | //gvMx1.SetFocusedRowCellValue("itemModel", SelectedDataRow["itemModel"].ToString()); |
| | | //gvMx1.SetFocusedRowCellValue("itemId", SelectedDataRow["id"].ToString()); |
| | | gvMx1.SetFocusedRowCellValue("itemNo", SelectedDataRow["itemNo"].ToString()); |
| | | gvMx1.SetFocusedRowCellValue("itemName", SelectedDataRow["itemName"].ToString()); |
| | | gvMx1.SetFocusedRowCellValue("itemModel", SelectedDataRow["itemModel"].ToString()); |
| | | gvMx1.SetFocusedRowCellValue("itemId", SelectedDataRow["itemId"].ToString()); |
| | | //gvMx1.SetFocusedRowCellValue("itemUnit", SelectedDataRow["dwName"].ToString()); |
| | | gvMx1.SetFocusedRowCellValue("salesQuantity", SelectedDataRow["fhSl"].ToString()); |
| | | gvMx1.SetFocusedRowCellValue("deliveDetailGuid", SelectedDataRow["ckmxGuid"].ToString()); |
| | | gvMx1.CloseEditor(); |
| | | gvMx1.UpdateCurrentRow(); |
| | |
| | | DataRow row = gvMx1.GetDataRow(e.FocusedRowHandle); |
| | | lbMxGuid.Text = row["guid"].ToString(); |
| | | ucBtnPrint1.guidKey = row["guid"].ToString(); |
| | | //txtWlid.Text = row["qd002"].ToString(); |
| | | //txtWlgg.Text = row["qd004"].ToString(); |
| | | //txtWlmc.Text = row["qd003"].ToString(); |
| | | //txtQuantity.Text = row["qd007"].ToString();//申请总量 |
| | | //txtYdy.Text = row["ydy"].ToString();//已打印总量 |
| | | //txtKdy.Text = row["kdy"].ToString();//可打印总量 |
| | | txtWlid.Text = row["itemId"].ToString(); |
| | | txtWlgg.Text = row["itemNo"].ToString(); |
| | | txtWlmc.Text = row["itemName"].ToString(); |
| | | txtQuantity.Text = row["sqQty"].ToString();//申请总量 |
| | | txtYdy.Text = row["ydy"].ToString();//已打印总量 |
| | | txtKdy.Text = row["kdy"].ToString();//可打印总量 |
| | | } |
| | | } |
| | | } |