コード例 #1
0
        /// <summary>
        /// 5-4. 정산예정금 ( 배송관리 →구매확정)
        /// </summary>
        /// <param name="document"></param>
        /// <param name="uri"></param>
        /// <returns></returns>
        private void SellerRemittanceAction3(FlowModelData data)
        {
            String json = data.Document.Body.TextContent;
            SellerRemittanceActionJson obj = JsonConvert.DeserializeObject <SellerRemittanceActionJson>(json);
            var node = obj.list[0];

            SetPackageData(5, 0, JsonConvert.SerializeObject(node));
        }
コード例 #2
0
        /// <summary>
        /// 5-4. 정산예정금 ( 배송관리 →구매확정)
        /// </summary>
        /// <param name="document"></param>
        /// <param name="uri"></param>
        /// <returns></returns>
        private Boolean SellerRemittanceAction3(GeckoDocument document, Uri uri)
        {
            String json = document.Body.TextContent;
            SellerRemittanceActionJson obj = JsonConvert.DeserializeObject <SellerRemittanceActionJson>(json);
            var node = obj.list[0];

            SetPackageData(5, 0, JsonConvert.SerializeObject(node));
            return(false);
        }
コード例 #3
0
        /// <summary>
        /// 4-2. 정산내역 -> 판매정산 현황
        /// </summary>
        /// <param name="document"></param>
        /// <param name="uri"></param>
        /// <returns></returns>
        private void SellerRemittanceAction(FlowModelData data)
        {
            String json = data.Document.Body.TextContent;
            SellerRemittanceActionJson obj = JsonConvert.DeserializeObject <SellerRemittanceActionJson>(json);
            var node = obj.list[0];

            SetPackageData(1, index++, JsonConvert.SerializeObject(node));
            if (std.Year == DateTime.Now.Year && std.Month == DateTime.Now.Month)
            {
                this.buffer.Clear();
                this.buffer.Append("https://soffice.11st.co.kr/escrow/OrderingLogisticsAction.tmall?");
                this.buffer.Append(CreateGetParameter(new Dictionary <String, String>()
                {
                    { "method", "getOrderLogisticsList" },
                    { "listType", "orderingLogistics" },
                    { "start", "0" },
                    { "limit", "10000" },
                    { "shDateType", "02" },
                    { "shDateFrom", DateTime.Now.AddYears(-1).ToString("yyyyMMdd") },
                    { "shDateTo", DateTime.Now.ToString("yyyyMMdd") },
                    { "shBuyerType", "" },
                    { "shBuyerText", "" },
                    { "shProductStat", "301" },
                    { "shDelayReport", "" },
                    { "shPurchaseConfirm", "" },
                    { "shGblDlv", "N" },
                    { "prdNo", "" },
                    { "shStckNo", "" },
                    { "shOrderType", "on" },
                    { "addrSeq", "" },
                    { "isAbrdSellerYn", "" },
                    { "abrdOrdPrdStat", "" },
                    { "isItalyAgencyYn", "" },
                    { "shErrYN", "" },
                    { "gblRcvrNm", "" },
                    { "gblRcvrMailNo", "" },
                    { "gblRcvrBaseAddr", "" },
                    { "gblRcvrDtlsAddr", "" },
                    { "gblRcvrTlphn", "" },
                    { "gblRcvrPrtblNo", "" },
                    { "shOrdLang", "" },
                    { "shDlvClfCd", "" }
                }));
                base.Navigate(this.buffer.ToString());
            }
            std = std.AddMonths(1);
            DateTime etd      = std.AddMonths(1).AddDays(-1);
            var      interval = DateTime.Now - std;

            this.buffer.Clear();
            this.buffer.Append("http://soffice.11st.co.kr/remittance/SellerRemittanceAction.tmall?");
            this.buffer.Append(CreateGetParameter(new Dictionary <String, String>()
            {
                { "method", "getSellerOwnSelStatSoffice" },
                { "dtlSearchStlmntType", "N" },
                { "searchDtType", "BUY_CNFRM_DT" },
                { "stDate", std.ToString("yyyyMMdd") },
                { "edDate", etd.ToString("yyyyMMdd") },
                { "dtlSearchType", "" },
                { "ordPrdStat", "" },
                { "intervalDay", interval.Days.ToString() },
                { "dtlSearchVal", "" }
            }));
            base.Navigate(this.buffer.ToString());
        }