public void grdBase_onSelectedDataRow(object sender, Control.GridView.RowEventArgs e) { Dictionary <string, object> dataKey = (Dictionary <string, object>)sender; addEditStockCount = new AddEditStockCount(dataKey[DataKeyName].ToString()); this.AddEditTab(string.Format(TabName.Edit, programName), addEditStockCount); }
public void grdBase_onSelectedDataRow(object sender, Control.GridView.RowEventArgs e) { Dictionary <string, object> dataKey = (Dictionary <string, object>)sender; addEditReceiveMaterial = new KitchenOrderDetail(dataKey[DataKeyName].ToString(), tabControl1);//, tabControl1, tabPageAddEdit); this.AddEditTab(string.Format(TabName.Edit, programName), addEditReceiveMaterial); }
public void grdDetail_onSelectedDataRow(object sender, Control.GridView.RowEventArgs e) { modeDetail = ObjectState.Edit; Dictionary <string, object> dataKey = (Dictionary <string, object>)sender; long menuMappingID = Converts.ParseLong(dataKey[DataKeyName].ToString()); LoadDataDetail(menuMappingID); }
private void grdBase_onSelectedDataRow(object sender, Control.GridView.RowEventArgs e) { Dictionary <string, object> dataKey = (Dictionary <string, object>)sender; Material entity = new Material(); entity.material_id = dataKey[DataKeyID].ToLong(); entity = ServiceProvider.MaterialService.FindByKeys(entity, false); this.ClosePopup(entity); }
public void grdBase_onSelectedDataRow(object sender, Control.GridView.RowEventArgs e) { Dictionary <string, object> dataKey = (Dictionary <string, object>)sender; globalBomHeaderID = dataKey[DataKeyName].ToString(); grdBomDetail.LoadData(); //string dataKey[DataKeyName].ToString() //addEditReceiveMaterial = new KitchenOrderDetail(dataKey[DataKeyName].ToString()); //this.AddEditTab(string.Format(TabName.Edit, programName), addEditReceiveMaterial); }
public void baseGridDetail_onSelectedDataRow(object sender, Control.GridView.RowEventArgs e) { Dictionary <string, object> dataKey = (Dictionary <string, object>)sender; this.ClearDataDetail(); txtCount.Focus(); baseGridDetail.FormMode = ObjectState.Edit; baseGridDetail.DataKeyValue = new string[] { null, dataKey["material_id"].ToString(), dataKey["Lot No."].ToString() }; this.LoadDetailData(); this.EnableModeDetail(); }
public void baseGridDetail_onSelectedDataRow(object sender, Control.GridView.RowEventArgs e) { Dictionary <string, object> dataKey = (Dictionary <string, object>)sender; this.ClearDataDetail(); txtLotNo.Focus(); baseGridDetail.FormMode = ObjectState.Edit; baseGridDetail.DataKeyValue = new string[] { null, dataKey["material_id"].ToString(), dataKey["warehouse_id_dest"].ToString() }; this.LoadDetailData(); txtMaterialCode.Enabled = false; ddlWarehouseDetails.Enabled = false; EnableModeDetailEdit(); }
private void grdBase_onSelectedDataRow(object sender, Control.GridView.RowEventArgs e) { object result = base.OpenPopup <InPopupSelectWarehouse>(); if (result != null) { Dictionary <string, object> dataKey = (Dictionary <string, object>)sender; PortfolioHead entity = new PortfolioHead(); entity.portfolio_head_id = dataKey[DataKeyID].ToLong(); DataSet dsPortfolioDetail = ServiceProvider.PortfolioDetailService.GetGridPortfolioDetail(entity); ComboBoxDTO dto = (ComboBoxDTO)result; if (dsPortfolioDetail.Tables.Count > 0) { foreach (DataRow dr in dsPortfolioDetail.Tables[0].Rows) { dr["warehouse_id"] = dto.Value.ToLong(); dr["warehouse_name"] = dto.Display; } } this.ClosePopup(dsPortfolioDetail); } }