Exemplo n.º 1
0
 private void InitUserDept(SYS_USERSModel TempUserModel)
 {
     if (TempUserModel.DeptID != 0)
     {
         labDept.Text = getDeptName(int.Parse(TempUserModel.DeptID.ToString()));
     }
 }
Exemplo n.º 2
0
        private void InitUserTitle(SYS_USERSModel TempUserModel)
        {
            getTitleName(TempUserModel.ID);
            tbSelectedTitle.Text = TitleNames;
            hfSelectedTitle.Text = TitleIDs;

            // 打开编辑角色的窗口
            string selectTitleURL = String.Format("./user_select_title.aspx?ids=<script>{0}</script>", hfSelectedTitle.GetValueReference());

            tbSelectedTitle.OnClientTriggerClick = Window1.GetSaveStateReference(hfSelectedTitle.ClientID, tbSelectedTitle.ClientID)
                                                   + Window1.GetShowReference(selectTitleURL, "选择用户拥有的职称");
        }
Exemplo n.º 3
0
        private void InitUserDept(SYS_USERSModel TempUserModel)
        {
            if (TempUserModel.DeptID != 0)
            {
                tbSelectedDept.Text = getDeptName(int.Parse(TempUserModel.DeptID.ToString()));
                hfSelectedDept.Text = TempUserModel.DeptID.ToString();
            }

            // 打开编辑窗口
            string selectDeptURL = String.Format("./user_select_dept.aspx?ids=<script>{0}</script>", hfSelectedDept.GetValueReference());

            tbSelectedDept.OnClientTriggerClick = Window1.GetSaveStateReference(hfSelectedDept.ClientID, tbSelectedDept.ClientID)
                                                  + Window1.GetShowReference(selectDeptURL, "选择用户所属的部门");
        }
Exemplo n.º 4
0
        protected void Grid1_PreRowDataBound(object sender, FineUI.GridPreRowEventArgs e)
        {
            //User user = e.DataItem as User;
            //string userName=GetSelectedDataKey(Grid1, 1);
            SYS_USERSModel user = e.DataItem as SYS_USERSModel;

            if (user != null)
            {
                // 不能删除超级管理员
                if (user.Name == "admin")
                {
                    FineUI.LinkButtonField deleteField = Grid1.FindColumn("deleteField") as FineUI.LinkButtonField;
                    deleteField.Enabled = false;
                    deleteField.ToolTip = "不能删除超级管理员!";
                }
            }
        }
Exemplo n.º 5
0
 private void InitUserTitle(SYS_USERSModel TempUserModel)
 {
     getTitleName(TempUserModel.ID);
     labTitle.Text = TitleNames;
 }
Exemplo n.º 6
0
 private void InitUserRole(SYS_USERSModel TempUserModel)
 {
     getRoleName(TempUserModel.ID);
     labRole.Text = roleNAMEs;
 }