コード例 #1
0
        public ActionResult ManageAgentCommissionCategoryProduct(string id)
        {
            CommissionCategoryDetailCommon CDC = comm.GetAgentCommissioncategoryProductById(id.DecryptParameter());
            CommissionCategoryDetailModel  CMC = new CommissionCategoryDetailModel();
            string agentid = Session["AgentId"].ToString();

            if (CDC != null)
            {
                CMC.CommissionDetailId   = CDC.CommissionDetailId.EncryptParameter();
                CMC.ProductId            = CDC.ProductId;
                CMC.CommissionCategoryId = CDC.CommissionCategoryId.EncryptParameter();
                CMC.CommissionType       = CDC.CommissionType;
                CMC.CommissionValue      = CDC.CommissionValue;
                string agentcommCat = comm.GetAdminCommCatagory(agentid).CommissionCategoryId;
                var    admincomm    = comm.GetAdminCommvalue(agentcommCat, CDC.ProductId);
                CMC.AdminCommissionType  = admincomm.CommissionType;
                CMC.AdminCommissionValue = admincomm.CommissionValue;
                CMC.AdminProductId       = admincomm.ProductId;
                //CMC.CommissionPercentType = CDC.CommissionPercentType.Trim();
            }
            ViewBag.productlist = ApplicationUtilities.SetDDLValue(ICB.sproc_get_dropdown_list("servicelist"), CMC.ProductId, "Select Product");

            CMC.CommissionPercentTypeList = ApplicationUtilities.SetDDLValue(ICB.sproc_get_dropdown_list("031"), CMC.CommissionPercentType, "Select Percent Type");
            CMC.CommissionTypeList        = LoadDropdownList("commissiontype") as List <SelectListItem>;
            return(View(CMC));
        }
コード例 #2
0
        public ActionResult ManageGateway(string GatewayID = "")
        {
            GatewayCommon gatewaycommon = new GatewayCommon();
            GatewayModel  gatewaymodel  = new GatewayModel();

            if (!string.IsNullOrEmpty(GatewayID))
            {
                string gateway_id = GatewayID.DecryptParameter();
                if (!string.IsNullOrEmpty(gateway_id))
                {
                    gatewaycommon                    = buss.GetGatewayById(gateway_id);
                    gatewaymodel.GatewayId           = gatewaycommon.GatewayId.EncryptParameter();
                    gatewaymodel.GatewayName         = gatewaycommon.GatewayName;
                    gatewaymodel.GatewayUsername     = gatewaycommon.GatewayUsername.DecryptParameter();
                    gatewaymodel.GatewayPwd          = gatewaycommon.GatewayPwd.DecryptParameter();
                    gatewaymodel.GatewayBalance      = gatewaycommon.GatewayBalance;
                    gatewaymodel.GatewayURL          = gatewaycommon.GatewayURL.DecryptParameter();
                    gatewaymodel.GatewayAccessCode   = gatewaycommon.GatewayAccessCode.DecryptParameter();
                    gatewaymodel.GatewaySecurityCode = gatewaycommon.GatewaySecurityCode.DecryptParameter();
                    gatewaymodel.GatewayApitoken     = gatewaycommon.GatewayApitoken.DecryptParameter();
                    gatewaymodel.GatewayStatus       = gatewaycommon.GatewayStatus;
                    gatewaymodel.IsDirectGateway     = gatewaycommon.IsDirectGateway;
                    gatewaymodel.GatewayType         = gatewaycommon.GatewayType;
                    gatewaymodel.GatewayCountry      = gatewaycommon.GatewayCountry;
                    gatewaymodel.GatewayCurrency     = "NPR";//gatewaycommon.GatewayCurrency;
                    gatewaymodel.GatewayContact      = gatewaycommon.GatewayContact;
                }
            }
            gatewaymodel.GatewayCurrency     = "NPR";
            gatewaymodel.IsDirectGatewayList = LoadDropdownList("directindirect") as List <SelectListItem>;
            gatewaymodel.GatewayTypeList     = LoadDropdownList("gatewaytype") as List <SelectListItem>;
            // gatewaymodel.GatewayCurrencyList = ApplicationUtilities.SetDDLValue(ICB.sproc_get_dropdown_list("20"), gatewaymodel.GatewayCurrency, "Select Currency");
            gatewaymodel.GatewayCountryList = ApplicationUtilities.SetDDLValue(ICB.sproc_get_dropdown_list("030"), gatewaymodel.GatewayCurrency, "Select Country");
            return(View(gatewaymodel));
        }
コード例 #3
0
        public Dictionary <string, string> LoadDropdownList(string flag, string search1 = "")
        {
            switch (flag)
            {
            case "country":
                return(ICB.sproc_get_dropdown_list("004"));

            case "gender":
                return(ICB.sproc_get_dropdown_list("005"));

            case "occupation":
                return(ICB.sproc_get_dropdown_list("024"));

            case "doctype":
                return(ICB.sproc_get_dropdown_list("014"));

            case "province":
                return(ICB.sproc_get_dropdown_list("002"));

            case "issuedistrict":
                return(ICB.sproc_get_dropdown_list("007"));

            case "userRole":
                return(ICB.sproc_get_dropdown_list("035"));

            case "districtList":
                return(ICB.sproc_get_dropdown_list("007", search1));

            case "vdc_muncipality":
                return(ICB.sproc_get_dropdown_list("008", search1));
            }
            return(null);
        }
コード例 #4
0
        public Dictionary <string, string> LoadDropdownList(string flag, string search1 = "")
        {
            switch (flag)
            {
            case "country":
                return(ICB.sproc_get_dropdown_list("004"));

            case "gender":
                return(ICB.sproc_get_dropdown_list("005"));

            case "occupation":
                return(ICB.sproc_get_dropdown_list("024"));

            case "doctype":
                return(ICB.sproc_get_dropdown_list("014"));

            case "province":
                return(ICB.sproc_get_dropdown_list("002"));

            case "issuedistrict":
                return(ICB.sproc_get_dropdown_list("007"));

            case "userRole":
                return(ICB.sproc_get_dropdown_list("035"));

            case "districtList":
                return(ICB.sproc_get_dropdown_list("007", search1));

            case "vdc_muncipality":
                return(ICB.sproc_get_dropdown_list("008", search1));

            case "usertype":

                Dictionary <string, string> dict1 = new Dictionary <string, string>();
                dict1.Add("1", "Manager");
                dict1.Add("2", "User");

                return(dict1);

            case "isprimary":
            {
                Dictionary <string, string> dict = new Dictionary <string, string>();
                dict.Add("Y", "Yes");
                dict.Add("N", "No");
                return(dict);
            };
            }
            return(null);
        }
コード例 #5
0
        public ActionResult ManageCommissionCategoryProduct(string id)
        {
            CommissionCategoryDetailCommon CDC = comm.GetCommissioncategoryProductById(id.DecryptParameter());
            CommissionCategoryDetailModel  CMC = new CommissionCategoryDetailModel();

            if (CDC != null)
            {
                CMC.CommissionDetailId    = CDC.CommissionDetailId.EncryptParameter();
                CMC.ProductId             = CDC.ProductId;
                CMC.CommissionCategoryId  = CDC.CommissionCategoryId.EncryptParameter();
                CMC.CommissionType        = CDC.CommissionType;
                CMC.CommissionValue       = CDC.CommissionValue;
                CMC.CommissionPercentType = CDC.CommissionPercentType.Trim();
            }
            ViewBag.productlist = ApplicationUtilities.SetDDLValue(ICB.sproc_get_dropdown_list("servicelist"), CMC.ProductId, "Select Product");

            CMC.CommissionPercentTypeList = ApplicationUtilities.SetDDLValue(ICB.sproc_get_dropdown_list("031"), CMC.CommissionPercentType, "Select Percent Type");
            CMC.CommissionTypeList        = LoadDropdownList("commissiontype") as List <SelectListItem>;
            return(View(CMC));
        }
コード例 #6
0
        public Dictionary <string, string> LoadDropdownList(string flag, string search1 = "")
        {
            switch (flag)
            {
            case "ProductName":
                return(_icb.sproc_get_dropdown_list("servicelist"));

            case "TxnType":
                return(_icb.sproc_get_dropdown_list("011"));

            case "txnstatus":
            {
                Dictionary <string, string> dict = new Dictionary <string, string>();
                dict.Add("Success", "Success");
                dict.Add("Pending", "Pending");
                dict.Add("Failed", "Failed");
                return(dict);
            };
            }
            return(null);
        }
コード例 #7
0
        public ActionResult CommissionProductList(string categoryid = "", string Search = "", int Pagesize = 10)
        {
            categoryid = categoryid.DecryptParameter();

            var list = comm.GetCommissionCategoryProductList(categoryid);
            Dictionary <string, string> commissionTypeList = ICB.sproc_get_dropdown_list("031");

            foreach (var item in list)
            {
                item.Action         = StaticData.GetActions("ProductCommissionCategory", item.CommissionDetailId.ToString().EncryptParameter(), this, "/Admin/commission/ManageCommissionCategoryProduct", "/Admin/commission/ManageCommissionCategoryProduct?id=" + item.CommissionDetailId.EncryptParameter(), "");
                item.CommissionType = commissionTypeList.ContainsKey(item.CommissionType)? commissionTypeList.First(x => x.Key == item.CommissionType).Value : item.CommissionType;
            }
            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("ProductLabel", "Product Label");
            param.Add("CommissionType", "Commission Type");
            param.Add("CommissionValue", "Commission Value");
            param.Add("CommissionPercentType", "Commission Percent Type");
            param.Add("Action", "Action");

            ProjectGrid.column = param;
            var grid = ProjectGrid.MakeGrid(list, "Category Product", Search, Pagesize, false, "", "", "Home", "Commission", "", "");

            ViewData["grid"] = grid;
            return(View());
        }
コード例 #8
0
        public Dictionary <string, string> LoadDropdownList(string flag, string search1 = "")
        {
            Dictionary <string, string> status = new Dictionary <string, string>();

            status.Add("pending", "Pending");
            status.Add("success", "Success");
            status.Add("failed", "Failed");
            switch (flag)
            {
            case "pmtGt":
                return(_ICB.sproc_get_dropdown_list("041"));    //pmt gateway dropdown

            //case "districtList":
            //    return _ICB.sproc_get_dropdown_list("007", search1);
            case "status":
                return(status);

            case "productlist":
                return(_ICB.sproc_get_dropdown_list("servicelist"));
            }
            return(null);
        }
コード例 #9
0
        public object LoadDropdownList(string forMethod)
        {
            switch (forMethod)
            {
            case "ManageUser":
                return(ICB.sproc_get_dropdown_list("001"));

            case "searchfilter":
            {
                Dictionary <string, string> dict = new Dictionary <string, string>();
                dict.Add("MobileNo", "Mobile No");
                dict.Add("Email", "Email");
                dict.Add("Username", "User Name");
                dict.Add("Fullname", "Full Name");

                return(dict);
            };
            }
            return(null);
        }
コード例 #10
0
        public Dictionary <string, string> LoadDropdownList(string flag, string search1 = "")
        {
            switch (flag)
            {
            case "country":
                return(ICB.sproc_get_dropdown_list("004"));

            case "gender":
                return(ICB.sproc_get_dropdown_list("005"));

            case "occupation":
                return(ICB.sproc_get_dropdown_list("024"));

            case "doctype":
                return(ICB.sproc_get_dropdown_list("014"));

            case "province":
                return(ICB.sproc_get_dropdown_list("002"));

            case "issuedistrict":
                return(ICB.sproc_get_dropdown_list("007"));

            case "districtList":
                return(ICB.sproc_get_dropdown_list("007", search1));

            case "vdc_muncipality":
                return(ICB.sproc_get_dropdown_list("008", search1));

            case "nationality":
            {
                Dictionary <string, string> dict = new Dictionary <string, string>();
                dict.Add("Nepali", "Nepali");
                dict.Add("Indian", "Indian");
                dict.Add("Chinese", "Chinese");
                dict.Add("Others", "Others");
                return(dict);
            };

            case "usertype":

                Dictionary <string, string> dict1 = new Dictionary <string, string>();
                dict1.Add("1|Manager", "Manager");
                dict1.Add("2|User", "User");

                return(dict1);

            case "isprimary":
            {
                Dictionary <string, string> dict = new Dictionary <string, string>();
                dict.Add("Yes", "Yes");
                dict.Add("No", "No");
                return(dict);
            };

            case "status":
                Dictionary <string, string> dict2 = new Dictionary <string, string>();
                dict2.Add("Y", "Enable");
                dict2.Add("N", "Disable");

                return(dict2);
            }
            return(null);
        }