void frmPrd_AffterSelected(DataRow drow) { int PrdID = (int)drow["PrdID"]; this.dgrdv.CurrentCell.Value = PrdID; frmPrd.Close(); }
void frmPrd_AffterSelected(DataRow drow) { DataGridViewRow grow = this.dgrdv.CurrentRow; int PrdID = (int)drow["PrdID"]; grow.Cells[this.ColumnPrdID.Name].Value = PrdID; grow.Cells[this.ColumnPrdCode.Name].Value = drow["PrdCode"]; grow.Cells[this.ColumnPrdName.Name].Value = drow["PrdName"]; grow.Cells[this.ColumnPrdSpec.Name].Value = drow["PrdSpec"]; grow.Cells[this.ColumnModel.Name].Value = drow["Model"]; grow.Cells[this.ColumnUnitName.Name].Value = drow["UnitName"]; grow.Cells[this.ColumnInventoryQty.Name].Value = this.GetInventoryQty(PrdID); frmPrd.Close(); }
void frmPrd_AffterSelected(DataRow drow) { DataGridViewRow grow = this.dgrdv.CurrentRow; int PrdID = (int)drow["PrdID"]; grow.Cells[this.ColumnPrdID.Name].Value = drow["PrdID"]; grow.Cells[this.ColumnPrdCode.Name].Value = drow["PrdCode"]; grow.Cells[this.ColumnPrdName.Name].Value = drow["PrdName"]; grow.Cells[this.ColumnPrdSpec.Name].Value = drow["PrdSpec"]; grow.Cells[this.ColumnModel.Name].Value = drow["Model"]; grow.Cells[this.ColumnUnitName.Name].Value = drow["UnitName"]; grow.Cells[this.ColumnPrice.Name].Value = this.GetPrice(PrdID); grow.Cells[this.ColumnMinPackingQty.Name].Value = this.GetMinPackingQty(PrdID); grow.Cells[this.ColumnSupplierPrdCode.Name].Value = this.GetSupplierPrdCode(PrdID); frmPrd.Close(); }
void frmPrd_AffterSelected(DataRow drow) { DataGridViewRow grow = this.dgrdv.CurrentRow; int PrdID = (int)drow["PrdID"]; grow.Cells[this.ColumnPrdID.Name].Value = PrdID; grow.Cells[this.ColumnPrdCode.Name].Value = drow["PrdCode"]; grow.Cells[this.ColumnPrdName.Name].Value = drow["PrdName"]; grow.Cells[this.ColumnPrdSpec.Name].Value = drow["PrdSpec"]; grow.Cells[this.ColumnModel.Name].Value = drow["Model"]; grow.Cells[this.ColumnUnitName.Name].Value = drow["UnitName"]; object objBranchStoreID = this.GetDefaultBranchStoreID(PrdID); grow.Cells[this.ColumnBranchStoreID.Name].Value = objBranchStoreID; if (objBranchStoreID != DBNull.Value) { grow.Cells[this.ColumnInventoryQty.Name].Value = this.GetStoreQty(PrdID, (int)objBranchStoreID); } frmPrd.Close(); }