void lnkFinishedPrdNew_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (frmPrdBackupOper == null) { frmPrdBackupOper = new FrmManufPlanFromPrdBackupOrder(); new FrmStyle(frmPrdBackupOper).SetPopFrmStyle(this); frmPrdBackupOper.AffterSave += this.LoadData; } frmPrdBackupOper.BackupOper(); frmPrdBackupOper.ShowDialog(); }
void dgrdvPrdStore_CellContentClick(object sender, DataGridViewCellEventArgs e) { int irow = e.RowIndex; int icol = e.ColumnIndex; if ((irow == -1) || (icol == -1)) { return; } if (this.dgrdvPrdStore.Columns[icol].Name == this.ColumnbtnPrdStore.Name) { int PrdID = (int )this.dtblPrdStore.DefaultView[irow]["PrdID"]; decimal RequireQty = (decimal)this.dtblPrdStore.DefaultView[irow]["RequireQty"]; if (frmPrdBackupOper == null) { frmPrdBackupOper = new FrmManufPlanFromPrdBackupOrder(); new FrmStyle(frmPrdBackupOper).SetPopFrmStyle(this); frmPrdBackupOper.AffterSave += this.LoadData; } frmPrdBackupOper.BackupOper(PrdID, RequireQty); frmPrdBackupOper.ShowDialog(); } }