Exemple #1
0
        public static ReturnKnowType UpdateStationUser(String UserID, String UserName, String UserLoginName, String UserLoginPassword, String UserPermissionType, String USerStationPermission, String StationName, DATAACTION UserAction)
        {
            STATIONNAME    ThisStationName = TTCSHelper.StationStrConveter(StationName);
            StationHandler ThisSite        = KeeperData.FirstOrDefault(Item => Item.StationName == ThisStationName);

            if (ThisSite != null)
            {
                ReturnKnowType ThisResult = ThisSite.UpdateStationUser(UserID, UserName, UserLoginName, UserLoginPassword, UserPermissionType, USerStationPermission, UserAction);
                if (ThisResult.ReturnType == ReturnStatus.SUCESSFUL)
                {
                    return(ThisResult);
                }
            }

            return(ReturnKnowType.DefineReturn(ReturnStatus.FAILED, "(#TT004) Can not update user data to station. Will try again.", false));
        }