Exemple #1
0
        public override void btn_Add_Click(object sender, EventArgs e)
        {
            FrmAdjustReasonAddEdit frm = new FrmAdjustReasonAddEdit();

            frm.ShowDialog();
            dgrid_Result.DataSource = adjustStock.SelectAll();
        }
        public override void btn_Add_Click(object sender, EventArgs e)
        {
            FrmAdjustReasonAddEdit frm = new FrmAdjustReasonAddEdit();
            frm.ShowDialog();
            dgrid_Result.DataSource = adjustStock.SelectAll();

        }
 public override void btn_Edit_Click(object sender, EventArgs e)
 {
     INVAdjustStockReasonPrimaryKey pk = new INVAdjustStockReasonPrimaryKey();
     pk.AdjustStockReasonID= (int)dgrid_Result.Rows [dgrid_Result.SelectedCells[0].RowIndex].Cells["AdjustStockReasonID"].Value;
     INVAdjustStockReason reason= adjustStock.SelectOne(pk);
     FrmAdjustReasonAddEdit frm = new FrmAdjustReasonAddEdit(reason);
     frm.ShowDialog();
     dgrid_Result.DataSource = adjustStock.SelectAll();
 }
Exemple #4
0
        public override void btn_Edit_Click(object sender, EventArgs e)
        {
            INVAdjustStockReasonPrimaryKey pk = new INVAdjustStockReasonPrimaryKey();

            pk.AdjustStockReasonID = (int)dgrid_Result.Rows [dgrid_Result.SelectedCells[0].RowIndex].Cells["AdjustStockReasonID"].Value;
            INVAdjustStockReason   reason = adjustStock.SelectOne(pk);
            FrmAdjustReasonAddEdit frm    = new FrmAdjustReasonAddEdit(reason);

            frm.ShowDialog();
            dgrid_Result.DataSource = adjustStock.SelectAll();
        }