private void Loadhist_pay() { int _iUserID = Utils.CIntDef(Session["User_ID"]); Rphistory.DataSource = his.loadHispayment(_iUserID); Rphistory.DataBind(); }
private void Loadhist_pay() { string code = txtcode.Value.Trim(); string email = txtemail.Value.Trim(); var list = his.checkorderPayment(code, email); if (list.Count > 0) { Rphistory.DataSource = list; Rphistory.DataBind(); div_order.Visible = true; } else { div_order.Visible = false; Lberrors.Text = "Mã đơn hàng hoặc email chưa đúng"; } }
private void Loadhist_pay() { string _strdatefrom = txtdatefrom.Value; string _strdateto = txtdateto.Value; DateTime _dateFrom = DateTime.Today; DateTime _dateTo = DateTime.Today; bool checkdate = false; if (!String.IsNullOrEmpty(_strdatefrom) && !String.IsNullOrEmpty(_strdateto)) { _dateFrom = fun.formatDate(_strdatefrom); _dateTo = fun.formatDate(_strdateto); checkdate = true; } int _iUserID = Utils.CIntDef(Session["User_ID"]); Rphistory.DataSource = his.loadHispayment(_iUserID, _dateFrom, _dateTo, checkdate); Rphistory.DataBind(); }
private void Loadhist_pay() { string code = Utils.CStrDef(Request["code"]).Trim(); string email = Utils.CStrDef(Request["email"]).Trim(); var list = his.checkorderPayment(code, email); if (list.Count > 0) { Rphistory.DataSource = list; Rphistory.DataBind(); div_error.Visible = false; div_checkorder.Visible = true; } else { div_error.Visible = true; div_checkorder.Visible = false; Lberrors.Text = "Mã đơn hàng hoặc email chưa đúng"; } }