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