Beispiel #1
0
        public static void SyncUsers(SmartBox.Console.Bo.AppCenter.AppCenterBO bo, OutsideWS.WebService ws)
        {
            IList <SMC_User> users = bo.GetNeedSyncSMC_Users();

            OutsideWS.SMC_User[] _users = new OutsideWS.SMC_User[users.Count];
            for (int i = 0; i < users.Count; ++i)
            {
                _users[i] = CopySMC_User(users[i]);
            }
            ws.SMC_UserSync(_users.ToArray());
        }
Beispiel #2
0
        static OutsideWS.SMC_User CopySMC_User(SMC_User user)
        {
            OutsideWS.SMC_User entity = new OutsideWS.SMC_User();
            entity.U_CREATEDDATE = user.U_CREATEDDATE;
            entity.U_ID          = user.U_ID;
            entity.U_NAME        = user.U_NAME;
            entity.U_PASSWORD    = user.U_PASSWORD;
            entity.U_UID         = user.U_UID;
            entity.U_UNITCODE    = user.U_UNITCODE;

            return(entity);
        }