private void InitModule()
    {
        int id = int.Parse(Request["id"]);

        FineOffice.Modules.SYS_PageAuthority model = authorityBll.GetModel(p => p.ID == id);
        txtAuthorityName.Text = model.AuthorityName;
        txtControlID.Text     = model.ControlID;
        txtParent.Text        = model.Text;
        txtOrdering.Text      = model.Ordering.ToString();
        hiddenParentID.Text   = model.MenuID.ToString();
        txtRemark.Text        = model.Remark;
        hiddenID.Text         = id.ToString();
    }
 protected void btnSave_Click(object sender, EventArgs e)
 {
     try
     {
         FineOffice.Modules.SYS_PageAuthority model = new FineOffice.Modules.SYS_PageAuthority();
         model.AuthorityName = txtAuthorityName.Text.Trim();
         model.ControlID     = txtControlID.Text.Trim();
         model.Ordering      = int.Parse(txtOrdering.Text);
         model.MenuID        = int.Parse(hiddenParentID.Text);
         model.Remark        = txtRemark.Text.Trim();
         authorityBll.Add(model);
         PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference("subwin_close"));
     }
     catch (Exception ex)
     {
         Alert.Show(ex.Message);
     }
 }