当前位置: 首页>>代码示例>>C#>>正文


C# clsMasters.fnGetData方法代码示例

本文整理汇总了C#中BAL.clsMasters.fnGetData方法的典型用法代码示例。如果您正苦于以下问题:C# clsMasters.fnGetData方法的具体用法?C# clsMasters.fnGetData怎么用?C# clsMasters.fnGetData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BAL.clsMasters的用法示例。


在下文中一共展示了clsMasters.fnGetData方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: FlightgetGuestDetails

    protected void FlightgetGuestDetails()
    {
        _objMasters = new clsMasters();
        _objMasters.ScreenInd = Masters.GetFlights1;
        _objMasters.RequestID = Convert.ToString(Session["Order_Id"]);
        _objDataSet = new DataSet();
        _objDataSet = (DataSet)_objMasters.fnGetData();

        if (_objDataSet != null)
        {
            if (_objDataSet.Tables.Count > 0)
            {
                if (_objDataSet.Tables[0].Rows.Count > 0)
                {
                    Name = _objDataSet.Tables[0].Rows[0]["Customer_Details"].ToString();
                    address = _objDataSet.Tables[0].Rows[0]["address"].ToString();
                    string[] name = Name.ToString().Split('|');
                    Name = name[0].ToString() + name[1].ToString();

                    string[] add = address.ToString().Split(',');

                    State = add[1].ToString();
                    City = add[0].ToString();
                    PostalCode = add[3].ToString();
                    Email = _objDataSet.Tables[0].Rows[0]["emailAddress"].ToString();
                    Mobilenumber = _objDataSet.Tables[0].Rows[0]["telephone"].ToString();
                    Country = add[2].ToString();
                    //  address = add[0].ToString();
                    val = "true";
                }
            }
        }
    }
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:33,代码来源:Pay.aspx.cs

示例2: checkUser

    public void checkUser()
    {
        if (txtEmailID1.Text != "")
        {
            _objMasters = new clsMasters();
            _objMasters.ScreenInd = Masters.UserName;
            _objMasters.EmailID = txtEmailID1.Text.Trim();
            _objDataSet = (DataSet)_objMasters.fnGetData();
            DataTable dt = _objDataSet.Tables[0];
            if (dt.Rows.Count > 0)
            {

                lblMsg1.Text = "User name is not available";
                lblMsg1.ForeColor = Color.Red;
                lblMsg1.Visible = true;
                Checked = "null";
                // MpeSignUP.Show();
            }
            else
            {
                lblMsg1.ForeColor = Color.Blue;
                lblMsg1.Text = "User name is available";
                Checked = "available";
            }
        }
        else
        {
            lblMsg1.Text = "Please Enter Email ID";
            lblMsg1.ForeColor = Color.Red;
            lblMsg1.Visible = true;
            Checked = "null";
        }
    }
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:33,代码来源:MainMasterPage.master.cs

示例3: D2HRecharge

    public void D2HRecharge()
    {
        lblMobileMsg.Text = ""; lblDataCardmsg.Text = ""; lblD2HMsg.Text = "";
        gvD2HRecharge.Visible = true;
        gvDataCardRecharge.Visible = false;
        gvMobile.Visible = false;
        paging.Visible = false;
        gvD2HRecharge.DataSource = null;
        gvD2HRecharge.DataBind();
        lblD2HMsg.Text = string.Empty;

        Label4dataCommi.Visible = false;
        Label4D2hComm.Visible = true;
        Label3DEH.Visible = true;

        lblTotalProfit.Visible = false;
        lblTotalAmount.Visible = false;

        try
        {
            if (DateTime.Parse(txtDF.Text.Trim().ToString()) > DateTime.Parse(txtDT.Text.Trim().ToString()))
            {
                lblD2HMsg.Text = "From Date should be less than To Date";
                return;
            }
            else
            {
                _objMasters = new clsMasters();
                _objMasters.ScreenInd = Masters.GetAgentOnly;
                _objMasters.From = txtDF.Text.Trim().ToString();
                _objMasters.To = txtDT.Text.Trim().ToString();
                _objMasters.UserID = Convert.ToInt32(Session["UserID"]);
                _objMasters.Parameter = "DTH";
                _objDataSet = (DataSet)_objMasters.fnGetData();
                ViewState["D2HData"] = _objDataSet.Tables[0];

                if (_objDataSet.Tables[0].Rows.Count > 0)
                {
                    paging.Visible = true;
                    gvD2HRecharge.DataSource = _objDataSet.Tables[0];
                    gvD2HRecharge.DataBind();
                }
                else
                {
                    Label3DEH.Visible = false;
                    Label4D2hComm.Visible = false;
                    paging.Visible = false;
                    lblD2HMsg.Visible = true;
                    lblD2HMsg.Text = "No Numbers are Recharged between " + txtDF.Text + " and  " + txtDT.Text;
                    return;
                }
            }
        }
        catch
        {

        }
    }
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:58,代码来源:IndividualAgentReports.aspx.cs

示例4: D2HRecharge

    public void D2HRecharge()
    {
        paging.Visible = false;
           // gvD2HRecharge.DataSource = null;
          //  gvD2HRecharge.DataBind();
        lblD2HMsg.Text = string.Empty;

        try
        {
            _objMasters = new clsMasters();
            dt = DateTime.Parse(txtDF.Text, CultureInfo.GetCultureInfo("en-gb"));
            dt = Convert.ToDateTime(dt.ToShortDateString());

            dt1 = DateTime.Parse(txtDT.Text, CultureInfo.GetCultureInfo("en-gb"));
            dt1 = Convert.ToDateTime(dt1.ToShortDateString());

            if (DateTime.Parse(dt.ToString()) > DateTime.Parse(dt1.ToString()))
            {
                lblD2HMsg.Text = "From Date should be less than To Date";
                gvD2HRecharge.Visible = false;
                return;
            }
            else
            {

                _objMasters.ScreenInd = Masters.VisitorsReportd2h;
                _objMasters.From12 = Convert.ToDateTime(dt.ToString());
                _objMasters.To12 = Convert.ToDateTime(dt1.ToString());
               // _objMasters.UserID = Convert.ToInt32(Session["RechargeUserID"]);
                _objMasters.Parameter = "D2H";

                _objDataSet = (DataSet)_objMasters.fnGetData();
                ViewState["D2HData"] = _objDataSet.Tables[0];

                if (_objDataSet.Tables[0].Rows.Count > 0)
                {
                    paging.Visible = true;
                    gvD2HRecharge.Visible = true;
                    gvD2HRecharge.DataSource = _objDataSet.Tables[0];
                    gvD2HRecharge.DataBind();
                }
                else
                {
                    paging.Visible = false;
                    lblD2HMsg.Visible = true;
                    lblD2HMsg.Text = "No Numbers are Recharged between " + txtDF.Text + " and  " + txtDT.Text;
                    return;
                }
            }
        }
        catch
        {

        }
    }
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:55,代码来源:frmVisitors.aspx.cs

示例5: fnLoadPage1

    public void fnLoadPage1()
    {
        try
        {

            _objMasters = new clsMasters();
            _objMasters.ScreenInd = Masters.AgentCommission;

            if (Session["Role"].ToString() == "Admin")
            {
                _objMasters.Type = "AD";
                _objMasters.DistributorID = Convert.ToInt32(Session["UserID"].ToString());
            }
            else if (Session["Role"].ToString() == "DB")
            {
                _objMasters.Type = "AG";
                _objMasters.DistributorID = Convert.ToInt32(Session["UserID"].ToString());
            }

            _objDataSet = (DataSet)_objMasters.fnGetData();

            if (_objDataSet.Tables[0].Rows.Count > 0)
            {
                gvOperators.DataSource = _objDataSet.Tables[0];
                gvOperators.DataBind();
                ViewState["OperatorName"] = _objDataSet.Tables[0];
                btnUpdate.Visible = false;
                btnDelete.Visible = false;
                btnCancel.Visible = false;
                btnAdd.Visible = true;
            }

        }
        catch (Exception ex)
        {
          //  LogError("Masters_frmOperatorNameaspx.aspx", "fnLoadPage", DateTime.Now, ex.Message.ToString());
          //  Response.Redirect("../Error.aspx", false);
            //Logger.Log(Logger.LogType.Log_In_DB, ex,true);
            //Logger.Log(ex, Session["APRUserName"].ToString());
            lblmessage.Text = ex.Message;
        }
        finally
        {
            _objMasters = null;
            if (_objDataSet != null)
            {
                _objDataSet.Dispose();
            }
        }
    }
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:50,代码来源:AgentCommission.aspx.cs

示例6: fnLoadPage

    private void fnLoadPage()
    {
        try
        {
            _objMasters = new clsMasters();
            _objMasters.ScreenInd = Masters.getoperators;
            _objDataSet = (DataSet)_objMasters.fnGetData();
            if (_objDataSet != null)
            {
                if (_objDataSet.Tables.Count > 0)
                {
                    if (_objDataSet.Tables[0].Rows.Count > 0)
                    {
                        ddlProvider.DataSource = _objDataSet.Tables[0];
                        ddlProvider.DataValueField = "OperatorsID";
                        ddlProvider.DataTextField = "OperatorsName";
                        ddlProvider.DataBind();
                        ddlProvider.Items.Insert(0, "Please Select");

                    }
                    else
                    {
                        lblmsg.Text = "No data found";
                    }
                }
                else
                {
                    lblmsg.Text = "No data found";
                }
            }
            else
            {
                lblmsg.Text = "No data found";
            }
        }
        catch (Exception ex)
        {

        }
        finally
        {
            _objMasters = null;
            if (_objDataSet != null)
            {
                _objDataSet.Dispose();
            }
        }
    }
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:48,代码来源:showTariff.aspx.cs

示例7: btnRegister_Click

    protected void btnRegister_Click(object sender, EventArgs e)
    {
        try
        {
            _objMasters = new clsMasters();
            _objMasters.ScreenInd = Masters.GetTarrif;
            _objMasters.OperatorsID = Convert.ToInt32(ddlProvider.SelectedValue);
            _objDataSet = (DataSet)_objMasters.fnGetData();
            if (_objDataSet != null)
            {
                if (_objDataSet.Tables.Count > 0)
                {
                    if (_objDataSet.Tables[0].Rows.Count > 0)
                    {
                        lblmsg.Text = "";
                        gvMobile.DataSource = _objDataSet.Tables[0];
                        gvMobile.DataBind();
                        gvMobile.Visible = true;

                    }
                    else
                    {
                        lblmsg.Text = "No data found";
                        lblmsg.Visible = true;
                        lblmsg.ForeColor = Color.Red;
                        gvMobile.Visible = false;
                    }
                }
                else
                {
                    lblmsg.Text = "No data found";
                    gvMobile.Visible = false;
                }
            }
            else
            {
                gvMobile.Visible = false;
                lblmsg.Text = "No data found";
            }
        }
        catch (Exception ex)
        {

        }
    }
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:45,代码来源:showTariff.aspx.cs

示例8: checkUser

    public void checkUser()
    {
        try
        {

            if (txtEmailID1.Text != "")
            {
                _objMasters = new clsMasters();
                _objMasters.ScreenInd = Masters.UserName;
                _objMasters.EmailID = txtEmailID1.Text.Trim();
                _objDataSet = (DataSet)_objMasters.fnGetData();
                DataTable dt = _objDataSet.Tables[0];
                if (dt.Rows.Count > 0)
                {

                    lblMsg1.Text = "User name is not available";
                    lblMsg1.ForeColor = Color.Red;
                    lblMsg1.Visible = true;
                    Checked = "null";
                    // MpeSignUP.Show();
                }
                else
                {
                    lblMsg1.ForeColor = Color.Blue;
                    lblMsg1.Text = "User name is available";
                    Checked = "available";
                }
            }
            else
            {
                lblMsg1.Text = "Please Enter Email ID";
                lblMsg1.ForeColor = Color.Red;
                lblMsg1.Visible = true;
                Checked = "null";
            }
        }
        catch (Exception ex)
        {
            LogError("Default.aspx", "CheckUser", DateTime.Now, ex.Message.ToString());
            Response.Redirect("Error.aspx", false);
        }
    }
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:42,代码来源:RDefault.aspx.cs

示例9: fnLoadPage1

    public void fnLoadPage1()
    {
        try
        {

            _objMasters = new clsMasters();
            _objMasters.ScreenInd = Masters.ListOfAmounts;
            _objDataSet = (DataSet)_objMasters.fnGetData();

            if (_objDataSet != null)
            {

                if (_objDataSet.Tables[0].Rows.Count > 0)
                {
                    gvOperators.DataSource = _objDataSet.Tables[0];
                    gvOperators.DataBind();
                    ViewState["OperatorName"] = _objDataSet.Tables[0];
                    btnUpdate.Visible = false;
                    btnDelete.Visible = false;
                    btnCancel.Visible = false;
                    btnAdd.Visible = true;
                }
            }

        }
        catch (Exception ex)
        {
           // LogError("Masters_frmOperatorNameaspx.aspx", "fnLoadPage", DateTime.Now, ex.Message.ToString());
            Response.Redirect("../Error.aspx", false);
            //Logger.Log(Logger.LogType.Log_In_DB, ex,true);
            //Logger.Log(ex, Session["APRUserName"].ToString());
        }
        finally
        {
            _objMasters = null;
            if (_objDataSet != null)
            {
                _objDataSet.Dispose();
            }
        }
    }
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:41,代码来源:ListofAmounts.aspx.cs

示例10: checkAgent

 public void checkAgent()
 {
     try
     {
         if (txtEmailIDAgent.Text != "")
         {
             _objMasters = new clsMasters();
             _objMasters.ScreenInd = Masters.AgentName;
             _objMasters.EmailID = txtEmailIDAgent.Text.Trim();
             _objDataSet = (DataSet)_objMasters.fnGetData();
             DataTable dt = _objDataSet.Tables[0];
             if (dt.Rows.Count > 0)
             {
                 lblmsg.Text = "EmailId is already exists";
                 lblmsg.ForeColor = Color.Red;
                 lblmsg.Visible = true;
                 Checked = "null";
             }
             else
             {
                 lblmsg.ForeColor = Color.Green;
                 lblmsg.Text = "EmailId is Available";
                 lblmsg.Visible = true;
                 Checked = "Available";
             }
         }
         else
         {
             lblmsg.Text = "Please Enter Email ID";
             lblmsg.ForeColor = Color.Red;
             lblmsg.Visible = true;
             Checked = "null";
         }
     }
     catch (Exception ex)
     {
         LogError("AgentLogin", "checkUser", DateTime.Now, ex.Message.ToString());
         Response.Redirect("Error.aspx", false);
     }
 }
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:40,代码来源:AgentLogin.aspx.cs

示例11: Page_Load

 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         _objMasters = new clsMasters();
         _objMasters.ScreenInd = Masters.gettopcontent;
         //_objMasters.Content = "Hi";
         _objDataSet = (DataSet)_objMasters.fnGetData();
         if (_objDataSet != null)
         {
             if (_objDataSet.Tables[0].Rows.Count > 0)
             {
                 if (_objDataSet.Tables[0].Rows[0]["Content"].ToString() != "")
                 {
                     lblContent.Text = _objDataSet.Tables[0].Rows[0]["Content"].ToString();
                 }
                 else
                 {
                     lblContent.Text = "There is no information";
                 }
             }
         }
     }
 }
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:24,代码来源:OfferZone.aspx.cs

示例12: MobileRecharge

    public Boolean MobileRecharge(String CouponNumber, String MobileNumber, Int16 RechargeAmount, String Order_Id, String IPAddr)
    {
        Boolean isRechargeSuccess = false;

        string Provider = String.Empty, balance = String.Empty, Email = String.Empty, requestId = String.Empty;
        _objMaster = new clsMasters();
        _objMaster.ScreenInd = Masters.getrecharge;
        _objMaster.Parameter = "RequestID";
           // _objMaster.RequestID = Session["Order_Id"].ToString();
        _objMaster.RequestID = Order_Id.ToString();
        _objDataSet = new DataSet();
        _objDataSet = (DataSet)_objMaster.fnGetData();

        if (_objDataSet != null)
        {
            if (_objDataSet.Tables[0].Rows.Count > 0)
            {
                MobileNumber = _objDataSet.Tables[0].Rows[0]["MobileNo"].ToString();
                Provider = _objDataSet.Tables[0].Rows[0]["Provider_Name"].ToString();
                balance = _objDataSet.Tables[0].Rows[0]["Amount"].ToString();
                Email = _objDataSet.Tables[0].Rows[0]["E_Mail"].ToString();

                # region Mobile code
             //   requestId = "KAA" + GenerateRandomNumber(11);

             //   string URL = "http://www.bulksel.com/api_reach_bulksel.php?user=kass9378&pass=bus80111&mobileno=918008419101&newid=" + requestId + "&message=BS " +
             //Provider + " " + MobileNumber + " " + balance;

             //   HttpWebRequest oReq = null;
             //   HttpWebResponse oRes = null;
             //   StreamReader oStream = null;
             //   oReq = (HttpWebRequest)WebRequest.Create(URL);
             //   oReq.Method = "GET";
             //   oReq.Timeout = 10000;
             //   oRes = (HttpWebResponse)oReq.GetResponse();
             //   oStream = new StreamReader(oRes.GetResponseStream(), Encoding.GetEncoding(1252));

             //   string strMessage = oStream.ReadToEnd().ToString();

             //   Session["strMessage"] = strMessage.ToString();
             //   string[] s = strMessage.Split('d');
             //   if (s[0].ToString() == "Request Accepte")
             //   {
             //       #region Insert Data into Database

             //       _objMaster = new clsMasters();

             //       _objMaster.ScreenInd = Masters.getGuestrecharge1;
             //       _objMaster.Parameter = "update";
             //       _objMaster.RequestID = Session["Order_Id"].ToString();
             //       _objMaster.TransactionID = Convert.ToString(s[1].ToString());
             //       Session["TransactionID"] = Convert.ToString(s[1].ToString());

             //       _objMaster.IP = IPAddr;

             //       if (_objMaster.fnUpdateRecord() == true)
             //       {

             //           isRechargeSuccess = true;
             //           //lblMessage.Text = "Recharge has Been Success";

             //           try
             //           {
             //               string body = "<html xmlns='http://www.w3.org/1999/xhtml'><head><title></title></head><body>" +
             //      "<table width='700' border='0' cellspacing='0' cellpadding='0' style='font-family: Verdana;font-size: smaller; margin-left: 1px; margin-right: 1px; padding-bottom: 10px;'><tr>" +
             //      "<td valign='top' width='100%'>" +
             //      "<table width='100%'><tr><td valign='top'" +
             //     " &nbsp;<img src='http://rechargeraja.com/images/ban.jpg' /></td> </tr></table> </td></tr>" + " <tr><td align='left' valign='top' style='height: 0px; background-color: #860f2b;'></td></tr>" +
             //     "<tr><td align='left' valign='top' style='padding-left: 10px;'>Dear User, </td></tr>" +
             //     "<tr><td align='left' valign='top' style='padding-left: 10px;'>Your TransactionID .<span style='font-weight: 600;'>" + Session["TransactionID"] + " </span></td></tr>" +
             //     "<tr><td><table><tr><td align='right' valign='top' style='padding-right: 100px; background-color: #F1F1F1'><span style='color: #860f2b; font-weight: 600;'> Mobile Number:</span>" + MobileNumber + "</td>" +
             //     "<td align='right' valign='top' style='padding-right: 100px; background-color: #F1F1F1'><span style='color: #860f2b; font-weight: 600;'>Amount:</span>" + balance + "</td></tr></table></td></tr>" +
             //      "<tr><td align='left' width='100%' valign='top'><table><tr><td align='center' width='100%' valign='top' style='background-color: #860f2b; color: White;' colspan='2'><b>Contact Us</b></td></tr>" +
             //      "<tr><td align='left' valign='top' style='background-color: #EFEFEF;'><table><tr><td align='right' valign='top'><span style='color: #860f2b;'>Support</span> </td>  " + "<td align='left' valign='top'>  &nbsp;Visit our Knowledge Base / FAQs for quick answers Log a query or problem at  My Helpdesk </td></tr> " +
             //      "<tr><td align='right' valign='top'></td>&quot;</tr></table></td>" +
             //    "<td align='left' valign='top' style='background-color: #EFEFEF;'><table><tr><td align='left' valign='top'> <span style='color: #860f2b;'>Sales Support</span></td> " +
             //    "<td align='left' valign='top'> <p>  </p> Hyderabad - 90</td></tr>" +
             //     "<tr><td align='left' valign='top' style='padding-left: 20px;'></td></tr>" +
             //     "<tr><td align='left' valign='top' style='padding-left: 20px; background-color: #860f2b color: White;'></td></tr>" +
             //     "</table></body></html>" +
             //     "<br />Again, we thank you for registering with <b>www.rechargeraja.com</b> and please " +
             //      "do not hesitate to write to us at <a href='mailto:[email protected]'>Mail</a>" + "if you have any questions.<br /><br />Best Regards,<br /><a href='http://www.rechargeraja.com'>rechargeraja.com</a> " + "<br /><br />";

             //               MailSender.SendEmail(Email, "[email protected]", "[email protected]", "rechargeraja-Recharge", body);

             //           }
             //           catch (Exception ex)
             //           {
             //               isRechargeSuccess = false;
             //               //throw ex;
             //           }

             //           try
             //           {
             //               string strUrl = "http://sms.i2space.in/WebServiceSMS.aspx?User=i2space1&passwd=smsc&mobilenumber=" + MobileNumber +
             //               "&message= Thank You for usingrechargeraja.com to Recharge Mobile no" + MobileNumber + " for Rs" + " " + balance + "& your order Num is" + "" + Session["TransactionID"] + "" + "for Queries ,Email us at [email protected]" +
             //               "&sid=rechargeraja&mtype=N";
             //               HttpWebRequest oReq1 = null;
             //               HttpWebResponse oRes1 = null;
             //               StreamReader oStream1 = null;
//.........这里部分代码省略.........
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:101,代码来源:MobileRechargeService.cs

示例13: Page_Load

        protected void Page_Load(object sender, EventArgs e)
        {
            string sQS;
            //string[] aQS;
            //string lsDetail1, lsDetail2, lsDetail;
               // string pwd = "ebskey";
               string pwd = "91fd335602ba035c96e9ec6f427082aa";

            string DR = Request.QueryString["DR"].ToString();

               // string DR = "IXc9laP5EPzkG8rJUEkT9GPYZKb+340d1KINeq1DJAbrqc5GeRs3RVwRJ7YShbNZUyaxTmSW46lexsfKVHpZGaEckYB8lZxGvToGUG9WVbC2b86UjHu125hgs12+1Ql5j0PVxNN9JqB32SFu+2e9n2eDeWfaVS3KZKnENgwdth3GL8LGG3rbDq5YXYEfOxqAYAmvoOTNxuyHt+yBl6uKqGOdRsToe5dPnIXXo1zBh8q2asX6Rj7jd/xOFtrZV+uhlq1kYZdvUrREXZz6/P0QxRAZioRGzjf1AyYhXA6i/NgCKixXHSR3r15FScNIqyb74SeGq19oOSp5+lDqFGZZfz8Vb+tGJYxSwOFM4Og362rqjHd+YvQpFSIwl0MUInW5PZprjS0zGMmSMOIpnUNDXuevflzn1yRkTgGztwdakfplA6k1118CerVjt6K2c1z4grA936AdbSW2JkQEnyp0krr3GAOV+v3ug6l1WDyPdyN+vvaWAhJAgxd15QpuDVeZ1uTvO42XjjFPetnskmtzyNZH0GmWSjQo91f7/dqV4kpgLOCe//iVmnTbws23K8ueosn6Pbh4jgGix0wRXgySz2Nw0xXwHDEsdKZSIuLOVyxn3Zdx5JzdAseuc/P2vzH8xDCJ6GVcvD+7eeyv1+ZqAnOpT26eJ3vIPskxVWiSePXpMiZUSY4RcL6K3Gy+j+O3Ib4uZ85XbrzJ0e+yT4pcv8q7KQWb02vJ/0iD25HrSlCpNkE3lcxctoASzz1sZ48CLg==";

            DR = DR.Replace(' ', '+');
            sQS = Base64Decode(DR);
            DR = RC4.Decrypt(pwd, sQS, false);
            Session["DR"] = DR.ToString();

            if (Session["DR"] != null)
            {
                string str = Session["DR"].ToString();
                string[] words = str.Split('&');

                string msgid1 = words[0].ToString();
               // ResponseCode = msgid1.Substring(msgid1.IndexOf("ResponseCode=") + 13, 1);

                ResponseCode = msgid1.Substring(13).ToString().Trim();

                string msgid2 = words[1].ToString();
               // ResponseMessage = msgid2.Substring(msgid2.IndexOf("ResponseMessage=") + 16, 22);

                ResponseMessage = msgid2.Substring(16).ToString().Trim();

                string msgid5 = words[4].ToString();
                //MerchantRefNo = msgid5.Substring(msgid5.IndexOf("MerchantRefNo=") + 14, 11);

                MerchantRefNo = msgid5.Substring(14).ToString().Trim();

                //string msgid6 = words[23].ToString();
                //IsFlagged = msgid6.Substring(msgid6.IndexOf("IsFlagged=") + 10, 2);

                Session["Ticketrefno"] = Session["Order_Id"] = MerchantRefNo.ToString();

                if (ResponseMessage == "Transaction Successful" && ResponseCode == "0")
                {
                    //_objMaster = new clsMasters();
                    //_objMaster.ScreenInd = Masters.Ewalletbyrequestid;
                    //_objMaster.RequestID = Session["Order_Id"].ToString();
                    //_objDataSet = (DataSet)_objMaster.fnGetData();
                    //if (_objDataSet != null)
                    //{
                    //    if (_objDataSet.Tables.Count > 0)
                    //    {
                    //        if (_objDataSet.Tables[0].Rows.Count > 0)
                    //        {
                    //            Session["Ewallet"] = _objDataSet.Tables[0].Rows[0]["Type"].ToString();
                    //        }
                    //    }
                    //}

                    //if (Session["Ewallet"].ToString() == "null")
                    //{

                    if (MerchantRefNo.Contains("LJIF"))
                    {
                        Response.Redirect("~/frmIntFlightsAvailability.aspx", false);
                    }
                    else if (MerchantRefNo.Contains("LJC"))
                    {
                        Session["refno"] = Session["Order_Id"].ToString();
                        Response.Redirect("~/CarTicket.aspx", false);
                    }

                    else if (MerchantRefNo.Contains("LJH"))
                    {
                        Session["HotelRefNo"] = Session["Order_Id"].ToString();
                        Response.Redirect("~/HotelTicket.aspx", false);
                    }

                    else if (MerchantRefNo.Contains("LJDF"))
                    {

                        _objMasters = new clsMasters();
                        _objMasters.ScreenInd = Masters.GetFlights1;
                        _objMasters.RequestID = Convert.ToString(Session["Order_Id"]);
                        _objDataSet = new DataSet();
                        _objDataSet = (DataSet)_objMasters.fnGetData();

                        if (_objDataSet != null)
                        {
                            if (_objDataSet.Tables.Count > 0)
                            {
                                if (_objDataSet.Tables[0].Rows.Count > 0)
                                {
                                    if (_objDataSet.Tables[0].Rows[0]["Type"].ToString() == "Guest")
                                    {
                                        ScriptManager.RegisterStartupScript(this, typeof(Page), "Alert", "<script>alert('" + "Domestic flights 1111" + "');</script>", false);

                                        Response.Redirect("~/frmFlightsAvailability.aspx", false);
                                    }
                                    else
//.........这里部分代码省略.........
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:101,代码来源:Response.aspx.cs

示例14: BindAgents

    private void BindAgents()
    {
        try
        {
            _objMasters = new clsMasters();
            _objMasters.ScreenInd = Masters.GetAgentApprovedList;
            _objDataSet = (DataSet)_objMasters.fnGetData();
            if (_objDataSet != null)
            {
                if (_objDataSet.Tables[0].Rows.Count > 0)
                {
                    ddlName.DataSource = _objDataSet.Tables[0];
                    ddlName.DataValueField = "UserID";
                    ddlName.DataTextField = "FirstName";
                    ddlName.DataBind();
                    ddlName.Items.Insert(0, "Please Select");
                    // ddlAgentName.SelectedIndex = 0;

                }
            }
        }
        catch (Exception ex)
        {

        }
        finally
        {
            _objMasters = null;
            if (_objDataSet != null)
            {
                _objDataSet.Dispose();
            }
        }
    }
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:34,代码来源:AgentCommission.aspx.cs

示例15: BindDisAgents

 protected void BindDisAgents()
 {
     _objMasters = new clsMasters();
     _objMasters.ScreenInd = Masters.GetDistributorsList;
     _objMasters.DistributorID = Convert.ToInt32(Session["RechargeUserID"].ToString());
     _objMasters.Parameter = "getagentsbydistributorsId";
     _objDataSet = (DataSet)_objMasters.fnGetData();
     if (_objDataSet != null)
     {
         if (_objDataSet.Tables.Count > 0)
         {
             if (_objDataSet.Tables[0].Rows.Count > 0)
             {
                 ddlName.DataSource = _objDataSet.Tables[0];
                 ddlName.DataValueField = "UserID";
                 ddlName.DataTextField = "FirstName";
                 ddlName.DataBind();
                 ddlName.Items.Insert(0, "Please Select");
             }
             else
             {
                 ddlName.Items.Clear();
                 ddlName.Items.Insert(0, "Please Select");
             }
         }
     }
 }
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:27,代码来源:AgentCommission.aspx.cs


注:本文中的BAL.clsMasters.fnGetData方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。