コード例 #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;
        }
コード例 #2
0
        public ActionResult GetOrderHistory([DataSourceRequest] DataSourceRequest request)
        {
            //QueryProductOrderAPI  queryProductOrderAPI = new QueryProductOrderAPI() ;
            //List<ProductOrderInfo> orderList = queryProductOrderAPI.QueryCustomerProductOrder("", "");

            List<OrderInfoModel> orderList = new List<OrderInfoModel>();
            SessionInfo session = new SessionInfo();
            SaaSCloudInfoModel saasCloudInfo = session.SaaSCloudInfo;
            orderList = saasCloudInfo.orderInfoList;

            //IQueryable<OrderHistoryModel> queryOrderList = orderList.AsQueryable();

            //return Json(queryOrderList.ToDataSourceResult(request));
            return Json(orderList);
        }