Ejemplo n.º 1
0
 private void InitializeClass()
 {
     AccessRights = (Hashtable)Session["AccessRight"];
     btn_Delete.Enabled = canWrite("frm_RawIngredients");
     btn_Save.Enabled = canWrite("frm_RawIngredients");
     _rawIngredient = new AppObjects.RawIngredient();
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     _rawIngredient = new AppObjects.RawIngredient();
     _dataset = _rawIngredient.GetDataSet();
     Session["ID"] = "";
     FillGridView();
 }
Ejemplo n.º 3
0
 private void InitializeClass(long pLongID)
 {
     AccessRights = (Hashtable)Session["AccessRight"];
     btn_Delete.Enabled = canWrite("frm_RawIngredients");
     btn_Save.Enabled = canWrite("frm_RawIngredients");
     _rawIngredient = new AppObjects.RawIngredient(pLongID);
     if (!Page.IsPostBack)
         AssignDataToTextbox();
 }
Ejemplo n.º 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!(Boolean)Session["AllowLogin"])
                Response.Redirect("Login.aspx");
            AccessRights = (Hashtable)Session["AccessRight"];



            if (isDenied("frm_RawIngredients"))
            {
                Response.Redirect("Home.aspx");
            }
            else
            {
                _rawIngredient = new AppObjects.RawIngredient();
                _dataset = _rawIngredient.GetDataSet();
                Session["ID"] = "";
                FillGridView();
            }
        }
Ejemplo n.º 5
0
 protected void dd_Product_SelectedIndexChanged(object sender, EventArgs e)
 {
     _rawIngredient = new AppObjects.RawIngredient(long.Parse(dd_Product.SelectedValue));
     txt_Price.Text = _rawIngredient.Price.ToString();
     Session["RawIngredient"] = _rawIngredient;
 }
 private void InitializeClass(long pLongID)
 {
     _rawIngredient = new AppObjects.RawIngredient(pLongID);
     if (!Page.IsPostBack)
         AssignDataToTextbox();
 }
 private void InitializeClass()
 {
     _rawIngredient = new AppObjects.RawIngredient();
 }