protected void Page_Load(object sender, EventArgs e)
 {
     _sale = new AppObjects.Sale();
     _dataset = _sale.GetDataSet();
     Session["ID"] = "";
     FillGridView();
     
 }
Esempio n. 2
0
 private void InitializePage(long pLongID)
 {
    
     if (!Page.IsPostBack)
     {
         Session["Sale"] = _sale = new AppObjects.Sale(pLongID,false);
         loadDropDownLists();
         AssignDataToFields();
     }
     _sale = (AppObjects.Sale)Session["Sale"];
     refreshGridView();
 }
Esempio n. 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_Sale"))
            {
                Response.Redirect("Home.aspx");
            }
            else
            {
                _sale = new AppObjects.Sale();
                _dataset = _sale.GetDataSet();
                Session["ID"] = "";
                FillGridView();
            }

        }
Esempio n. 4
0
        private void InitializePage()
        {
            AccessRights = (Hashtable)Session["AccessRight"];
            btn_Delete.Enabled = canWrite("frm_Sale");
            btn_Save.Enabled = canWrite("frm_Sale");
            if (!Page.IsPostBack)
            {
                Session["Sale"] = _sale = new AppObjects.Sale();
                loadDropDownLists();
                AssignDataToFields();
            }
            _sale = (AppObjects.Sale)Session["Sale"];
            refreshGridView();

        }