Example #1
0
 /// <summary>
 /// Create a new tsecrolefunction object.
 /// </summary>
 /// <param name="roleid">Initial value of the roleid property.</param>
 public static tsecrolefunction Createtsecrolefunction(global::System.String roleid)
 {
     tsecrolefunction tsecrolefunction = new tsecrolefunction();
     tsecrolefunction.roleid = roleid;
     return tsecrolefunction;
 }
Example #2
0
 private void GetRoleFunctionsNode(List<tsecrolefunction> list, TreeNodeExt parentNode, string _roleId)
 {
     foreach (TreeNodeExt node in parentNode.Nodes)
     {
         if (node.Checked)
         {
             tsecrolefunction rolefunction = new tsecrolefunction();
             rolefunction.roleid = _roleId;
             rolefunction.funcid = node.Value.ToString();
             rolefunction.permis = "Allow";
             rolefunction.createduser = GENLSYS.MES.Common.Function.GetCurrentUser();
             rolefunction.createdtime = GENLSYS.MES.Common.Function.GetCurrentTime();
             rolefunction.lastmodifieduser = GENLSYS.MES.Common.Function.GetCurrentUser();
             rolefunction.lastmodifiedtime = GENLSYS.MES.Common.Function.GetCurrentTime();
             list.Add(rolefunction);
         }
         GetRoleFunctionsNode(list,node,_roleId);
     }
 }
Example #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tsecrolefunction EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotsecrolefunction(tsecrolefunction tsecrolefunction)
 {
     base.AddObject("tsecrolefunction", tsecrolefunction);
 }
Example #4
0
 //private void InitEqpGroupGrid()
 //{
 //    if (UpdateMode == Public_UpdateMode.Update)
 //    {
 //        this.gridEqpGroup.SetDataBinding(GetRoleEqpGroupByRoleId(RoleId).Tables[0], "");
 //    }
 //    else
 //    {
 //        this.gridEqpGroup.SetDataBinding(GetRoleEqpGroup().Tables[0], "");
 //    }
 //}
 private List<tsecrolefunction> GetRoleFunctions(string _roleId)
 {
     List<tsecrolefunction> result = new List<tsecrolefunction>();
     foreach (TreeNodeExt node in this.treeFunction.Nodes)
     {
         if (node.Checked)
         {
             tsecrolefunction rolefunction = new tsecrolefunction();
             rolefunction.roleid = _roleId;
             rolefunction.funcid =node.Value.ToString();
             rolefunction.permis = "Allow";
             rolefunction.createduser = GENLSYS.MES.Common.Function.GetCurrentUser();
             rolefunction.createdtime = GENLSYS.MES.Common.Function.GetCurrentTime();
             rolefunction.lastmodifieduser = GENLSYS.MES.Common.Function.GetCurrentUser();
             rolefunction.lastmodifiedtime = GENLSYS.MES.Common.Function.GetCurrentTime();
             result.Add(rolefunction);
         }
         GetRoleFunctionsNode(result, node, _roleId);
     }
     return result;
 }