コード例 #1
0
ファイル: xmail.cs プロジェクト: ozotony/payx
 protected void Page_Load(object sender, EventArgs e)
 {
     if ((this.Session["pwalletID"] != null) && (this.Session["pwalletID"].ToString() != ""))
     {
         this.adminID = this.Session["pwalletID"].ToString();
     }
     else
     {
         base.Response.Redirect("../login.aspx");
     }
     if ((this.Session["Pwallet"] != null) && (this.Session["Pwallet"].ToString() != ""))
     {
         this.xpwallet = (XObjs.Pwallet) this.Session["Pwallet"];
         this.Session["fullname"] = this.ret.getPartnerByID(this.xpwallet.xmemberID).cname;
         this.Session["email"] = this.xpwallet.xemail;
         this.Session["mobile"] = this.xpwallet.xmobile;
     }
 }
コード例 #2
0
ファイル: Retriever.cs プロジェクト: ozotony/payx
 public XObjs.Pwallet a_xadminz(string uname, string xpass)
 {
     string str = hf.ConnectXpay();
     XObjs.Pwallet pwallet = new XObjs.Pwallet();
     SqlConnection connection = new SqlConnection(hf.ConnectXpay());
     SqlCommand command = new SqlCommand("select * from pwallet WHERE  xemail='" + uname + "' AND xpass='******' ", connection);
     connection.Open(); command.CommandTimeout = 0;
     SqlDataReader reader = command.ExecuteReader(CommandBehavior.CloseConnection);
     while (reader.Read())
     {
         XObjs.Pwallet pwallet2 = new XObjs.Pwallet();
         pwallet.xid = reader["xid"].ToString();
         pwallet.xmembertype = reader["xmembertype"].ToString();
         pwallet.xmemberID = reader["xmemberID"].ToString();
         pwallet.xemail = reader["xemail"].ToString();
         pwallet.xmobile = reader["xmobile"].ToString();
         pwallet.xpass = reader["xpass"].ToString();
         pwallet.reg_date = reader["reg_date"].ToString();
     }
     reader.Close();
     return pwallet;
 }
コード例 #3
0
ファイル: upd_pro.cs プロジェクト: ozotony/payx
 protected void Page_Load(object sender, EventArgs e)
 {
     if ((this.Session["pwalletID"] != null) && (this.Session["pwalletID"].ToString() != ""))
     {
         this.adminID = this.Session["pwalletID"].ToString();
     }
     else
     {
         base.Response.Redirect("./login.aspx");
     }
     this.xpwallet = this.ret.getPwalletByID(this.adminID);
     if (this.xpwallet.xmembertype == "rc")
     {
         this.name = this.ret.getMemberByID(this.xpwallet.xmemberID).xname;
         this.addressID = this.ret.getMemberByID(this.xpwallet.xmemberID).addressID;
     }
     else if (this.xpwallet.xmembertype == "rb")
     {
         this.name = this.ret.getBankerByID(this.xpwallet.xmemberID).xname;
         this.addressID = this.ret.getBankerByID(this.xpwallet.xmemberID).addressID;
     }
     else if (this.xpwallet.xmembertype == "ra")
     {
         this.name = this.ret.getAgentByID(this.xpwallet.xmemberID).xname;
         this.addressID = this.ret.getAgentByID(this.xpwallet.xmemberID).addressID;
     }
     else if (this.xpwallet.xmembertype == "rp")
     {
         this.name = this.ret.getPartnerByID(this.xpwallet.xmemberID).cname;
         this.addressID = this.ret.getPartnerByID(this.xpwallet.xmemberID).addressID;
     }
     this.xname.Text = this.name.ToUpper();
     if (!base.IsPostBack)
     {
         this.ViewState["PreviousPage"] = base.Request.UrlReferrer;
         this.xemail.Text = this.xpwallet.xemail;
         this.xtelephone.Text = this.xpwallet.xmobile;
         this.xpass.Text = this.xpwallet.xpass;
     }
 }
コード例 #4
0
ファイル: Retriever.cs プロジェクト: ozotony/payx
 public XObjs.Pwallet getPwalletByMobile(string xmobile)
 {
     XObjs.Pwallet pwallet = new XObjs.Pwallet();
     SqlConnection connection = new SqlConnection(hf.ConnectXpay());
     SqlCommand command = new SqlCommand("SELECT * FROM pwallet WHERE xmobile='" + xmobile + "' ", connection);
     connection.Open();
     SqlDataReader reader = command.ExecuteReader(CommandBehavior.CloseConnection);
     while (reader.Read())
     {
         pwallet.xid = reader["xid"].ToString();
         pwallet.xmembertype = reader["xmembertype"].ToString();
         pwallet.xmemberID = reader["xmemberID"].ToString();
         pwallet.xemail = reader["xemail"].ToString();
         pwallet.xmobile = reader["xmobile"].ToString();
         pwallet.xpass = reader["xpass"].ToString();
         pwallet.reg_date = reader["reg_date"].ToString();
     }
     reader.Close();
     return pwallet;
 }
コード例 #5
0
ファイル: Retriever.cs プロジェクト: ozotony/payx
 public List<XObjs.Pwallet> getPwalletByMemberType(string xmembertype)
 {
     List<XObjs.Pwallet> list = new List<XObjs.Pwallet>();
     SqlConnection connection = new SqlConnection(hf.ConnectXpay());
     SqlCommand command = new SqlCommand("SELECT * FROM pwallet WHERE xmembertype='" + xmembertype + "' ", connection);
     connection.Open();command.CommandTimeout = 0;
     SqlDataReader reader = command.ExecuteReader(CommandBehavior.CloseConnection);
     while (reader.Read())
     {
         XObjs.Pwallet item = new XObjs.Pwallet {
             xid = reader["xid"].ToString(),
             xmembertype = reader["xmembertype"].ToString(),
             xmemberID = reader["xmemberID"].ToString(),
             xemail = reader["xemail"].ToString(),
             xmobile = reader["xmobile"].ToString(),
             xpass = reader["xpass"].ToString(),
             reg_date = reader["reg_date"].ToString()
         };
         list.Add(item);
     }
     reader.Close();
     return list;
 }