Пример #1
0
 public bool UpdateGroup(MAS_GROUP_USERSerializeProperties values)
 {
     try
     {
         AuthenController ctrl = new AuthenController();
         return(ctrl.UpdateGroup(values, MySession.Current.LoginId));
     }
     catch (Exception)
     {
         throw;
     }
 }
Пример #2
0
 public string GetGroupByPrimaryKey(string ORG_CODE, string GROUP_USER)
 {
     try
     {
         AuthenController ctrl = new AuthenController();
         MAS_GROUP_USERSerializeProperties obj = ctrl.GetGroupByPrimaryKey(ORG_CODE, GROUP_USER);
         object ret = new
         {
             OrgCode = obj.ORG_CODE,
             Code    = obj.GROUP_USER,
             NameEng = obj.DESC_ENG,
             NameLoc = obj.DESC_LOC
         };
         return(JsonConvert.SerializeObject(ret));
     }
     catch (Exception)
     {
         throw;
     }
 }
Пример #3
0
    public string GetGroupDetailByPrimaryKey(string ORG_CODE, string GROUP_USER)
    {
        try
        {
            AuthenController ctrl = new AuthenController();
            MAS_GROUP_USERSerializeProperties obj = ctrl.GetGroupByPrimaryKey(ORG_CODE, GROUP_USER);
            string groupName = MySession.Current.MyLanuage == LanguageType.Eng ? obj.DESC_ENG : obj.DESC_LOC;
            MAS_ORGSerializeProperties objOrg = ctrl.GetOrgByPrimaryKey(ORG_CODE);
            string orgName = MySession.Current.MyLanuage == LanguageType.Eng ? objOrg.ORG_NAME_ENG : objOrg.ORG_NAME_LOC;

            object ret = new
            {
                GroupName = groupName,
                OrgName   = orgName
            };
            return(JsonConvert.SerializeObject(ret));
        }
        catch (Exception)
        {
            throw;
        }
    }