Beispiel #1
0
        public Response RegistDeptUser(String corpNum, String deptUserID, String deptUserPWD, String userID)
        {
            if (String.IsNullOrEmpty(corpNum))
            {
                throw new PopbillException(-99999999, "연동회원 사업자번호가 입력되지 않았습니다.");
            }
            if (String.IsNullOrEmpty(deptUserID))
            {
                throw new PopbillException(-99999999, "홈택스 부서사용자 계정 아이디가 입력되지 않았습니다.");
            }
            if (String.IsNullOrEmpty(deptUserPWD))
            {
                throw new PopbillException(-99999999, "홈택스 부서사용자 계정 비밀번호가 입력되지 않았습니다.");
            }

            RegistDeptUserRequest request = new RegistDeptUserRequest();

            request.id  = deptUserID;
            request.pwd = deptUserPWD;

            String PostData = toJsonString(request);


            return(httppost <Response>("/HomeTax/Taxinvoice/DeptUser", corpNum, userID, PostData, null));
        }
        //부서사용자 계정등록
        public Response RegistDeptUser(string CorpNum, string deptUserID, string deptUserPWD, string UserID = null)
        {
            if (string.IsNullOrEmpty(CorpNum))
            {
                throw new PopbillException(-99999999, "연동회원 사업자번호가 입력되지 않았습니다.");
            }
            if (string.IsNullOrEmpty(deptUserID))
            {
                throw new PopbillException(-99999999, "홈택스 부서사용자 계정 아이디가 입력되지 않았습니다.");
            }
            if (string.IsNullOrEmpty(deptUserPWD))
            {
                throw new PopbillException(-99999999, "홈택스 부서사용자 계정 비밀번호가 입력되지 않았습니다.");
            }

            RegistDeptUserRequest request = new RegistDeptUserRequest();

            request.id  = deptUserID;
            request.pwd = deptUserPWD;

            string PostData = toJsonString(request);


            return(httppost <Response>("/HomeTax/Cashbill/DeptUser", CorpNum, PostData, null, null, UserID = null));
        }