Example #1
0
 public int DeletePersonalLedger(PharmaBusinessObjects.Master.PersonalLedgerMaster p)
 {
     try
     {
         return(new PersonalLedgerMasterBiz(this.LoggedInUser).DeletePersonalLedger(p));
     }
     catch (Exception)
     {
         throw;
     }
 }
Example #2
0
        void EditPersonLedger()
        {
            if (dgvPersonalLedger.SelectedRows.Count == 0)
            {
                MessageBox.Show("Please select atleast one row to edit");
            }

            PharmaBusinessObjects.Master.PersonalLedgerMaster model = (PharmaBusinessObjects.Master.PersonalLedgerMaster)dgvPersonalLedger.SelectedRows[0].DataBoundItem;

            OpenAddEdit(model.PersonalLedgerId);
        }