Пример #1
0
 private void InitializeClass(long pLongID)
 {
     _employee = new Employee(pLongID);
     //Only display the record if is not a postback event
     if(!Page.IsPostBack)
     displayRecord();
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     _employee = new Employee();
     _dataset = _employee.GetDataset();
     Session["ID"] = "";
     String jgbej = Session["ID"].ToString();
     FillGridView();
 }
Пример #3
0
 private void InitializeClass(long pLongID)
 {
     _employee = new Employee(pLongID);
     AccessRights = (Hashtable)Session["AccessRight"];
     btn_Delete.Enabled = canWrite("frm_Employee");
     btn_Save.Enabled = canWrite("frm_Employee");
     //Only display the record if is not a postback event
     if(!Page.IsPostBack)
     displayRecord();
 }
Пример #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     
     if (!(Boolean)Session["AllowLogin"])
         Response.Redirect("Login.aspx");
     AccessRights = (Hashtable)Session["AccessRight"];
     if (AccessRights.Contains("frm_Employee"))
     {
         if (isDenied("frm_Employee"))
         {
             Response.Redirect("Home.aspx");
         }
         else
         {
             _employee = new Employee();
             _dataset = _employee.GetDataset();
             Session["ID"] = "";
             String jgbej = Session["ID"].ToString();
             FillGridView();
         }
     }
 }
Пример #5
0
 private void InitializeClass(){
     _employee = new Employee();
 }
Пример #6
0
 private void InitializeClass(){
     AccessRights = (Hashtable)Session["AccessRight"];
     btn_Delete.Enabled = canWrite("frm_Employee");
     btn_Save.Enabled = canWrite("frm_Employee");
     _employee = new Employee();
 }