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

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

        }
Beispiel #3
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();
 }
Beispiel #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();
        }