示例#1
0
 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();
 }
示例#2
0
        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();
            }
        }