Ejemplo n.º 1
0
        //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));
        }
Ejemplo n.º 2
0
        //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));
        }
Ejemplo n.º 3
0
        //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));
        }
Ejemplo n.º 4
0
        /// <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));
            }
        }