예제 #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();
 }