Esempio n. 1
0
        public void GetInitialData(string COMPANY_NO_BOX, string REQ_SEQ)
        {
            //get Authorization header
            HttpContext httpContext = HttpContext.Current;
            string      authHeader  = httpContext.Request.Headers["Authorization"];
            Response    auth        = Controller.ControllerCheckIn.CheckLogIn_forProcess(authHeader);

            if (auth.Message != "")
            {
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(auth));
                Context.Response.End();
            }
            else
            {
                Controller.ControllerIssueQuotation issueQuotation = new Controller.ControllerIssueQuotation(authHeader);
                MetaResponse response = issueQuotation.getIntitialData(COMPANY_NO_BOX, REQ_SEQ);
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(response));
                Context.Response.End();
            }
        }
        public void SendMail(string List)
        {
            //get Authorization header
            HttpContext httpContext = HttpContext.Current;
            string      authHeader  = httpContext.Request.Headers["Authorization"];

            Response auth = Controller.ControllerCheckIn.CheckLogIn_forProcess(authHeader);

            if (auth.Message != "")
            {
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(auth));
                Context.Response.End();
            }
            else
            {
                Controller.ControllerClientCertificateList clientCertificateList = new Controller.ControllerClientCertificateList(authHeader);
                MetaResponse response = clientCertificateList.SendMail(List);
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(response));
                Context.Response.End();
            }
        }
        public void ApproveCancel(string COMPANY_NO_BOX, string REQ_SEQ, string LIST)
        {
            //get Authorization header
            HttpContext httpContext = HttpContext.Current;
            string      authHeader  = httpContext.Request.Headers["Authorization"];

            Response auth = Controller.ControllerCheckIn.CheckLogIn_forProcess(authHeader);

            if (auth.Message != "")
            {
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(auth));
                Context.Response.End();
            }
            else
            {
                ControllerApplicationApproval approval = new Controller.ControllerApplicationApproval(authHeader);
                MetaResponse response = approval.ApproveCancel(COMPANY_NO_BOX, REQ_SEQ, LIST);
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(response));
                Context.Response.End();
            }
        }
        public void GetClientCertificateList(string COMPANY_NO_BOX, string REQ_SEQ, int REQ_STATUS, int REQ_TYPE)
        {
            //get Authorization header
            HttpContext httpContext = HttpContext.Current;
            string      authHeader  = httpContext.Request.Headers["Authorization"];

            Response auth = Controller.ControllerCheckIn.CheckLogIn_forProcess(authHeader);

            if (auth.Message != "")
            {
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(auth));
                Context.Response.End();
            }
            else
            {
                ControllerApplicationApproval approval = new Controller.ControllerApplicationApproval(authHeader);
                MetaResponse response = approval.getInitialData(COMPANY_NO_BOX, REQ_SEQ, REQ_STATUS, REQ_TYPE);
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(response));
                Context.Response.End();
            }
        }
        public void CreateCSVFile(string YEAR_MONTH)
        {
            //get Authorization header
            HttpContext httpContext = HttpContext.Current;
            string      authHeader  = httpContext.Request.Headers["Authorization"];

            Response auth = Controller.ControllerCheckIn.CheckLogIn_forProcess(authHeader);

            if (auth.Message != "") // changeCondition
            {
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(auth));
                Context.Response.End();
            }
            else
            {
                Controller.ControllerInvoiceList usageChargeMasterList = new Controller.ControllerInvoiceList();
                MetaResponse response = usageChargeMasterList.CreateCSVFile(YEAR_MONTH);
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(response));
                Context.Response.End();
            }
        }
Esempio n. 6
0
        public void PreviewProcessNotiSending(string COMPANY_NAME, string COMPANY_NO_BOX, string REQ_SEQ, string EDI_ACCOUNT)
        {
            //get Authorization header
            HttpContext httpContext = HttpContext.Current;
            string      authHeader  = httpContext.Request.Headers["Authorization"];

            Response auth = Controller.ControllerCheckIn.CheckLogIn_forProcess(authHeader);

            if (auth.Message != "")
            {
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(auth));
                Context.Response.End();
            }
            else
            {
                Controller.ControllerRegisterCompleteNotificationSending completeNotificationSending = new Controller.ControllerRegisterCompleteNotificationSending(authHeader);
                MetaResponse response = completeNotificationSending.NotiSendingPreview(COMPANY_NAME, COMPANY_NO_BOX, REQ_SEQ, EDI_ACCOUNT, authHeader);
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(response));
                Context.Response.End();
            }
        }
        public void CreateInvoiceData(string BILLING_DATE, string STATUS)
        {
            //get Authorization header
            HttpContext httpContext = HttpContext.Current;
            string      authHeader  = httpContext.Request.Headers["Authorization"];

            Response auth = Controller.ControllerCheckIn.CheckLogIn_forProcess(authHeader);

            if (auth.Message != "")
            {
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(auth));
                Context.Response.End();
            }
            else
            {
                Controller.ControllerInvoiceList usageChargeMasterList = new Controller.ControllerInvoiceList();
                MetaResponse response = usageChargeMasterList.CheckAlreadyCreated(BILLING_DATE, STATUS);
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(response));
                Context.Response.End();
            }
        }
        public void GetInvoiceList(string BILLING_DATE, int OFFSET = 0, int LIMIT = 30)
        {
            //get Authorization header
            HttpContext httpContext = HttpContext.Current;
            string      authHeader  = httpContext.Request.Headers["Authorization"];

            Response auth = Controller.ControllerCheckIn.CheckLogIn_forProcess(authHeader);

            if (auth.Message != "")
            {
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(auth));
                Context.Response.End();
            }
            else
            {
                Controller.ControllerInvoiceList companyList = new Controller.ControllerInvoiceList();
                MetaResponse response = companyList.getInvoiceList(BILLING_DATE, OFFSET, LIMIT);
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(response));
                Context.Response.End();
            }
        }
Esempio n. 9
0
        public void GetSubProgramLists()
        {
            //get Authorization header
            HttpContext httpContext = HttpContext.Current;
            string      authHeader  = httpContext.Request.Headers["Authorization"];

            Response auth = Controller.ControllerCheckIn.CheckLogIn_forProcess(authHeader);

            if (auth.Message != "")
            {
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(auth));
                Context.Response.End();
            }

            else
            {
                Controller.ControllerUsageApplicationList orderRegister = new Controller.ControllerUsageApplicationList();
                MetaResponse response = orderRegister.GetSubProgramLists();
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(response));
                Context.Response.End();
            }
        }
        public void Disapprove(string COMPANY_NO_BOX, int REQ_TYPE, string CHANGED_ITEMS, string SYSTEM_EFFECTIVE_DATE, string SYSTEM_REGIST_DEADLINE, string LIST)
        {
            //get Authorization header
            HttpContext httpContext = HttpContext.Current;
            string      authHeader  = httpContext.Request.Headers["Authorization"];

            Response auth = Controller.ControllerCheckIn.CheckLogIn_forProcess(authHeader);

            if (auth.Message != "")
            {
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(auth));
                Context.Response.End();
            }
            else
            {
                ControllerApplicationApproval approval = new Controller.ControllerApplicationApproval(authHeader);
                MetaResponse response = approval.Disapprove(COMPANY_NO_BOX, REQ_TYPE, CHANGED_ITEMS, SYSTEM_EFFECTIVE_DATE, SYSTEM_REGIST_DEADLINE, LIST);
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(response));
                Context.Response.End();
            }
        }
Esempio n. 11
0
        public void DoPreview(string COMPANY_NO_BOX, string COMPANY_NAME, string REQ_SEQ, decimal TaxAmt,
                              string startDate, string expireDate, string strPeroidFrom, string strPeroidTo, string strExportInfo,
                              string strContractPlan, string INITIAL_REMARK, string MONTHLY_REMARK, string PI_REMARK, string ORDER_REMARK)
        {
            // get Authorization header
            HttpContext httpContext = HttpContext.Current;
            string      authHeader  = httpContext.Request.Headers["Authorization"];
            Response    auth        = Controller.ControllerCheckIn.CheckLogIn_forProcess(authHeader);

            if (auth.Message != "")
            {
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(auth));
                Context.Response.End();
            }
            else
            {
                Controller.ControllerIssueQuotation previewQuote = new Controller.ControllerIssueQuotation();
                MetaResponse response = previewQuote.DoPreview(COMPANY_NO_BOX, COMPANY_NAME, REQ_SEQ, TaxAmt, startDate, expireDate, strPeroidFrom, strPeroidTo, strExportInfo, strContractPlan, INITIAL_REMARK, MONTHLY_REMARK, PI_REMARK, ORDER_REMARK);
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(response));
                Context.Response.End();
            }
        }
        public void GetPassword()
        {
            //get Authorization header
            HttpContext httpContext = HttpContext.Current;
            string      authHeader  = httpContext.Request.Headers["Authorization"];

            Response auth = Controller.ControllerCheckIn.CheckLogIn_forProcess(authHeader);

            if (auth.Message != "")
            {
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(auth));
                Context.Response.End();
            }
            else
            {
                Controller.ControllerCompanyCodeList companyList = new Controller.ControllerCompanyCodeList();
                MetaResponse response = companyList.GeneratePassword();
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(response));
                Context.Response.End();
            }
        }
Esempio n. 13
0
        public void GetPopupScreenData(string COMPANY_NO_BOX, string REQ_SEQ)
        {
            //get Authorization header
            HttpContext httpContext = HttpContext.Current;
            string      authHeader  = httpContext.Request.Headers["Authorization"];

            Response auth = Controller.ControllerCheckIn.CheckLogIn_forProcess(authHeader);

            if (auth.Message != "")
            {
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(auth));
                Context.Response.End();
            }
            else
            {
                Controller.ControllerCustomerMasterMaintenance customerMaintenance = new Controller.ControllerCustomerMasterMaintenance();
                MetaResponse response = customerMaintenance.getBreakDownScreenData(COMPANY_NO_BOX, REQ_SEQ);
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(response));
                Context.Response.End();
            }
        }
Esempio n. 14
0
        public void ExtractEDIAutoInfo(string COMPANY_NO_BOX)
        {
            //get Authorization header
            HttpContext httpContext = HttpContext.Current;
            string      authHeader  = httpContext.Request.Headers["Authorization"];

            Response auth = Controller.ControllerCheckIn.CheckLogIn_forProcess(authHeader);

            if (auth.Message != "")
            {
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(auth));
                Context.Response.End();
            }
            else
            {
                Controller.ControllerEDICandicate EDICandidate = new Controller.ControllerEDICandicate();
                MetaResponse response = EDICandidate.ExtractEDIAutoInfo(COMPANY_NO_BOX);
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(response));
                Context.Response.End();
            }
        }
Esempio n. 15
0
        public void GetMaintenance(string COMPANY_NO_BOX, string COMPANY_NAME, string COMPANY_NAME_READING, string EDI_ACCOUNT, string MAIL_ADDRESS, string CONTRACTOR, string INVOICE, string SERVICE_DESK, string NOTIFICATION_DESTINATION, int OFFSET = 0, int LIMIT = 30)
        {
            //get Authorization header
            HttpContext httpContext = HttpContext.Current;
            string      authHeader  = httpContext.Request.Headers["Authorization"];

            Response auth = Controller.ControllerCheckIn.CheckLogIn_forProcess(authHeader);

            if (auth.Message != "")
            {
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(auth));
                Context.Response.End();
            }
            else
            {
                Controller.ControllerCustomerMasterMaintenance customerMaintenance = new Controller.ControllerCustomerMasterMaintenance();
                MetaResponse response = customerMaintenance.getMaintenanceList(COMPANY_NO_BOX, COMPANY_NAME, COMPANY_NAME_READING, EDI_ACCOUNT, MAIL_ADDRESS, CONTRACTOR, INVOICE, SERVICE_DESK, NOTIFICATION_DESTINATION, OFFSET, LIMIT);
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(response));
                Context.Response.End();
            }
        }
Esempio n. 16
0
        public void Update(string List)
        {
            //get Authorization header
            HttpContext httpContext = HttpContext.Current;
            string      authHeader  = httpContext.Request.Headers["Authorization"];

            Response auth = Controller.ControllerCheckIn.CheckLogIn_forProcess(authHeader);

            if (auth.Message != "") // need to change
            {
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(auth));
                Context.Response.End();
            }

            else
            {
                Controller.ControllerCustomerMasterMaintenance orderRegister = new Controller.ControllerCustomerMasterMaintenance(authHeader);
                MetaResponse response = orderRegister.UpdateCustomerMasterMaintenances(List);
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(response));
                Context.Response.End();
            }
        }
Esempio n. 17
0
 public ControllerEDICandicate()
 {
     timer = new Stopwatch();
     timer.Start();
     response          = new MetaResponse();
     DAL_EDI_CANDICATE = new EDI_CANDIDATE(con);
 }
Esempio n. 18
0
        public void QuotationMailCreate(string COMPANY_NO_BOX, string COMPANY_NAME, string REQ_SEQ, string CONSUMPTION_TAX, string INITIAL_SPECIAL_DISCOUNTS, string MONTHLY_SPECIAL_DISCOUNTS, string YEARLY_SPECIAL_DISCOUNT, string EMAIL_ADDRESS, string INPUT_PERSON, string ExportInfo, string CONTRACT_PLAN, string CREATED_TIME, string strPeroidFrom, string strPeroidTo)
        {
            //// get Authorization header
            HttpContext httpContext = HttpContext.Current;
            string      authHeader  = httpContext.Request.Headers["Authorization"];
            Response    auth        = Controller.ControllerCheckIn.CheckLogIn_forProcess(authHeader);

            if (auth.Message != "")
            {
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(auth));
                Context.Response.End();
            }
            else
            {
                Controller.ControllerIssueQuotation issueQuotation = new Controller.ControllerIssueQuotation(authHeader);
                MetaResponse response = issueQuotation.QuotationMailCreate(COMPANY_NO_BOX, COMPANY_NAME, REQ_SEQ, CONSUMPTION_TAX, INITIAL_SPECIAL_DISCOUNTS, MONTHLY_SPECIAL_DISCOUNTS, YEARLY_SPECIAL_DISCOUNT, EMAIL_ADDRESS, INPUT_PERSON, ExportInfo, CONTRACT_PLAN, CREATED_TIME, strPeroidFrom, strPeroidTo);
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(response));
                Context.Response.End();
            }
        }
        public void GetClientCertificateList(string FY, string COMPANY_NO_BOX, string CLIENT_CERTIFICATE_NO, string DISTRIBUTION_STATUS, int OFFSET = 0, int LIMIT = 30)
        {
            //get Authorization header
            HttpContext httpContext = HttpContext.Current;
            string      authHeader  = httpContext.Request.Headers["Authorization"];

            Response auth = Controller.ControllerCheckIn.CheckLogIn_forProcess(authHeader);

            if (auth.Message != "")
            {
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(auth));
                Context.Response.End();
            }
            else
            {
                Controller.ControllerClientCertificateList companyList = new Controller.ControllerClientCertificateList(authHeader);
                MetaResponse response = companyList.getClientCertificateList(FY, COMPANY_NO_BOX, CLIENT_CERTIFICATE_NO, DISTRIBUTION_STATUS, OFFSET, LIMIT);
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(response));
                Context.Response.End();
            }
        }
Esempio n. 20
0
        public void Search(String COMPANY_NO_BOX, String COMPANY_NAME, String CLOSE_FLG, String GD, String REQUEST_STATUS, String REQ_DATE_FROM, String REQ_DATE_TO, String QUOTATION_DATE_FROM, String QUOTATION_DATE_TO, String ORDER_DATE_FROM, String ORDER_DATE_TO, String SYSTEM_SETTING_STATUS, int OFFSET = 0, int LIMIT = 30)
        {
            //get Authorization header
            HttpContext httpContext = HttpContext.Current;
            string      authHeader  = httpContext.Request.Headers["Authorization"];

            Response auth = Controller.ControllerCheckIn.CheckLogIn_forProcess(authHeader);

            if (auth.Message != "")
            {
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(auth));
                Context.Response.End();
            }

            else
            {
                Controller.ControllerUsageApplicationList orderRegister = new Controller.ControllerUsageApplicationList();
                MetaResponse response = orderRegister.getRequestDetailList(COMPANY_NO_BOX, COMPANY_NAME, CLOSE_FLG, GD, REQUEST_STATUS, REQ_DATE_FROM, REQ_DATE_TO, QUOTATION_DATE_FROM, QUOTATION_DATE_TO, ORDER_DATE_FROM, ORDER_DATE_TO, SYSTEM_SETTING_STATUS, OFFSET, LIMIT);
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(response));
                Context.Response.End();
            }
        }
Esempio n. 21
0
        public void getMonthlySaleAggregationList(string YEAR_MONTH)
        {
            //get Authorization header
            HttpContext httpContext = HttpContext.Current;
            string      authHeader  = httpContext.Request.Headers["Authorization"];

            Response auth = Controller.ControllerCheckIn.CheckLogIn_forProcess(authHeader);

            if (auth.Message != "")
            {
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(auth));
                Context.Response.End();
            }
            else
            {
                Controller.ControllerMonthlySaleAggregation regList = new Controller.ControllerMonthlySaleAggregation();
                MetaResponse response = regList.getMonthlySaleAggregationList(YEAR_MONTH);
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(response));
                Context.Response.End();
            }
        }
Esempio n. 22
0
        public void SubmitOrderRegister()
        {
            //get Authorization header
            HttpContext httpContext = HttpContext.Current;
            string      authHeader  = httpContext.Request.Headers["Authorization"];

            //uploaded file
            var File = httpContext.Request.Files[0];

            //list
            string   List = httpContext.Request.Form.GetValues("List").First();
            Response auth = Controller.ControllerCheckIn.CheckLogIn_forProcess(authHeader);

            if (auth.Message != "")
            {
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(auth));
                Context.Response.End();
            }
            else
            {
                Controller.ControllerPurchaseOrder purchaseOrder = new Controller.ControllerPurchaseOrder(authHeader);
                MetaResponse response = purchaseOrder.SubmitOrderRegister(List, File);
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(response));
                Context.Response.End();
            }
        }
Esempio n. 23
0
        public void getUsageInformationRegistrationList(string COMPANY_NO_BOX, string COMPANY_NAME, string EDI_ACCOUNT, int OFFSET = 0, int LIMIT = 30)
        {
            //get Authorization header
            HttpContext httpContext = HttpContext.Current;
            string      authHeader  = httpContext.Request.Headers["Authorization"];

            Response auth = Controller.ControllerCheckIn.CheckLogIn_forProcess(authHeader);

            if (auth.Message != "")
            {
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(auth));
                Context.Response.End();
            }
            else
            {
                Controller.ControllerUsageInfoRegistrationList regList = new Controller.ControllerUsageInfoRegistrationList();
                MetaResponse response = regList.getUsageInformationRegistrationList(COMPANY_NO_BOX, COMPANY_NAME, EDI_ACCOUNT, OFFSET, LIMIT);
                Context.Response.Clear();
                Context.Response.ContentType = "application/json";
                Context.Response.Flush();
                Context.Response.Write(JsonConvert.SerializeObject(response));
                Context.Response.End();
            }
        }
Esempio n. 24
0
        public MetaResponse Logout(ApiCall apiCall)
        {
            var response = new MetaResponse();

            response.DeleteCookie(DataConstants.UserApiSessionKey);
            response.Success = true;
            return(response);
        }
Esempio n. 25
0
        public MetaResponse Login(ApiCall call)
        {
            // get the redirect url.
            MetaResponse res = new MetaResponse();

            res.Redirect("/_admin/sites");
            return(res);
        }
 public ControllerApplicationApproval()
 {
     timer = new Stopwatch();
     timer.Start();
     response = new MetaResponse();
     //UPDATED_AT
     UPDATED_AT_DATETIME = TEMP.ToString("yyyy/MM/dd HH:mm");
     CURRENT_DATETIME    = TEMP.ToString("yyyyMMddHHmmss");
 }
 public ControllerCustomerMasterMaintenance()
 {
     timer = new Stopwatch();
     timer.Start();
     response = new MetaResponse();
     //UPDATED_AT
     UPDATED_AT_DATETIME = TEMP.ToString("yyyy/MM/dd HH:mm");
     CURRENT_DATETIME    = TEMP.ToString("yyyyMMddHHmmss");
 }
Esempio n. 28
0
 public ControllerCompanyCodeList()
 {
     timer = new Stopwatch();
     timer.Start();
     response = new MetaResponse();
     //UPDATED_AT
     UPDATED_AT_DATETIME = TEMP.ToString("yyyy/MM/dd HH:mm");
     CURRENT_DATETIME    = TEMP.ToString("yyyyMMddHHmmss");
 }
Esempio n. 29
0
 public ControllerMonthlySaleAggregation()
 {
     timer = new Stopwatch();
     timer.Start();
     response = new MetaResponse();
     //UPDATED_AT
     UPDATED_AT_DATETIME = TEMP.ToString("yyyy/MM/dd HH:mm");
     CURRENT_DATETIME    = TEMP.ToString("yyyyMMddHHmmss");
 }
Esempio n. 30
0
        public async Task CreateAsync()
        {
            var body = new UserGroupRequest
            {
                Name = "Recruting Management"
            };

            MetaResponse response = await _service.CreateAsync(body);

            Assert.IsNotNull(response);
        }