public ActionResult PendingTransaction(DynamicReportFilter model)
        {
            List <DynamicReportCommon> dynamicReportCommons = _dynamicReport.GetPendingReport(model);
            List <DynamicReportModel>  reportModel          = dynamicReportCommons.MapObjects <DynamicReportModel>();

            foreach (var item in reportModel)
            {
                item.Action = StaticData.GetActions("PendingTransaction", item.AgentId.EncryptParameter(), this, "", "", item.TxnId);
            }
            //Column Creator
            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("TxnDate", "Txn Date");
            param.Add("TxnId", "Txn Id");
            param.Add("ProductName", "Product");
            //param.Add("AgentId", "Agent Id");
            param.Add("SubscriberNo", "Subscriber No.");
            param.Add("Amount", "Amount");
            param.Add("TxnStatus", "Txn Status");
            //param.Add("UserId", "User Id");
            param.Add("Remarks", "Remarks");
            param.Add("Action", "Action");
            ProjectGrid.column = param;
            //Ends
            var grid = ProjectGrid.MakeGrid(reportModel, "hidebreadcrumb", "", 10, false, "", "", "Home", "", "", "", "datatable-total", true);

            ViewData["grid"] = grid;

            return(View());
        }
        public ActionResult GatewayProductList(string GatewayID, string Search = "", int Pagesize = 10)
        {
            GatewayID = GatewayID.DecryptParameter();
            //string  GatewayName = name.DecryptParameter();
            var list = buss.GetGatewayProductList(GatewayID, "");

            foreach (var item in list)
            {
                item.Action         = StaticData.GetActions("", item.GatewayProductId.ToString().EncryptParameter(), this, "/Admin/Gateway/ManageGatewayCommission", "/Admin/Gateway/ManageGatewayCommission?Id=" + item.GatewayId.ToString().EncryptParameter() + "&pid=" + item.ProductId.EncryptParameter(), "");
                item.CommissionType = string.IsNullOrEmpty(item.CommissionType.Trim()) ? "" :
                                      item.CommissionType.Trim().Equals("F") ? "FLAT" : "PERCENTAGE";


                //item.Action = "<input type='button' value='Edit Commission' onclick=redirect('" + item.GatewayId.EncryptParameter() + "','" + item.ProductId.EncryptParameter() + "')></input>";
                //item.Action = "< button type = 'button' onclick =\"window.location.href='www.example.com/page.html?Id=" + GatewayID.EncryptParameter() + "&gwid=" + item.GatewayProductId.ToString().EncryptParameter() + "'\">";
            }
            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("ProductLabel", "Product Label");
            param.Add("CommissionValue", "Commission");
            param.Add("CommissionType", "Commission Type");
            param.Add("Action", "Action");
            ProjectGrid.column = param;
            var grid = ProjectGrid.MakeGrid(list, "Gateway Services", Search, Pagesize, true, "", "", "Home", "Gateway", "/Admin/Gateway", "/Admin/Gateway/ManageGatewayCommission?Id=" + GatewayID.EncryptParameter());

            ViewData["grid"] = grid;
            return(View());
        }
Esempio n. 3
0
        // GET: Admin/SubAgentManagement
        public ActionResult Index(string Search = "", int Pagesize = 10)
        {
            string username = ApplicationUtilities.GetSessionValue("username").ToString();
            var    UserType = Session["UserType"].ToString();
            string AgentId = "", IsPrimary = ApplicationUtilities.GetSessionValue("IsPrimaryUser").ToString();

            AgentId = Session["AgentId"].ToString();

            //string username = ApplicationUtilities.GetSessionValue("UserName").ToString();

            var SubAgentCommon = buss.GetSubAgentList(AgentId, username);
            //Column Creator
            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("AgentName", "Agent Name");
            param.Add("AgentOperationType", "Operation Type");
            param.Add("AgentCreditLimit", "Credit Limit");
            param.Add("AgentMobileNumber", "Contact Number");
            param.Add("AgentStatus", "Agent Status");
            param.Add("Action", "Action");
            ProjectGrid.column = param;
            //Ends
            foreach (var item in SubAgentCommon)
            {
                item.Action      = StaticData.GetActions("ClientSubAgent", item.AgentID.EncryptParameter(), this, "", "", username.EncryptParameter(), item.AgentStatus);
                item.AgentStatus = "<span class='badge badge-" + (item.AgentStatus.Trim().ToUpper() == "Y" ? "success" : "danger") + "'>" + (item.AgentStatus.Trim().ToUpper() == "Y" ? "Active" : "Blocked") + "</span>";
            }
            var grid = ProjectGrid.MakeGrid(SubAgentCommon, "Sub Agent List ", "", 0, true, "", "", "Home", "Agent", "/Client/SubAgent/Index", String.IsNullOrEmpty(IsPrimary) == false && IsPrimary.ToUpper().Trim() == "Y" ? "/Client/SubAgent/ManageSubAgent?parentid=" + AgentId.EncryptParameter() : "");

            ViewData["grid"] = grid;
            SubAgentCreditLimitModel sam = new SubAgentCreditLimitModel();

            sam.ParentId = AgentId;
            return(View(sam));
        }
Esempio n. 4
0
        public ActionResult AccessLog(AccessLogCommon alc)
        {
            //AccessLogCommon alc = new AccessLogCommon();
            //alc.fromDate = fromDate;
            //alc.toDate = toDate;
            var list = _access.GetAccessLogList(alc.fromDate, alc.toDate);
            //foreach (var item in list)
            //{
            //    item.Action = StaticData.GetActions("AccessLog", "", this, "", "");
            //}
            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("pageName", "Page Name");
            param.Add("logType", "Log Status");
            param.Add("browser", "Browser");
            param.Add("Msg", "Remarks");
            param.Add("CreatedBy", "Access By");
            param.Add("actionIpAddress", "Ip Address");
            param.Add("createdLocalDate", "Date Time");

            ProjectGrid.column = param;
            var grid = ProjectGrid.MakeGrid(list, "hidebreadcrumb", "", 0, true, "", "", "Home", "Access Log", "#", "#");

            ViewData["grid"] = grid;
            return(View(alc));
        }
        public ActionResult TransactionReport(string Search = "", int Pagesize = 10)
        {
            DynamicReportFilter        model = new DynamicReportFilter();
            List <DynamicReportCommon> dynamicReportCommons = _dynamicReport.GetTransactionReport(model);
            List <DynamicReportModel>  reportModel          = dynamicReportCommons.MapObjects <DynamicReportModel>();

            foreach (var item in reportModel)
            {
                item.Action = StaticData.GetActions("TransactionReport", item.AgentId.EncryptParameter(), this, "", "", item.TxnId);
            }
            //Column Creator
            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("TxnDate", "Txn Date");
            param.Add("TxnId", "Txn Id");
            param.Add("ProductName", "Product");
            //param.Add("AgentId", "Agent Id");
            param.Add("SubscriberNo", "Subscriber No.");
            param.Add("Amount", "Amount");
            param.Add("TxnStatus", "Txn Status");
            //param.Add("UserId", "User Id");
            param.Add("Remarks", "Remarks");
            param.Add("Action", "Action");
            ProjectGrid.column = param;
            //Ends
            var grid = ProjectGrid.MakeGrid(reportModel, "hidebreadcrumb", Search, Pagesize, false, "", "", "Home", "", "", "", "datatable-total", true);

            ViewData["grid"] = grid;

            ViewBag.EmptyMessage = "False";
            ViewBag.GatewayList  = ApplicationUtilities.SetDDLValue(LoadDropdownList("pmtGt"), "", "Select Gateway");
            ViewBag.Status       = ApplicationUtilities.SetDDLValue(LoadDropdownList("status"), "", "Select Status");
            ViewBag.Product      = ApplicationUtilities.SetDDLValue(LoadDropdownList("productlist"), "", "Select Product");
            return(View());
        }
        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());
        }
        public ActionResult Detail(string Search = "", int Pagesize = 10, string balanceadd = "")
        {
            var list = buss.GetGatewayList();

            //   dynamic list = null;
            foreach (var item in list)
            {
                item.Action = StaticData.GetActions("Gateway", item.GatewayId.EncryptParameter(), this, "/Admin/Gateway/ManageGateway", "/Admin/Gateway/ManageGateway?GatewayID=" + item.GatewayId.EncryptParameter(), item.GatewayStatus, item.GatewayName.EncryptParameter());
                //  item.Action+= StaticData.GetActions("Gateway", item.GatewayId.EncryptParameter(), this, "/Admin/Gateway/ProductList", "/Admin/Gateway/ProductList?GatewayID=" + item.GatewayId.EncryptParameter(), item.GatewayStatus);
                item.GatewayStatus = "<span class='badge badge-" + (item.GatewayStatus.Trim().ToUpper() == "Y" ? "success" : "danger") + "'>" + (item.GatewayStatus.Trim().ToUpper() == "Y" ? "Enable" : "Disable") + "</span>";
            }
            //  var list = buss.GetGatewayList(gateway_Id);
            IDictionary <string, string> param = new Dictionary <string, string>();

            //  param.Add("GatewayId", "Gateway ID");
            param.Add("GatewayName", "Gateway Name");
            param.Add("GatewayBalance", "Available Balance");
            //    param.Add("GatewayURL", "Gateway URL");
            param.Add("GatewayStatus", "Gateway Status");
            param.Add("Action", "Action");

            ProjectGrid.column = param;
            var grid = ProjectGrid.MakeGrid(list, "Gateway", Search, Pagesize, true, "", "", "Home", "Gateway", "/Admin/Gateway/Detail", "/Admin/Gateway/ManageGateway");

            ViewData["grid"] = grid;
            return(View());
        }
        public ActionResult AgentCommissionProductList(string categoryid = "", string Search = "", int Pagesize = 10)
        {
            categoryid = categoryid.DecryptParameter();

            var list = comm.GetAgentCommissionCategoryProductList(categoryid);


            foreach (var item in list)
            {
                item.Action = StaticData.GetActions("AgentProductCommissionCategory", item.CommissionDetailId.ToString().EncryptParameter(), this, "/Admin/AgentCommission/ManageAgentCommissionCategoryProduct", "/Admin/AgentCommission/ManageAgentCommissionCategoryProduct?id=" + item.CommissionDetailId.EncryptParameter(), "");
            }
            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());
        }
        // GET: Admin/Services
        public ActionResult Index(string Search = "", int Pagesize = 20)
        {
            List <ServicesModel> lst = _services.GetServicesList().MapObjects <ServicesModel>();

            foreach (var item in lst)
            {
                item.Action      = StaticData.GetActions("Services", item.ProductId.ToString().EncryptParameter(), this, "", "", "");
                item.ProductLogo = "<img src='/Content/assets/images/service logos/" + item.ProductLogo + "' height='50' width='50' />";
                item.Status      = "<span class='badge badge-" + (item.Status.Trim().ToUpper() == "Y" ? "success" : "danger") + "'>" + (item.Status.Trim().ToUpper() == "Y" ? "Active" : "Blocked") + "</span>";
            }

            IDictionary <string, string> param = new Dictionary <string, string>();

            //param.Add("ProductId", "Product Id");
            param.Add("ProductLogo", "Product Logo");
            param.Add("TransactionType", "Transaction Type");
            param.Add("Company", "Company");
            param.Add("ProductLabel", "Product Label");
            param.Add("ProductType", "Product Type");
            param.Add("ProductCategory", "Product Category");
            param.Add("Status", "Status");
            param.Add("Action", "Action");


            ProjectGrid.column = param;
            var grid = ProjectGrid.MakeGrid(lst, "Services", Search, Pagesize, true, "", "", "Home", "Services", "/Admin/Services", "/Admin/Services/ManageServices");

            ViewData["grid"] = grid;
            return(View());
        }
        public ActionResult ViewReportDetailList(string ProductId, string CurrentDate)
        {
            //DateTime aDate = DateTime.Now;
            //aDate.ToString("MM/dd/yyyy")
            //DateTime oDate = Convert.ToDateTime(CurrentDate);
            var list = ACom.GetAdminCommissionDetailList(ProductId.DecryptParameter(), CurrentDate);

            foreach (var item in list)
            {
                item.TransactionId = "<a href='#' class='commission-report-detail' data-txnid='" + item.TransactionId.EncryptParameter() + "'>" + item.TransactionId.ToString() + "</a>";
                //item.Action = StaticData.GetActions("AdminCommissionReport", item.ProductId.EncryptParameter(), this, "", "", item.TransactionDate, "");
                //item.Status = "<span class='badge badge-" + (item.Status.Trim().ToUpper() == "SUCCESS" ? "success" : "danger") + "'>" + (item.Status.Trim().ToUpper() == "SUCCESS" ? "Active" : "Blocked") + "</span>";
            }

            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("TransactionId", "Transaction Id");
            param.Add("TransactionDate", "Transaction Date");
            param.Add("Service", "Service");
            param.Add("TransactionType", "Transaction Type");
            param.Add("SubscriberNo", "Subscriber No");
            param.Add("TotalAmount", "Amount");
            param.Add("AdminCommission", "Commission");
            //param.Add("Action", "Action");

            ProjectGrid.column = param;

            // var grid = ProjectGrid.MakeGrid(list, "hidebreadcrumb", "", 0, true, "", "", "Home", "Transaction Report", "", "", "datatable-total", showtotal: true);

            var grid = ProjectGrid.MakeGrid(list, "hidebreadcrumb", "", 0, false, "", "", "Home", "AdminCommission", "", "", "datatable-total", true);

            ViewData["grid"] = grid;

            return(View());
        }
Esempio n. 11
0
        public ActionResult UserList(string Search = "", int Pagesize = 20)
        {
            string ParentId = Session["UserId"].ToString();
            List <WalletUserInfoModel> lst = _CLientManagement.WalletUserList("WalletUser", ParentId: ParentId).MapObjects <WalletUserInfoModel>();

            foreach (var item in lst)
            {
                item.Action      = StaticData.GetActions("ClientUserList", item.AgentId.ToString().EncryptParameter(), this, "", "", item.AgentStatus, item.UserId.EncryptParameter());
                item.AgentStatus = "<span class='badge badge-" + (item.AgentStatus.Trim().ToUpper() == "Y" ? "success" : "danger") + "'>" + (item.AgentStatus.Trim().ToUpper() == "Y" ? "Active" : "Blocked") + "</span>";
            }
            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("MobileNo", "Mobile No.");
            param.Add("Email", "Email");
            param.Add("FullName", "Name");
            param.Add("KycStatus", "Kyc Status");
            param.Add("AgentStatus", "Status");
            //param.Add("Balance", "Balance");
            param.Add("CreatedLocalDate", "Registered Date");
            param.Add("Action", "Action");
            ProjectGrid.column = param;
            var grid = ProjectGrid.MakeGrid(lst, "", Search, Pagesize, true, "", "", "Home", "User", "/Client/ClientUser/UserList", "/Client/ClientUser/AddClient");

            ViewData["grid"] = grid;
            return(View());
        }
Esempio n. 12
0
        public ActionResult Detail(string Search = "", int Pagesize = 10)
        {
            var bankList = _bank.GetBankList();

            foreach (var item in bankList)
            {
                item.Action = StaticData.GetActions("Bank", item.BankID.EncryptParameter(), this, "/Admin/Bank/Detail", "/Admin/Bank/Detail?BankID=" + item.BankID.EncryptParameter(), item.BankStatus, item.BankName.EncryptParameter());
                //item.IsActive = "<span class='badge badge-" + (item.IsActive.Trim().ToUpper() == "Y" ? "success" : "danger") + "'>" + (item.IsActive.Trim().ToUpper() == "Y" ? "Enable" : "Disable") + "</span>";
                string s = item.BankStatus.Trim().ToUpper();
                item.BankStatus = "<span class='badge badge-" + (item.BankStatus.Trim().ToUpper() == "Y" ? "success" : "danger") + "'>" + (item.BankStatus.Trim().ToUpper() == "Y" ? "Enable" : "Disable") + "</span>";
            }
            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("BankID", "Bank ID");
            param.Add("BankName", "Bank Name");
            param.Add("BankAccountNo", "Bank Account No");
            param.Add("BankBranch", "Bank Branch");
            param.Add("BankStatus", "Bank Status");
            param.Add("BankCreatedBy", "Created By");
            param.Add("CreatedDate", "Created Date");
            param.Add("Action", "Action");

            ProjectGrid.column = param;
            var grid = ProjectGrid.MakeGrid(bankList, "Bank Setup", Search, Pagesize, true, "", "", "Home", "Bank", "/Admin/Bank", "/Admin/Bank/AddBank");

            ViewData["grid"] = grid;
            return(View());
        }
Esempio n. 13
0
        public ActionResult ActivityLog(string username)
        {
            //Start Search UserId from Mobile Number
            //IWalletUserBusiness _walletUserBusiness = new WalletUserBusiness();
            //string UserName = _walletUserBusiness.UserInfo(username).UserId.ToString();
            //Ends
            List <ActivityLogModel> log = _log.ActivityLog(username).MapObjects <ActivityLogModel>();
            //List<LogModel> logModels = log.MapObjects<LogModel>();

            //foreach (var item in log)
            //{
            //    item.Action = StaticData.GetActions("PendingTransaction", item.AgentId.EncryptParameter(), this, "", "", item.TxnId);
            //}
            //Column Creator
            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("page_name", "Page Name");
            param.Add("page_url", "Page Url");
            param.Add("ipaddress", "IP Address");
            param.Add("browser_detail", "Browser Detail");
            param.Add("CreatedBy", "Created By");
            param.Add("CreatedLocalDate", "Date");
            ProjectGrid.column = param;
            //Ends
            var grid = ProjectGrid.MakeGrid(log, "hidebreadcrumb", "", 10, false, "", "", "", "", "", "");

            ViewData["grid"] = grid;

            return(View());
        }
Esempio n. 14
0
        public ActionResult AccessLog(string from, string to)
        {
            AccessLogCommon alc = new AccessLogCommon();

            alc.fromDate = from;
            alc.toDate   = to;
            //var UserType = Session["UserType"].ToString();
            var list = _access.GetAccessLogList(alc.fromDate, alc.toDate);

            foreach (var item in list)
            {
                item.Action = StaticData.GetActions("AccessLog", "", this, "", "");
            }
            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("pageName", "Page Name");
            param.Add("logType", "Log Status");
            param.Add("browser", "Browser");
            param.Add("msg", "Remarks");
            param.Add("createdBy", "Access By");
            param.Add("actionIpAddress", "Ip Address");
            param.Add("createdLocalDate", "Date Time");

            ProjectGrid.column = param;
            var grid = ProjectGrid.MakeGrid(list, "", "", 0, true, "", "", "Home", "Access Log", "#", "#");

            ViewData["grid"] = grid;
            return(View());
        }
Esempio n. 15
0
        // GET: Admin/Agent
        public ActionResult Index(string ParentId = "")
        {
            var parentId = "";

            if (!string.IsNullOrEmpty(ParentId))
            {
                parentId = ParentId.DecryptParameter();
            }
            if (string.IsNullOrEmpty(parentId))
            {
                return(RedirectToAction("Index", "Distributor"));
            }
            var AgentCommon = _Agent.GetAgentList(parentId);
            //Column Creator
            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("AgentName", "Agent Name");
            param.Add("AgentOperationType", "Operation Type");
            param.Add("AgentMobileNumber", "Contact Number");
            param.Add("AgentStatus", "Agent Status");
            param.Add("kycstatus", "Kyc Status");

            param.Add("Action", "Action");
            ProjectGrid.column = param;
            //Ends
            foreach (var item in AgentCommon)
            {
                // item.Action = StaticData.GetActions("Agent", item.AgentId.EncryptParameter(), this, "", "", "");
                item.Action = StaticData.GetActions("Agent", item.AgentID.EncryptParameter(), this, "", "", item.UserName.EncryptParameter(), item.ParentId.EncryptParameter());
            }
            var grid = ProjectGrid.MakeGrid(AgentCommon, "Agent List ", "", 0, true, "", "", "Home", "Agent", "/Admin/Agent", "/Admin/Agent/Manage?ParentId=" + parentId.EncryptParameter());

            ViewData["grid"] = grid;
            return(View());
        }
        public ActionResult MerchantTransactionReport(DynamicReportFilter model)
        {
            var merchantList = _dynamicReport.MerchantDropdown();

            ViewBag.MerchantList = ApplicationUtilities.SetDDLValue(merchantList as Dictionary <string, string>, model.MerchantId, "All Merchant");

            List <MerchantTransactionCommon> reportModel = _dynamicReport.MerchantTransactionReport(model);

            IDictionary <string, string> param = new Dictionary <string, string>();

            //param.Add("TxnId", "Txn Id");
            //param.Add("MerchantId", "Merchant Id");
            param.Add("MerchantName", "Merchant Name");
            param.Add("MerchantCode", "Merchant Code");
            param.Add("UserId", "Mobile Number");
            param.Add("Amount", "Amount");
            param.Add("CommissionAmt", "Commission Amount");
            param.Add("CreatedDate", "Created Date");
            ProjectGrid.column = param;
            //Ends
            var grid = ProjectGrid.MakeGrid(reportModel, "hidebreadcrumb", "", 10, false, "", "", "", "", "", "", "datatable-total", true);

            ViewData["grid"] = grid;

            return(View());
        }
        public ActionResult PaymentGatewayTransactionReport(DynamicReportFilter model)
        {
            List <PaymentGatewayTransactionReport> paymentGatewayTransactionList = _dynamicReport.PaymentGatewayTransactionList(model);

            //List<DynamicReportModel> reportModel = dynamicReportCommons.MapObjects<DynamicReportModel>();
            foreach (var item in paymentGatewayTransactionList)
            {
                item.Action = StaticData.GetActions("paymentGatewayTransaction", item.GatewayTxnId.EncryptParameter(), this);
            }

            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("TxnId", "Txn Id");
            //param.Add("ServiceCharge", "Service Charge");
            param.Add("GatewayName", "Gateway Name");
            param.Add("GatewayTxnId", "Gateway Txn Id");
            param.Add("AgentName", "Agent Name");
            param.Add("Status", "Status");
            param.Add("Amount", "Amount");
            param.Add("TotalAmount", "Total Amount");
            //param.Add("AgentId", "Agent Id");
            //param.Add("UserId", "User Id");
            //param.Add("TxnType", "Txn Type");
            param.Add("CreatedDate", "Created Date");
            param.Add("Action", "Action");
            ProjectGrid.column = param;
            //Ends
            var grid = ProjectGrid.MakeGrid(paymentGatewayTransactionList, "hidebreadcrumb", "", 10, false, "", "", "", "", "", "", "datatable-total", true);

            ViewData["grid"]    = grid;
            ViewBag.GatewayList = ApplicationUtilities.SetDDLValue(LoadDropdownList("pmtGt"), model.GatewayId, "Select Gateway");
            return(View(model));
        }
        public ActionResult AssignCategory(string Search = "", int Pagesize = 10)
        {
            AssignCommissionCommon ACC = new AssignCommissionCommon();

            ACC.AgentType = Session["UserType"].ToString();
            ACC.AgentId   = ApplicationUtilities.GetSessionValue("agentid").ToString();//Session["UserId"].ToString();


            var list = comm.GetAssignedCategoryList(ACC);

            foreach (var item in list)
            {
                item.Action = StaticData.GetActions("AssignCommissionCategory", item.AgentId.ToString().EncryptParameter(), this, "", "/admin/commission/ManageAssignCategory?ID=" + item.AgentId.EncryptParameter(), "");
            }
            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("AgentName", "Agent Name");
            param.Add("AgentType", "Agent Type");
            param.Add("CommissionCategoryName", "Category Name");
            //  param.Add("CreateDate", "Created On");
            // param.Add("updatedby", "Updated By");
            param.Add("Action", "Action");

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

            ViewData["grid"] = grid;
            return(View());
        }
Esempio n. 19
0
        // GET: Admin/MerchantManagement
        public ActionResult Index()
        {
            List <MerchantModel> lst = _merchant.GetMerchantList().MapObjects <MerchantModel>();
            //Column Creator
            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("MerchantName", "Merchant Name");
            //param.Add("MerchantOperationType", "Operation Type");
            //param.Add("MerchantMobileNumber", "Contact Number");
            param.Add("MerchantCode", "Merchant Code");
            param.Add("MerchantStatus", "Merchant Status");
            param.Add("Action", "Action");
            ProjectGrid.column = param;
            //Ends
            foreach (var item in lst)
            {
                // item.Action = StaticData.GetActions("Distributor", item.DistributorId.EncryptParameter(), this, "", "", "");
                item.Action         = StaticData.GetActions(ControllerName, item.MerchantID.EncryptParameter(), this, "", "", item.MerchantStatus);
                item.MerchantStatus = "<span class='badge badge-" + (item.MerchantStatus.Trim().ToUpper() == "Y" ? "success" : "danger") + "'>" + (item.MerchantStatus.Trim().ToUpper() == "Y" ? "Active" : "Blocked") + "</span>";
            }
            var grid = ProjectGrid.MakeGrid(lst, "Merchant List ", "", 0, true, "", "", "Home", "Merchant", "/Admin/MerchantManagement", "/Admin/MerchantManagement/ManageMerchant");

            ViewData["grid"] = grid;
            return(View());
        }
        public ActionResult Category(string Search = "", int Pagesize = 10)
        {
            string agentid = ApplicationUtilities.GetSessionValue("agentid").ToString();

            var list = comm.GetCommissionCategoryList(agentid);

            foreach (var item in list)
            {
                item.IsActive = (item.IsActive.Trim().ToUpper() == "Y" ? "1" : "0");
                item.Action   = StaticData.GetActions("CommissionCategory", item.CategoryId.ToString().EncryptParameter(), this, "", "", item.IsActive);
            }
            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("CategoryName", "Category Name");
            param.Add("CreatedBy", "Created By");
            param.Add("CreateDate", "Created On");
            param.Add("IsActive", "Is Active");
            param.Add("Action", "Action");

            ProjectGrid.column = param;
            var grid = ProjectGrid.MakeGrid(list, "Commission Category", Search, Pagesize, true, "", "", "Home", "Commission", "/Admin/Commission/category", "/Admin/Commission/ManageCommissionCategory");

            ViewData["grid"] = grid;
            return(View());
        }
Esempio n. 21
0
        public ActionResult SearchUser(UserCommon UC)
        {
            ViewBag.SearchFilter = ApplicationUtilities.SetDDLValue(LoadDropdownList("searchfilter") as Dictionary <string, string>, UC.SearchFilter, "--Select--");

            if (!string.IsNullOrEmpty(UC.SearchField) || !string.IsNullOrEmpty(UC.SearchFilter))
            {
                string username = Session["username"].ToString();
                var    lst      = buss.GetSearchUserList(UC.SearchField, UC.SearchFilter, username);

                foreach (var item in lst)
                {
                    item.Status = "<span class='badge badge-" + (item.IsActive.Trim().ToUpper() == "Y" ? "success" : "danger") + "'>" + (item.IsActive.Trim().ToUpper() == "Y" ? "Active" : "Blocked") + "</span>";
                }
                IDictionary <string, string> param = new Dictionary <string, string>();

                param.Add("AgentUserId", "Agent Id");
                param.Add("FullName", "Full Name");
                param.Add("UserName", "User Name");
                param.Add("Email", "Email");
                param.Add("Status", "Status");
                param.Add("PhoneNo", "Mobile Number");
                param.Add("CreatedBy", "Created By");
                param.Add("CreateDate", "Created On");
                ProjectGrid.column = param;
                //Ends
                var grid = ProjectGrid.MakeGrid(lst, "hidebreadcrumb", "", 10, false, "", "", "", "", "", "");
                ViewData["grid"] = grid;
            }
            else
            {
                this.ShowPopup(1, "Please Fill the fields");
            }
            return(View(UC));
        }
Esempio n. 22
0
        public ActionResult CardApprovalList()
        {
            var cardCommonList = _card.GetApprovalList();
            //Actions
            var cardType = _card.GetCardType();//.FirstOrDefault(x => x.Key == item.CardType);

            foreach (var item in cardCommonList)
            {
                item.Action   = StaticData.GetActions("CardApproval", item.RequestId.EncryptParameter(), this, "", "", item.CardType);
                item.CardType = cardType.FirstOrDefault(x => x.Key == item.CardType).Value;;
            }
            //Column Creator
            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("UserName", "Name");
            param.Add("MobileNo", "Mobile Number");
            param.Add("Email", "Email");
            param.Add("CardType", "Card type");
            //param.Add("CardType", "Card No.");
            param.Add("CreatedLocalDate", "Issue Date");
            //param.Add("ExpiryDate", "Expiry Date");
            param.Add("RequestStatus", "Status");
            param.Add("Action", "Action");
            ProjectGrid.column = param;
            //Ends
            //Add New
            var grid = ProjectGrid.MakeGrid(cardCommonList, "", "", 0, false, "", "", "Home", "Card");

            ViewData["grid"] = grid;
            if (cardCommonList.Count() == 0)
            {
                ViewBag.EmptyMessage = "True";
            }
            return(View());
        }
Esempio n. 23
0
        public ActionResult Index(string Search = "", int Pagesize = 10)
        {
            string usertype = Session["UserType"].ToString();
            var    list     = buss.GetAllList(StaticData.GetUser(), usertype, Pagesize);

            foreach (var item in list)
            {
                item.Action         = StaticData.GetActions("User", item.UserID.EncryptParameter(), this, "", "", item.IsActive);
                item.ActivityStatus = item.IsActive;
                item.ActivityStatus = "<span class='badge badge-" + (item.IsActive.Trim().ToUpper() == "Y" ? "success" : "danger") + "'>" + (item.IsActive.Trim().ToUpper() == "Y" ? "Active" : "Blocked") + "</span>";
            }

            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("FullName", "Full Name");
            param.Add("Email", "Email");
            param.Add("PhoneNo", "Phone No");
            param.Add("ActivityStatus", "Status");
            param.Add("Action", "Action");

            ProjectGrid.column = param;
            var grid = ProjectGrid.MakeGrid(list, "User", Search, Pagesize, true, "", "", "Home", "User", "/Admin/User", "/Admin/User/ManageUser");

            ViewData["grid"] = grid;
            return(View());
        }
        // GET: Admin/AdminCommission
        public ActionResult Index(string FromDate = "", string ToDate = "", string NepFromDate = "", string NepToDate = "")
        {
            var list = ACom.GetAdminCommissionReport(FromDate, ToDate);

            foreach (var item in list)
            {
                item.Action = StaticData.GetActions("AdminCommissionReport", item.ProductId.EncryptParameter(), this, "", "", item.TransactionDate, "");
                //item.Status = "<span class='badge badge-" + (item.Status.Trim().ToUpper() == "SUCCESS" ? "success" : "danger") + "'>" + (item.Status.Trim().ToUpper() == "SUCCESS" ? "Active" : "Blocked") + "</span>";
            }

            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("TransactionDate", "Transaction Date");
            param.Add("Service", "Service");
            param.Add("TransactionType", "Transaction Type");
            param.Add("TotalTransaction", "Total Transaction");
            param.Add("TotalAmount", "Total Amount");
            param.Add("CommissionEarned", "Commission Earned");
            param.Add("Action", "Action");

            ProjectGrid.column = param;

            // var grid = ProjectGrid.MakeGrid(list, "hidebreadcrumb", "", 0, true, "", "", "Home", "Transaction Report", "", "", "datatable-total", showtotal: true);

            var grid = ProjectGrid.MakeGrid(list, "hidebreadcrumb", "", 0, false, "", "", "Home", "AdminCommission", "", "", "datatable-total", true);

            ViewData["grid"] = grid;

            return(View());
        }
        public ActionResult Index(string ParentId = "")
        {
            var    UserType = Session["UserType"].ToString();
            string AgentId = "", IsPrimary = ApplicationUtilities.GetSessionValue("IsPrimaryUser").ToString();
            string username = ApplicationUtilities.GetSessionValue("UserName").ToString();

            if (UserType.ToUpper() == "SUB-DISTRIBUTOR")
            {
                AgentId = Session["agentid"].ToString();
            }
            ParentId = ParentId.DecryptParameter();
            var DistributorCommon = buss.GetSubDistributorList(ParentId, username, AgentId);
            //Column Creator
            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("AgentName", "Agent Name");
            param.Add("AgentOperationType", "Operation Type");
            param.Add("AgentMobileNumber", "Contact Number");
            param.Add("AgentCreditLimit", "Credit Limit");
            param.Add("AgentStatus", "Agent Status");
            param.Add("Action", "Action");
            ProjectGrid.column = param;
            //Ends
            foreach (var item in DistributorCommon)
            {
                item.Action      = StaticData.GetActions("SubDistributorManagement", item.AgentID.EncryptParameter(), this, "", "", username.EncryptParameter(), item.AgentStatus);
                item.AgentStatus = "<span class='badge badge-" + (item.AgentStatus.Trim().ToUpper() == "Y" ? "success" : "danger") + "'>" + (item.AgentStatus.Trim().ToUpper() == "Y" ? "Active" : "Blocked") + "</span>";
            }
            var grid = ProjectGrid.MakeGrid(DistributorCommon, "Sub-Distributor List ", "", 0, true, "", "", "Home", "Sub-Distributor", "/Admin/SubDistributorManagement", String.IsNullOrEmpty(IsPrimary) == false && IsPrimary.ToUpper().Trim() == "Y" ? "/Admin/SubDistributorManagement/ManageSubDistributor?parent_id=" + ParentId.EncryptParameter() : "");

            ViewData["grid"] = grid;
            return(View());
        }
        public ActionResult TransactionReport(string Search = "", int Pagesize = 10)
        {
            List <DynamicReportCommon> dynamicReportCommons = _dynamicReport.GetTransactionReport();
            List <DynamicReportModel>  reportModel          = dynamicReportCommons.MapObjects <DynamicReportModel>();

            foreach (var item in reportModel)
            {
                item.Action = StaticData.GetActions("TransactionReport", item.AgentId.EncryptParameter(), this, "", "", item.TxnId);
            }
            //Column Creator
            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("TxnDate", "Txn Date");
            param.Add("TxnId", "Txn Id");
            param.Add("ProductName", "Product");
            param.Add("AgentId", "Agent Id");
            param.Add("SubscriberNo", "Subscriber No.");
            param.Add("Amount", "Amount");
            param.Add("TxnStatus", "Txn Status");
            param.Add("UserId", "User Id");
            param.Add("Remarks", "Remarks");
            param.Add("Action", "Action");
            ProjectGrid.column = param;
            //Ends
            var grid = ProjectGrid.MakeGrid(reportModel, "", Search, Pagesize, false, "", "", "Home", "", "", "");

            ViewData["grid"] = grid;

            return(View());
        }
Esempio n. 27
0
        public ActionResult Report(string Search = "", int Pagesize = 10)
        {
            List <BalanceCommon> balanceCommons = _balance.GetDistributorReport();
            List <BalanceModel>  balanceModels  = balanceCommons.MapObjects <BalanceModel>();

            foreach (var item in balanceModels)
            {
                item.Action = StaticData.GetActions("ReportList", item.AgentId.EncryptParameter(), this, "", "", item.BalanceId);
            }
            //Column Creator
            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("CreatedDate", "Date");
            param.Add("Name", "Name");
            param.Add("Amount", "Added/Retrieved balance");
            param.Add("CreatedBy", "Created By");
            param.Add("TxnMode", "Mode");
            param.Add("Action", "Action");
            ProjectGrid.column = param;
            //Ends
            var grid = ProjectGrid.MakeGrid(balanceModels, ControllerName, Search, Pagesize, false, "", "", "Home", "", "", "");

            ViewData["grid"] = grid;

            return(View());
            //return View(balanceModels);
        }
Esempio n. 28
0
        public ActionResult ActivityLog(string username, ActivityLogModel model)
        {
            List <ActivityLogModel> log = _log.ActivityLog(username, model.FromDate, model.ToDate, model.Email, model.MobileNumber).MapObjects <ActivityLogModel>();


            //List<LogModel> logModels = log.MapObjects<LogModel>();

            //foreach (var item in log)
            //{
            //    item.Action = StaticData.GetActions("PendingTransaction", item.AgentId.EncryptParameter(), this, "", "", item.TxnId);
            //}
            //Column Creator
            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("page_name", "Page Name");
            param.Add("page_url", "Page Url");
            param.Add("ipaddress", "IP Address");
            param.Add("browser_detail", "Browser Detail");
            param.Add("Email", "Email");
            param.Add("MobileNumber", "Mobile Number");
            param.Add("CreatedBy", "Created By");
            param.Add("CreatedLocalDate", "Date");
            ProjectGrid.column = param;
            //Ends
            var grid = ProjectGrid.MakeGrid(log, "hidebreadcrumb", "", 10, false, "", "", "", "", "", "");

            ViewData["grid"] = grid;

            return(View(model));
        }
        public ActionResult ManualCommissionReport(ManualCommissionReportCommon model)
        {
            // Start User Id from mobile number
            var list = _buss.GetSearchUserList(model.MobileNumber, "mobileno");

            if (string.IsNullOrEmpty(model.MobileNumber))
            {
                list = null;
            }
            if (list != null)
            {
                var userinfo = list.FirstOrDefault();
                if (userinfo == null)
                {
                    ViewBag.EmptyMessage = "True";
                    return(View());
                }
                model.UserId = userinfo.UserID.ToString();
            }
            else
            {
                ViewBag.EmptyMessage = "True";
                return(View());
            }
            //Ends
            DynamicReportFilter models = new DynamicReportFilter();

            models = model.MapObject <DynamicReportFilter>();

            List <DynamicReportCommon> dynamicReportCommons = _dynamicReport.GetManualCommissionReport(models);
            List <DynamicReportModel>  reportModel          = dynamicReportCommons.MapObjects <DynamicReportModel>();
            Decimal Total_Commission = 0;

            foreach (var item in reportModel)
            {
                Total_Commission = Total_Commission + Convert.ToDecimal(item.CommissionEarned);
            }

            ViewBag.totalcommission = (float)Total_Commission;

            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("SubscriberNo", "Mobile Number");
            param.Add("ProductName", "Product Name");
            param.Add("TxnType", "Txn Type");
            param.Add("Amount", "Amount");
            param.Add("CommissionEarned", "Commission Earned");
            param.Add("Remarks", "Remarks");
            param.Add("TxnDate", "Txn Date");
            ProjectGrid.column = param;
            //Ends
            var grid = ProjectGrid.MakeGrid(reportModel, "hidebreadcrumb", "", 10, false, "", "", "", "", "", "", "datatable-total", true);

            ViewData["grid"] = grid;

            return(View());
        }
Esempio n. 30
0
        public ActionResult ViewAgentWalletUser(string AgentId = "")
        {
            var    UserType = Session["UserType"].ToString();
            string id = "", IsPrimary = ApplicationUtilities.GetSessionValue("IsPrimaryUser").ToString().Trim();

            if (UserType.ToUpper() == "SUB-DISTRIBUTOR")
            {
                return(RedirectToAction("Index", "SubDistributor", new { DistId = Session["AgentId"].ToString() }));
            }
            else if (UserType.ToUpper() == "DISTRIBUTOR")
            {
                id = Session["AgentId"].ToString();
            }
            else
            {
                id = AgentId.DecryptParameter();
            }
            if (string.IsNullOrEmpty(id))
            {
                return(RedirectToAction("Index"));
            }
            var userId = "";

            if (String.IsNullOrEmpty(IsPrimary) == false && (IsPrimary.ToUpper().Trim() == "N" || IsPrimary.ToUpper().Trim() == ""))
            {
                userId = Session["UserId"].ToString();
            }
            //var WalletUser = buss.GetWalletUserList(id, userId);
            dynamic WalletUser = null;

            //Actions
            foreach (var item in WalletUser)
            {
                item.Action = StaticData.GetActions("ViewDistributorUser", item.UserId.EncryptParameter(), this, "", "", item.AgentID.EncryptParameter(), item.UserStatus, item.isPrimary, DisableAddEdit: Session["UserId"].ToString() == item.UserId);
            }
            //Column Creator
            IDictionary <string, string> param = new Dictionary <string, string>();

            //param.Add("DistributorId", "Agent Id");
            param.Add("UserFullName", "Fullname");
            param.Add("UserName", "Username");
            param.Add("UserEmail", "Email");
            param.Add("UserMobileNo", "Mobile No");
            param.Add("UserType", "User Type");
            param.Add("isPrimary", "Is primary");
            param.Add("UserStatus", "Status");
            param.Add("Action", "Action");
            ProjectGrid.column = param;
            //Ends
            //Add New
            var grid = ProjectGrid.MakeGrid(WalletUser, "Distributor Users", "", 0, true, "", "", "Home", "Distributor", "/Admin/Distributor", String.IsNullOrEmpty(IsPrimary) == false && IsPrimary.ToUpper().Trim() == "Y" ? "/Admin/Distributor/ManageDistributorUsers?distid=" + id.EncryptParameter() : "");

            ViewData["grid"] = grid;
            return(View());
        }