//Function To reset the User Form /// <summary> /// Resets the type of the global code category form order. /// </summary> /// <returns></returns> public ActionResult ResetGlobalCodeCategoryFormOrderType() { //Initialize the GlobalCode Bal var facilityBal = new FacilityBal(); var cId = Helpers.GetDefaultCorporateId(); var objGlobalCodeCategoryMasterView = new GlobalCodeCategoryMasterView { GCC = new GlobalCodeCategory(), //LstFacility = facilityBal.GetFacilities(cId) }; return(PartialView(PartialViews.AddUpdateOrderCategoryType, objGlobalCodeCategoryMasterView)); }
//Function to get GlobalCode for editing /// <summary> /// Edits the global category code. /// </summary> /// <param name="GlobalCodeCategoryId">The global code category identifier.</param> /// <returns></returns> public ActionResult EditGlobalCategoryCode(int GlobalCodeCategoryId) { //Initialize the GlobalCode Bal var globalCodeCategoryMasterBal = new GlobalCodeCategoryMasterBal(); // var currentGCCMaster = globalCodeCategoryMasterBal.GetGlobalCategoriesByGlobalCodeCategoryId(GlobalCodeCategoryId); var facilityBal = new FacilityBal(); var cId = Helpers.GetDefaultCorporateId(); var viewData = new GlobalCodeCategoryMasterView { GCC = globalCodeCategoryMasterBal.GetGlobalCategoriesByGlobalCodeCategoryId(GlobalCodeCategoryId), //LstFacility = facilityBal.GetFacilities(cId) }; return(PartialView(PartialViews.AddUpdateGlobalCodeCategoryMaster, viewData)); }
//Function To reset the User Form /// <summary> /// Resets the global code category form. /// </summary> /// <returns></returns> public ActionResult ResetGlobalCodeCategoryForm() { //Initialize the GlobalCode Bal //var facilityBal = new FacilityBal(); //var cId = Helpers.GetSysAdminCorporateID(); var viewData = new GlobalCodeCategoryMasterView { GCC = new GlobalCodeCategory { IsActive = true, IsDeleted = false }, //LstFacility = facilityBal.GetFacilities(cId) }; return(PartialView(PartialViews.AddUpdateGlobalCodeCategoryMaster, viewData)); }
/// <summary> /// Indexes this instance. /// </summary> /// <returns></returns> public ActionResult Index() { //Initialize the GlobalCode Bal using (var bal = new GlobalCodeCategoryMasterBal()) { var viewData = new GlobalCodeCategoryMasterView { GCC = new GlobalCodeCategory { IsActive = true, FacilityNumber = Convert.ToString(Helpers.GetDefaultFacilityId()) }, //Categories = bal.GetAllGlobalCodeCategories(), }; return(View(viewData)); } }