Ejemplo n.º 1
0
        public bool Authenticate(string _username, string _pwd, string _orgname)
        {
            bool result = true;

            //string fullAccount = string.Format("{0}@{1}.hisales.hinet.net", _username, _orgname);

            ////呼叫 hinet 的 web service 驗證
            //ServiceSoapClient wsClient = new ServiceSoapClient("ServiceSoap");
            //if (wsClient.IsAuthenticated(fullAccount, _pwd)) {
            //	result = (int) LoginValidation.pass;
            //} else {
            //	return (int) LoginValidation.PasswordError;
            //}

            SessionInfo session = new SessionInfo();

            SaaSCloudInfoModel saasCloudInfo = new SaaSCloudInfoModel();

            saasCloudInfo.mainProdPurchaseInfo = saasCloudInfo.getMainProdPurchaseInfo();
            saasCloudInfo.orderInfoList        = saasCloudInfo.getOrderInfoList();
            saasCloudInfo.postInfoList         = saasCloudInfo.getPostInfoList();

            session.SaaSCloudInfo = saasCloudInfo;

            return(result);
        }
Ejemplo n.º 2
0
        public bool Authenticate(string _username, string _pwd, string _orgname)
        {
            bool result = true;

            //string fullAccount = string.Format("{0}@{1}.hisales.hinet.net", _username, _orgname);

            ////呼叫 hinet 的 web service 驗證
            //ServiceSoapClient wsClient = new ServiceSoapClient("ServiceSoap");
            //if (wsClient.IsAuthenticated(fullAccount, _pwd)) {
            //	result = (int) LoginValidation.pass;
            //} else {
            //	return (int) LoginValidation.PasswordError;
            //}

            SessionInfo session = new SessionInfo();

            SaaSCloudInfoModel  saasCloudInfo = new SaaSCloudInfoModel() ;
            saasCloudInfo.mainProdPurchaseInfo = saasCloudInfo.getMainProdPurchaseInfo();
            saasCloudInfo.orderInfoList = saasCloudInfo.getOrderInfoList();
            saasCloudInfo.postInfoList = saasCloudInfo.getPostInfoList();

            session.SaaSCloudInfo = saasCloudInfo;

            return result;
        }