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 (!base.IsPostBack) { this.Session["IpongMemberType"] = null; this.Session["grand_tot_cnt"] = null; this.Session["new_grand_tot_amt"] = null; this.Session["transID"] = null; this.Session["payment_type"] = null; this.Session["bank_xname"] = null; this.Session["bank_bankname"] = null; this.Session["bank_xposition"] = null; this.Session["bank_street"] = null; this.Session["bank_telephone"] = null; this.Session["bank_email"] = null; this.Session["transDate"] = null; } this.c_pr = this.ret.getPratioByMemberID(this.adminID); if (this.c_pr.xid != null) { this.Session["IpongMemberType"] = this.c_pr.p_type; if (this.Session["IpongMemberType"] != null) { this.pr = this.Session["IpongMemberType"].ToString(); } } if (this.Session["grand_tot_cnt"] == null) { this.Session["grand_tot_cnt"] = "0"; } if (this.Session["new_grand_tot_amt"] == null) { this.Session["new_grand_tot_amt"] = "0"; } if (this.Session["transID"] == null) { this.Session["transID"] = "0"; } if (this.Session["payment_type"] == null) { this.Session["payment_type"] = ""; } if (this.Session["bank_xname"] == null) { this.Session["bank_xname"] = ""; } if (this.Session["bank_bankname"] == null) { this.Session["bank_bankname"] = ""; } if (this.Session["bank_xposition"] == null) { this.Session["bank_xposition"] = ""; } if (this.Session["bank_street"] == null) { this.Session["bank_street"] = ""; } if (this.Session["bank_telephone"] == null) { this.Session["bank_telephone"] = ""; } if (this.Session["bank_email"] == null) { this.Session["bank_email"] = ""; } if (this.Session["transDate"] == null) { this.Session["bank_email"] = ""; } }
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 (!base.IsPostBack) { this.old_date = this.ret.getOldestDate(); this.Session["old_date"] = this.old_date; this.new_date = this.ret.getLatestDate(); this.Session["new_date"] = this.new_date; this.popYear(); this.Session["IpongMemberType"] = null; this.Session["grand_tot_cnt"] = null; this.Session["new_grand_tot_amt"] = null; } this.c_pr = this.ret.getPratioByMemberID(this.adminID); if (this.c_pr.xid != null) { this.Session["IpongMemberType"] = this.c_pr.p_type; if (this.Session["IpongMemberType"] != null) { this.pr = this.Session["IpongMemberType"].ToString(); } } if (this.Session["grand_tot_cnt"] == null) { this.Session["grand_tot_cnt"] = "0"; } if (this.Session["new_grand_tot_amt"] == null) { this.Session["new_grand_tot_amt"] = "0"; } }
public XObjs.PRatio getPratioByMemberID(string xmemberID) { XObjs.PRatio x = new XObjs.PRatio(); SqlConnection connection = new SqlConnection(this.ConnectXpay()); SqlCommand command = new SqlCommand("SELECT * from p_ratio where xpartnerID='" + xmemberID + "' ", connection); connection.Open(); SqlDataReader reader = command.ExecuteReader(CommandBehavior.CloseConnection); while (reader.Read()) { x.xid = reader["xid"].ToString(); x.xpartnerID = reader["xpartnerID"].ToString(); x.p_type = reader["p_type"].ToString(); x.xratio = reader["xratio"].ToString(); x.r_type = reader["r_type"].ToString(); x.xreg_date = reader["xreg_date"].ToString(); x.xsync = reader["xsync"].ToString(); x.xvisible = reader["xvisible"].ToString(); } reader.Close(); return x; }
protected void Page_Load(object sender, EventArgs e) { this.c_pr = this.ret.getPratioByMemberID(this.adminID); if (this.c_pr.xid != null) { bool flag1 = this.c_pr.p_type == "merchant"; } }