void OnURLRequestHandler(string url, URLResponse response)
 {
     if (url.StartsWith(FacebookAppURL))
     {
         string redirectURL = LocalAppURL + url.Substring(FacebookAppURL.Length);
         response.RedirectRequest(redirectURL);
         return;
     }
     response.AllowRequest();
 }
示例#2
0
        public String GetPopUpURL(String corpNum, String ntsconfirmNum, String userID)
        {
            if (ntsconfirmNum.Length != 24)
            {
                throw new PopbillException(-99999999, "국세청승인번호가 올바르지 않습니다.");
            }

            URLResponse response = httpget <URLResponse>("/HomeTax/Taxinvoice/" + ntsconfirmNum + "/PopUp", corpNum, userID);

            return(response.url);
        }
示例#3
0
        public String GetPrintURL(String CorpNum, String MgtKey, String UserID)
        {
            if (String.IsNullOrEmpty(MgtKey))
            {
                throw new PopbillException(-99999999, "관리번호가 입력되지 않았습니다.");
            }

            URLResponse response = httpget <URLResponse>("/Cashbill/" + MgtKey + "?TG=PRINT", CorpNum, UserID);

            return(response.url);
        }
示例#4
0
        //현금영수증 메일링크 URL
        public string GetMailURL(string CorpNum, string MgtKey, string UserID = null)
        {
            if (string.IsNullOrEmpty(MgtKey))
            {
                throw new PopbillException(-99999999, "문서번호가 입력되지 않았습니다.");
            }

            URLResponse response = httpget <URLResponse>("/Cashbill/" + MgtKey + "?TG=MAIL", CorpNum, UserID);

            return(response.url);
        }
示例#5
0
 void OnURLRequestHandler(string url, URLResponse response)
 {
     if (url.StartsWith(FacebookAppURL))
     {
         // change the url, keeping all parameters intact
         string redirectURL = LocalAppURL + url.Substring(FacebookAppURL.Length);
         response.RedirectRequest(redirectURL);
         return;
     }
     response.AllowRequest();
 }
        //팩스 미리보기 팝업 URL
        public string GetPreviewURL(string corpNum, string receiptNum, string UserID = null)
        {
            if (string.IsNullOrEmpty(receiptNum))
            {
                throw new PopbillException(-99999999, "접수번호가 입력되지 않았습니다.");
            }

            URLResponse response = httpget <URLResponse>("/FAX/Preview/" + receiptNum, corpNum, UserID);

            return(response.url);
        }
示例#7
0
        public String GetMailURL(String CorpNum, int itemCode, String mgtKey, String UserID)
        {
            if (String.IsNullOrEmpty(mgtKey))
            {
                throw new PopbillException(-99999999, "관리번호가 입력되지 않았습니다.");
            }

            URLResponse response = httpget <URLResponse>("/Statement/" + itemCode.ToString() + "/" + mgtKey + "?TG=MAIL", CorpNum, UserID);

            return(response.url);
        }
	void OnURLRequestHandler (string url, URLResponse response)
	{
		if (url.StartsWith(FacebookAppURL))
		{
			// change the url, keeping all parameters intact
			string redirectURL = LocalAppURL + url.Substring(FacebookAppURL.Length);
			response.RedirectRequest(redirectURL);
			return;
		}
		response.AllowRequest();
	}
        public String GetEPrintURL(String CorpNum, MgtKeyType KeyType, String MgtKey, String UserID)
        {
            if (String.IsNullOrEmpty(MgtKey))
            {
                throw new PopbillException(-99999999, "관리번호가 입력되지 않았습니다.");
            }

            URLResponse response = httpget <URLResponse>("/Taxinvoice/" + KeyType.ToString() + "/" + MgtKey + "?TG=EPRINT", CorpNum, UserID);

            return(response.url);
        }
        //전자명세서 인쇄 URL
        public string GetPrintURL(string CorpNum, int itemCode, string mgtKey, string UserID = null)
        {
            if (string.IsNullOrEmpty(mgtKey))
            {
                throw new PopbillException(-99999999, "문서번호가 입력되지 않았습니다.");
            }

            URLResponse response =
                httpget <URLResponse>("/Statement/" + itemCode.ToString() + "/" + mgtKey + "?TG=PRINT", CorpNum, UserID);

            return(response.url);
        }
        public string GetPrintURL(string CorpNum, string ntsconfirmNum, string UserID = null)
        {
            if (ntsconfirmNum.Length != 24)
            {
                throw new PopbillException(-99999999, "국세청승인번호가 올바르지 않습니다.");
            }

            URLResponse response =
                httpget <URLResponse>("/HomeTax/Taxinvoice/" + ntsconfirmNum + "/Print", CorpNum, UserID);

            return(response.url);
        }
        //세금계산서 메일링크 URL
        public string GetMailURL(string CorpNum, MgtKeyType KeyType, string MgtKey, string UserID)
        {
            if (string.IsNullOrEmpty(MgtKey))
            {
                throw new PopbillException(-99999999, "문서번호가 입력되지 않았습니다.");
            }

            URLResponse response = httpget <URLResponse>("/Taxinvoice/" + KeyType.ToString() + "/" + MgtKey + "?TG=MAIL",
                                                         CorpNum, UserID);

            return(response.url);
        }
        public String GetMassPrintURL(String CorpNum, MgtKeyType KeyType, List <String> MgtKeyList, String UserID)
        {
            if (MgtKeyList == null || MgtKeyList.Count == 0)
            {
                throw new PopbillException(-99999999, "관리번호 목록이 입력되지 않았습니다.");
            }

            String PostData = toJsonString(MgtKeyList);

            URLResponse response = httppost <URLResponse>("/Taxinvoice/" + KeyType.ToString() + "?Print", CorpNum, UserID, PostData, null);

            return(response.url);
        }
示例#14
0
        public String GetMassPrintURL(String CorpNum, int itemCode, List <String> mgtKeyList, String UserID)
        {
            if (mgtKeyList == null || mgtKeyList.Count == 0)
            {
                throw new PopbillException(-99999999, "관리번호가 입력되지 않았습니다.");
            }

            String PostData = toJsonString(mgtKeyList);

            URLResponse response = httppost <URLResponse>("/Statement/" + itemCode.ToString() + "?Print", CorpNum, UserID, PostData, null);

            return(response.url);
        }
示例#15
0
        public String GetURL(String CorpNum, String UserID, String TOGO)
        {
            String uri = "/KakaoTalk/?TG=";

            if (TOGO == "SENDER")
            {
                uri = "/Message/?TG=";
            }

            URLResponse response = httpget <URLResponse>(uri + TOGO, CorpNum, UserID);

            return(response.url);
        }
示例#16
0
        //연동회원 포인트 사용내역 URL
        public string GetUseHistoryURL(string CorpNum, string UserID = null)
        {
            try
            {
                URLResponse response = httpget <URLResponse>("/?TG=USEHISTORY", CorpNum, UserID);

                return(response.url);
            }
            catch (LinkhubException le)
            {
                throw new PopbillException(le);
            }
        }
示例#17
0
        //연동회원 포인트충전 팝업 URL
        public string GetChargeURL(string CorpNum, string UserID)
        {
            try
            {
                URLResponse response = httpget <URLResponse>("/?TG=CHRG", CorpNum, UserID);

                return(response.url);
            }
            catch (LinkhubException le)
            {
                throw new PopbillException(le);
            }
        }
示例#18
0
        //연동회원 포인트 결제내역 URL
        public string GetPaymentURL(string CorpNum, string UserID = null)
        {
            try
            {
                URLResponse response = httpget <URLResponse>("/?TG=PAYMENT", CorpNum, UserID);

                return(response.url);
            }
            catch (LinkhubException le)
            {
                throw new PopbillException(le);
            }
        }
示例#19
0
        //현금영수증 대량 인쇄 URL
        public string GetMassPrintURL(string CorpNum, List <string> MgtKeyList, string UserID = null)
        {
            if (MgtKeyList == null || MgtKeyList.Count == 0)
            {
                throw new PopbillException(-99999999, "문서번호 목록이 입력되지 않았습니다.");
            }

            string PostData = toJsonString(MgtKeyList);

            URLResponse response = httppost <URLResponse>("/Cashbill/Prints", CorpNum, PostData, null, null, UserID);

            return(response.url);
        }
示例#20
0
        public String GetPopbillURL(String CorpNum, String UserID, String TOGO)
        {
            URLResponse response = httpget <URLResponse>("/?TG=" + TOGO, CorpNum, UserID);

            return(response.url);
        }
        //카카오톡 전송내역 팝업
        public string GetSentListURL(string CorpNum, string UserID)
        {
            URLResponse response = httpget <URLResponse>("/KakaoTalk/?TG=BOX", CorpNum, UserID);

            return(response.url);
        }
示例#22
0
        public String GetChargeURL(String CorpNum, String UserID)
        {
            URLResponse response = httpget <URLResponse>("/?TG=CHRG", CorpNum, UserID);

            return(response.url);
        }
示例#23
0
        //현금영수증 문서함 관련 URL
        public string GetURL(string CorpNum, string TOGO, string UserID = null)
        {
            URLResponse response = httpget <URLResponse>("/Cashbill?TG=" + TOGO, CorpNum, UserID);

            return(response.url);
        }
        //발신번호 관리 팝업 URL
        public string GetSenderNumberMgtURL(string CorpNum, string UserID)
        {
            URLResponse response = httpget <URLResponse>("/Message/?TG=SENDER", CorpNum, UserID);

            return(response.url);
        }
示例#25
0
        public String GetAccessURL(String CorpNum, String UserID)
        {
            URLResponse response = httpget <URLResponse>("/?TG=LOGIN", CorpNum, UserID);

            return(response.url);
        }
        //정액제 서비스 신청 URL
        public string GetFlatRatePopUpURL(string CorpNum, string UserID = null)
        {
            URLResponse response = httpget <URLResponse>("/HomeTax/Cashbill?TG=CHRG", CorpNum, UserID);

            return(response.url);
        }
示例#27
0
        public String GetCertificatePopUpURL(String CorpNum, String UserID)
        {
            URLResponse response = httpget <URLResponse>("/HomeTax/Taxinvoice?TG=CERT", CorpNum, UserID);

            return(response.url);
        }
        //알림톡 템플릿관리 팝업 URL
        public string GetATSTemplateMgtURL(string CorpNum, string UserID)
        {
            URLResponse response = httpget <URLResponse>("/KakaoTalk/?TG=TEMPLATE", CorpNum, UserID);

            return(response.url);
        }
示例#29
0
        public URLRequest RequestHandler(WebView sender, object identifier, URLRequest initialRequest, URLResponse urlResponse, WebDataSource datasource)
        {
//		if ( ((URL)(initialRequest.urL)).relativeString.ToString().IndexOf("http://monodoc/load?") == 0) {
            // FIXME
            if (initialRequest.URL.AbsoluteString.IndexOf("http://monodoc/load?") == 0)
            {
                string url     = initialRequest.URL.AbsoluteString.Replace("http://monodoc/load?", "");
                string content = "";
                if (url.StartsWith("edit:"))
                {
//				XmlNode edit_node = EditingUtils.GetNodeFromUrl (url, help_tree);
//				Console.WriteLine (edit_node.InnerXml);
                }

                Node n;
                try {
                    content = help_tree.RenderUrl(url, out n);
                } catch (Exception e) {
                    content = "Exception Rendering the requested URL: " + e;
                }
                if (content != null && !content.Equals(""))
                {
                    content = content.Replace("a href='", "a href='http://monodoc/load?");
                    content = content.Replace("a href=\"", "a href=\"http://monodoc/load?");
                    webView.Render(content);
                    addHistoryItem(url);
                }
                return(null);
            }
            return(initialRequest);
        }
        //공인인증서 등록 URL
        public string GetTaxCertURL(string CorpNum, string UserID)
        {
            URLResponse response = httpget <URLResponse>("/?TG=CERT", CorpNum, UserID);

            return(response.url);
        }
        //팝빌 인감 및 첨부문서 등록 URL
        public string GetSealURL(string CorpNum, string UserID)
        {
            URLResponse response = httpget <URLResponse>("/?TG=SEAL", CorpNum, UserID);

            return(response.url);
        }
        //세금계산서 문서함 관련 URL
        public string GetURL(string CorpNum, string TOGO, string UserID)
        {
            URLResponse response = httpget <URLResponse>("/Taxinvoice?TG=" + TOGO, CorpNum, UserID);

            return(response.url);
        }