public JsonResult Rebind_Data(int id) { BL_MedicalVoucherType data_bind = new BL_MedicalVoucherType(); return(new JsonResult { Data = data_bind.Bind_from_table(id), JsonRequestBehavior = new JsonRequestBehavior() }); }
public JsonResult Bind_Table() { BL_MedicalVoucherType Med_voucher = new BL_MedicalVoucherType(); return(new JsonResult { Data = Med_voucher.GetData(), JsonRequestBehavior = new JsonRequestBehavior() }); }
public JsonResult DeleteVoucherType(int VoucherTypeID) { string data = ""; try { KeystoneProject.Buisness_Logic.PharmacyMaster.BL_MedicalVoucherType bl_voucher = new BL_MedicalVoucherType(); int a = bl_voucher.DeleteVoucher(VoucherTypeID); if (a == 1) { data = "Voucher Type Deleted Successfully"; } } catch (Exception ex) { data = ex.Message; } return(Json(data, JsonRequestBehavior.AllowGet)); }
public JsonResult GetAccountID(string prefix) { KeystoneProject.Buisness_Logic.PharmacyMaster.BL_MedicalVoucherType Bl_obj = new BL_MedicalVoucherType(); KeystoneProject.Models.PharmacyMaster.MedicalVoucherType AddServiceMod = new MedicalVoucherType(); DataSet ds = Bl_obj.GetAccountID(prefix, "%"); List <MedicalVoucherType> SearchList = new List <MedicalVoucherType>(); foreach (DataRow dr in ds.Tables[0].Rows) { SearchList.Add(new MedicalVoucherType { masterAccount = dr["AccountName"].ToString(), MasterAcID = Convert.ToInt32(dr["AccountsID"]), }); } return(new JsonResult { Data = SearchList, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }