Esempio n. 1
0
 private void LoadOrder_ProductDetail()
 {
     try
     {
         int OrderId           = Utils.CIntDef(ddlOrder.SelectedValue);
         var listProductDetail = _OrderDetailRepo.GetByOrderId(OrderId);
         HttpContext.Current.Session["listOrderProductDetail"] = listProductDetail;
         ASPxGridView1_Order_ProductDetail.DataSource          = listProductDetail;
         ASPxGridView1_Order_ProductDetail.DataBind();
     }
     catch //(Exception)
     {
         //throw;
     }
 }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            bool isPermission = _UnitDataRepo.checkPermissionPage("kiem-tra-san-pham.aspx", Utils.CIntDef(Session["groupId"]), Utils.CIntDef(Session["groupType"]));

            if (!isPermission)
            {
                Response.Write("<script>alert('Bạn không có quyền truy cập vào trang này');location.href='trang-chu.aspx';</script>");
            }
            id = Utils.CIntDef(Request.QueryString["id"]);
            if (!IsPostBack)
            {
                LoadOrder();
                LoadProductDetail();
                LoadOrder_ProductDetail();
            }
            else
            {
                ASPxGridView1_Order_ProductDetail.DataSource = HttpContext.Current.Session["listOrderProductDetail"];
                ASPxGridView1_Order_ProductDetail.DataBind();
            }
        }