Beispiel #1
0
 protected void AddUsers(System.Collections.Generic.IList <string> userCodes)
 {
     if (userCodes != null)
     {
         PtYhmcBll ptYhmcBll = new PtYhmcBll();
         ptYhmcBll.GetNames(userCodes);
         this.hfldCodeJson.Value = JsonHelper.JsonSerializer <string[]>(userCodes.ToArray <string>());
         PTYhmcService pTYhmcService = new PTYhmcService();
         System.Collections.Generic.IList <string> nameList = pTYhmcService.GetNameList(userCodes);
         this.hfldNameJson.Value = JsonHelper.JsonSerializer <string[]>(nameList.ToArray <string>());
     }
 }
Beispiel #2
0
 private void InitPage()
 {
     if (this.dataIdList.Count == 1)
     {
         System.Collections.Generic.IList <string> roleId = this.dataSer.GetRoleId(this.dataIdList[0], this.tableName);
         this.hfldRoleId.Value = JsonHelper.JsonSerializer <string[]>(roleId.ToArray <string>());
     }
     System.Collections.Generic.List <PrivRole> dataSource = (
         from r in this.roleSer
         orderby r.No
         select r).ToList <PrivRole>();
     this.gvwRole.DataSource = dataSource;
     this.gvwRole.DataBind();
 }