예제 #1
0
        public static Struct_Company GetCompanyAndBranchList()
        {
            Struct_Company records = new Struct_Company();

            TailerApp.Common.LoginUser currentUser;
            try
            {
                if (!GetUserSession(out currentUser))
                {
                    records.errorCode    = 1001;
                    records.errorMessage = "";
                }

                AdminManagerSP AdminManager = new AdminManagerSP();
                if (!AdminManager._C_GetCompanyAndBranchList(0, currentUser.UserId, out records))
                {
                    records.errorCode    = AdminManager.GetLastErrorCode();
                    records.errorMessage = AdminManager.GetLastError();
                }
                return(records);
            }
            catch (Exception ee)
            {
                records.errorCode    = -5;
                records.errorMessage = "Unknown Error occured while canceling Schedules.";
            }
            return(records);
        }