public void AllocationManualCompletion(bool ALLOCATE, int SEQ_NO, string COMPANY_NO_BOX, string YEAR_MONTH, string RECEIPT_ALLOCATION_DATE, string INVOICE_ALLOCATION_DATE) { //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.Controller37 o37 = new Controller.Controller37(); Response response = o37.AllocationManualCompletion(ALLOCATE, SEQ_NO, COMPANY_NO_BOX, YEAR_MONTH, RECEIPT_ALLOCATION_DATE, INVOICE_ALLOCATION_DATE); Context.Response.Clear(); Context.Response.ContentType = "application/json"; Context.Response.Flush(); Context.Response.Write(JsonConvert.SerializeObject(response)); Context.Response.End(); } }
public void UpdateInvoice(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.Controller37 o37 = new Controller.Controller37(); Response response = o37.UpdateInvoice_37(List); Context.Response.Clear(); Context.Response.ContentType = "application/json"; Context.Response.Flush(); Context.Response.Write(JsonConvert.SerializeObject(response)); Context.Response.End(); } }
public void Account_Receivable( int TRANSACTION_TYPE, string FROM_YEAR_MONTH, string TO_YEAR_MONTH, string FROM_STATUS_PLAN_DEPOSIT_YYMM, string TO_STATUS_PLAN_DEPOSIT_YYMM, string FROM_STATUS_ACTUAL_DEPOSIT_DATE, string TO_STATUS_ACTUAL_DEPOSIT_DATE, string DEPOSIT_RULE, string WITH_OR_WITHOUT_PAYMENT, string BILL_SUPPLIER_NAME, string FILE_NAME) { //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.Controller37 o37 = new Controller.Controller37(); Response response = o37.GetAccount_Receivable( TRANSACTION_TYPE, FROM_YEAR_MONTH, TO_YEAR_MONTH, FROM_STATUS_PLAN_DEPOSIT_YYMM, TO_STATUS_PLAN_DEPOSIT_YYMM, FROM_STATUS_ACTUAL_DEPOSIT_DATE, TO_STATUS_ACTUAL_DEPOSIT_DATE, DEPOSIT_RULE, WITH_OR_WITHOUT_PAYMENT, BILL_SUPPLIER_NAME, FILE_NAME); Context.Response.Clear(); Context.Response.ContentType = "application/json"; Context.Response.Flush(); Context.Response.Write(JsonConvert.SerializeObject(response)); Context.Response.End(); } }