protected void Page_Load(object sender, EventArgs e)
 {
     _order = new AppObjects.Order();
     _dataset = _order.GetDataSet();
     Session["ID"] = "";
     FillGridView();
     
 }
        private void InitializePage(long pLongID)
        {

            if (!Page.IsPostBack)
            {
                Session["Order"] = _order = new AppObjects.Order(pLongID);
                loadDropDownLists();
                AssignDataToFields();
            }
            _order = (AppObjects.Order)Session["Order"];
            refreshGridView();
        }
Exemple #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!(Boolean)Session["AllowLogin"])
         Response.Redirect("Login.aspx");
     AccessRights = (Hashtable)Session["AccessRight"];
     if (isDenied("frm_Order"))
     {
         Response.Redirect("Home.aspx");
     }
     else
     {
         _order = new AppObjects.Order();
         _dataset = _order.GetDataSet();
         Session["ID"] = "";
         FillGridView();
     }
 }
Exemple #4
0
        private void InitializePage()
        {
            AccessRights = (Hashtable)Session["AccessRight"];
            btn_Delete.Enabled = canWrite("frm_Order");
            btn_Save.Enabled = canWrite("frm_Order");

            if (!Page.IsPostBack)
            {
                Session["Order"] = _order = new AppObjects.Order();
                loadDropDownLists();
                AssignDataToFields();
            }
            _order = (AppObjects.Order)Session["Order"];
            refreshGridView();
         }