Beispiel #1
0
        protected void btnConfirm_Click(object sender, EventArgs e)
        {
            if ((xtrans.Text == "") || (xmob.Text == "")|| (val.IsValidMobile(xmob.Text)>0) )
            {
                if (xtrans.Text == "") { xtrans.BorderColor = System.Drawing.Color.Red; } else { xtrans.BorderColor = System.Drawing.Color.Green; }
                if (xmob.Text == "") { xmob.BorderColor = System.Drawing.Color.Red; } else { xmob.BorderColor = System.Drawing.Color.Green; }
                Response.Write("<script language=JavaScript  type='text/javascript'>alert('PLEASE BE SURE TO FILL IN ALL THE ENTRIES MARKED WITH A RED STAR!!'); </script>");
            }
            else if ((xtrans.Text != "") && (xmob.Text != "") && (val.IsValidMobile(xmob.Text) == 0))
            {
                if ((Session["agentType"] != null) && (Session["agentType"].ToString() != "")) { agentType = Session["agentType"].ToString(); }
                if (agentType == "Agent")
                {
                    c_reg = ret.getRegistrationByPhoneNumber(xmob.Text); Session["c_reg"] = c_reg; Session["RegID"] = c_reg.xid;
                    fullname = c_reg.Firstname + " " + c_reg.Surname; coy_name = c_reg.CompanyName; cust_id = c_reg.Sys_ID;
                    email = c_reg.Email; mobile = c_reg.PhoneNumber;
                    Session["fullname"] = fullname;
                    Session["email"] = email;
                    Session["mobile"] = mobile;
                    Session["c_addy"] = c_reg.CompanyAddress;
                }
                else
                {
                    if (Session["c_sub"] != null)
                    {
                        c_sub = ret.getSubAgentByPhoneNumber(xmob.Text); Session["c_sub"] = c_sub; Session["RegID"] = c_sub.xid;
                        fullname = c_sub.Firstname + " " + c_sub.Surname; Session["fullname"] = fullname;
                        email = c_sub.Email; Session["email"] = email;
                        mobile = c_sub.Telephone; Session["mobile"] = mobile;
                    }
                    if (Session["c_sub_reg"] != null)
                    {
                        c_sub_reg = ret.getRegistrationBySubagentRegistrationID(c_sub.RegistrationID); Session["c_sub_reg"] = c_sub_reg;
                        coy_name = c_sub_reg.CompanyName;
                        cust_id = c_sub_reg.Sys_ID + "_" + c_sub.AssignID;
                        Session["fullname"] = fullname;
                        Session["email"] = email;
                        Session["mobile"] = mobile;
                        Session["c_addy"] = c_sub_reg.CompanyAddress;
                    }
                }
                string RegID = "";
                if ((Session["RegID"] != null) && (Session["RegID"].ToString() != "")) { RegID = Session["RegID"].ToString(); }
                if ((RegID != null)&&(RegID!=""))
                {
                    lt_twall = ret.getValidatedTwalletByMemberID(RegID, xtrans.Text);
                    if (lt_twall.Count > 0)
                    {
                        paid_status_msg = lt_twall[0].xpay_status;
                        if (paid_status_msg == "1") { paid_status_msg = "PAID"; btnValidate.Visible = false; } else { paid_status_msg = "NOT PAID"; btnValidate.Visible = true; }
                        lt_fdets = ret.getFee_detailsByTwalletID(lt_twall[0].xid);

                        Session["transID"] = xtrans.Text; Session["memberID"] = RegID;
                        show_inv = 1;
                    }
                    else { status_msg="COULD NOT FIND THE TRANSACTION ON THE SYSTEM!!"; }
                }

            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if ((Session["pwalletID"] != null) && (Session["pwalletID"].ToString() != ""))
            { this.adminID = Session["pwalletID"].ToString(); }
            else
            { base.Response.Redirect("../../../a_login.aspx"); }

            if (IsPostBack)
            {
                if (rblOptions.SelectedValue == "isw")
                {
                    if (Session["xispf"] != null)
                    {
                        xispf = (Ipong.Classes.XObjs.InterSwitchPostFields)Session["xispf"];
                        if ((Session["agentType"] != null) && (Session["agentType"].ToString() != ""))
                        {
                            agentType = Session["agentType"].ToString();
                            if (agentType == "Agent")
                            {
                                c_reg = (Classes.XObjs.Registration)Session["c_reg"];
                                xispf.cust_id = c_reg.Sys_ID;
                                xispf.cust_id_desc = "Portal Agent";
                            }
                            else
                            {
                                c_sub = (Classes.XObjs.Subagent)Session["c_sub"];
                                xispf.cust_id = c_sub.Sys_ID;
                                xispf.cust_id_desc = "Portal Sub-Agent";
                            }
                        }
                        addIsw_succ = reg.addInterSwitchRecords(xispf);
                        if (addIsw_succ > 0)
                        {
                            update_twallxgt_succ = reg.updateTwalletXgt(xispf.txn_ref, "xpay_isw", adminID);
                            if (update_twallxgt_succ > 0)
                            {
                                Response.Redirect("./payment_details.aspx");
                            }
                        }
                    }
                    else
                    {
                        Response.Redirect("../../../A/m_pay.aspx");
                    }
                }
                else if (rblOptions.SelectedValue == "bank")
                {
                    if (Session["xispf"] != null)
                    {
                        xispf = (Ipong.Classes.XObjs.InterSwitchPostFields)Session["xispf"];
                        update_twallxgt_succ = reg.updateTwalletXgtBanker(xispf.txn_ref, "xpay_bk", adminID);
                        if (update_twallxgt_succ > 0)
                        {
                            Response.Redirect("../../../A/m_invoice_bank.aspx?tx=" + xispf.txn_ref);
                        }
                    }
                }
            }
        }
Beispiel #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if ((Session["pwalletID"] != null) && (Session["pwalletID"].ToString() != ""))
            { this.adminID = Session["pwalletID"].ToString(); }
            else
            { base.Response.Redirect("../a_login.aspx"); }

            if ((Session["log_date"] != null) && (Session["log_date"].ToString() != ""))  { this.log_date = Session["log_date"].ToString(); }

            if ((Session["agentType"] != null) && (Session["agentType"].ToString() != ""))
            { this.agentType = Session["agentType"].ToString(); }
            else
            { base.Response.Redirect("../a_login.aspx"); }

            if ((Session["agentType"] != null) && (Session["agentType"].ToString() != ""))
            {
                agentType = Session["agentType"].ToString();

                if (agentType == "Agent")
                {
                    if (Session["c_reg"] != null)
                    {
                        c_reg = (Classes.XObjs.Registration)Session["c_reg"];
                        fullname = c_reg.Firstname + " " + c_reg.Surname;
                        coy_name = c_reg.CompanyName;
                        cust_id = c_reg.Sys_ID;
                        email = c_reg.Email;
                        mobile = c_reg.PhoneNumber;
                        Session["coy_name"] = coy_name;
                        Session["fullname"] = fullname;
                        Session["email"] = email;
                        Session["mobile"] = mobile;
                        Session["c_addy"] = c_reg.CompanyAddress;
                    }
                }
                else
                {
                    if (Session["c_sub"] != null)
                    {
                        c_sub = (Classes.XObjs.Subagent)Session["c_sub"];
                        fullname = c_sub.Firstname + " " + c_sub.Surname;
                        email = c_sub.Email;
                        mobile = c_sub.Telephone;
                    }
                    if (Session["c_sub_reg"] != null)
                    {
                        c_sub_reg = (Classes.XObjs.Registration)Session["c_sub_reg"];
                        coy_name = c_sub_reg.CompanyName;
                        cust_id = c_sub_reg.Sys_ID + "_" + c_sub.AssignID;
                    }
                    Session["coy_name"] = coy_name;
                    Session["fullname"] = fullname; Session["email"] = email;
                    Session["mobile"] = mobile;
                    Session["c_addy"] = c_sub_reg.CompanyAddress;
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if ((Session["pwalletID"] != null) && (Session["pwalletID"].ToString() != ""))
            { this.adminID = Session["pwalletID"].ToString(); }
            else
            { base.Response.Redirect("../a_login.aspx"); }

            if ((Session["log_date"] != null) && (Session["log_date"].ToString() != "")) { this.log_date = Session["log_date"].ToString(); }

            if ((Session["agentType"] != null) && (Session["agentType"].ToString() != ""))
            {
                agentType = Session["agentType"].ToString();
                if (agentType == "Agent")
                {
                    if (Session["c_reg"] != null)
                    {
                        c_reg = (Classes.XObjs.Registration)Session["c_reg"];
                        fullname = c_reg.Firstname + " " + c_reg.Surname;
                        coy_name = c_reg.CompanyName;
                        cust_id = c_reg.Sys_ID;
                        email = c_reg.Email;
                        mobile = c_reg.PhoneNumber;
                        Session["coy_name"] = coy_name;
                        Session["fullname"] = fullname;
                        Session["email"] = email;
                        Session["mobile"] = mobile;
                        Session["c_addy"] = c_reg.CompanyAddress;
                    }
                }
                else
                {
                    Classes.XObjs.Registration c_sub_reg = new Classes.XObjs.Registration();
                    if (Session["c_sub"] != null)
                    {
                        c_sub = (Classes.XObjs.Subagent)Session["c_sub"];
                        fullname = c_sub.Firstname + " " + c_sub.Surname;
                        email = c_sub.Email;
                        mobile = c_sub.Telephone;
                    }
                    if (Session["c_sub_reg"] != null)
                    {
                        c_sub_reg = (Classes.XObjs.Registration)Session["c_sub_reg"];
                        coy_name = c_sub_reg.CompanyName;
                        cust_id = c_sub_reg.Sys_ID + "_" + c_sub.AssignID;
                    }
                    Session["coy_name"] = coy_name;
                    Session["fullname"] = fullname; Session["email"] = email;
                    Session["mobile"] = mobile;
                    Session["c_addy"] = c_sub_reg.CompanyAddress;
                }
            }
            if (!IsPostBack)
            {
                if ((Request.Form["x"] != null) && (Request.Form["x"].ToString() != ""))
                {
                    xid = Request.Form["x"].ToString(); Session["new_ptID"] = Request.Form["x"].ToString();
                }
                else
                {
                    Response.Redirect("../A/profile.aspx");
                }
            }
            btn_all_doc.Click += new System.EventHandler(this.upload_Clicked);
            this.serverpath = base.Server.MapPath("~/");
        }
Beispiel #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Session["Trademark_item"] = null;
            if ((Session["pwalletID"] != null) && (Session["pwalletID"].ToString() != ""))
            {
                this.adminID = Session["pwalletID"].ToString();
                xadminID.Value = adminID;
                if ((Session["agentType"] != null) && (Session["agentType"].ToString() != ""))
                {
                    agentType = Session["agentType"].ToString();
                    tm_cnt = ret.getCombinedPaidFee_detail_ItemsCntByCat(adminID, "ds", "1", agentType);
                    used_cnt = ret.getPaidUsedCntByCat(adminID, "ds", "1", agentType, "Used");
                    unused_cnt = ret.getPaidUsedCntByCat(adminID, "ds", "1", agentType, "Not Used");

                    if (agentType == "Agent")
                    {
                        c_reg = ret.getRegistrationByID(adminID); Session["c_reg"] = c_reg;
                        Session["coy_name"] = c_reg.CompanyName;
                        Session["agentemail"] = c_reg.Email;
                        Session["agentpnumber"] = c_reg.PhoneNumber;
                        Session["Sys_ID"] = c_reg.Sys_ID;
                        Session["cname"] = c_reg.CompanyName;
                    }
                    else
                    {
                        c_sub = ret.getSubAgentByID(adminID); Session["c_sub"] = c_sub;
                        c_sub_reg = ret.getRegistrationBySubagentRegistrationID(c_sub.RegistrationID); Session["c_sub_reg"] = c_sub_reg;
                        Session["coy_name"] = c_sub_reg.CompanyName;
                        Session["agentemail"] = c_sub.Email;
                        Session["agentpnumber"] = c_sub.Telephone;
                        Session["Sys_ID"] = c_sub.Sys_ID;
                        Session["cname"] = c_sub_reg.CompanyName;
                    }
                }
            }
            else
            { base.Response.Redirect("../a_login.aspx"); }

            if ((Session["log_date"] != null) && (Session["log_date"].ToString() != "")) { this.log_date = Session["log_date"].ToString(); }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if ((Session["pwalletID"] != null) && (Session["pwalletID"].ToString() != ""))
            { this.adminID = Session["pwalletID"].ToString(); }
            else
            { base.Response.Redirect("../../../a_login.aspx"); }
             if (Session["xispf"] != null) { xispf = (Ipong.Classes.XObjs.InterSwitchPostFields)Session["xispf"]; }

             if ((Session["agentType"] != null) && (Session["agentType"].ToString() != ""))
             {
                 agentType = Session["agentType"].ToString();
                 if (agentType == "Agent")
                 {
                     if (Session["c_reg"] != null)
                     {
                         c_reg = (Classes.XObjs.Registration)Session["c_reg"];
                         Session["name"] = c_reg.Firstname + " " + c_reg.Surname;
                         Session["coy_name"] = c_reg.CompanyName;
                         Session["Address"] = c_reg.CompanyAddress;
                     }

                 }
                 else
                 {
                     Classes.XObjs.Registration c_sub_reg = new Classes.XObjs.Registration();

                     if (Session["c_sub"] != null)
                     {
                         c_sub = (Classes.XObjs.Subagent)Session["c_sub"];
                         Session["name"] = c_sub.Firstname + " " + c_sub.Surname;
                     }
                     if (Session["c_sub_reg"] != null)
                     {
                         c_sub_reg = (Classes.XObjs.Registration)Session["c_sub_reg"];
                         Session["coy_name"] = c_sub_reg.CompanyName;
                         Session["Address"] = c_sub_reg.CompanyAddress;
                     }

                 }
             }

             twall = ret.getTwalletByMemberID(adminID, xispf.txn_ref, agentType);
            lt_fdets = ret.getFee_detailsByTwalletID(twall[0].xid);

            int cld_amt = 0; int einao_amt = 0;
            if (lt_fdets.Count > 0)
            {
                foreach (Classes.XObjs.Fee_details f in lt_fdets)
                {
                    cld_amt += Convert.ToInt32(f.init_amt) * Convert.ToInt32(f.xqty) * 100;
                    einao_amt += Convert.ToInt32(f.tech_amt) * Convert.ToInt32(f.xqty) * 100;
                }
            }
            refno = xispf.txn_ref;
            isw_conv_fee = Math.Round(Convert.ToDecimal(xispf.isw_conv_fee), 2).ToString();
            total_amt =Convert.ToString( xispf.amount);
            amt = Convert.ToString((Convert.ToDecimal(total_amt)/100) - Convert.ToDecimal(isw_conv_fee));

            name = Session["name"].ToString();
            coy_name =Session["coy_name"].ToString();
            addy = Session["Address"].ToString();

            amt = string.Format("{0:n}", amt);
            isw_conv_fee = string.Format("{0:n}", isw_conv_fee);

            Session["amt"] = amt;
            Session["isw_conv_fee"] = isw_conv_fee;
            Session["total_amt"] = total_amt;
            Session["Refno"] = refno;
            Session["einao_split_amt"] = einao_amt.ToString(); ;
            Session["cld_split_amt"] = cld_amt.ToString();
            Session["hashString"] = xispf.hash;
            if (addy.Contains(',')) { addy = addy.Replace(",", ", "); }
        }