public object Any(ServiceModel.Freight.Saus request) { CommonResponse ecr = new CommonResponse(); ecr.initial(); try { ServiceInterface.Freight.TableService ls = new ServiceInterface.Freight.TableService(); ls.TS_Saus(auth, request, saus_Logic, ecr, this.Request.Headers.GetValues("Signature"), this.Request.RawUrl); } catch (Exception ex) { cr(ecr, ex); } return(ecr); }
public object Any(ServiceModel.Wms.Wms_Login request) { CommonResponse ecr = new CommonResponse(); ecr.initial(); try { ServiceInterface.Wms.LoginService ls = new ServiceInterface.Wms.LoginService(); ls.initial(auth, request, wms_Login_Logic, ecr, this.Request.Headers.GetValues("Signature"), this.Request.RawUrl); } catch (Exception ex) { cr(ecr, ex); } return(ecr); }
public object Get(ServiceModel.Tms.List_Jmjm6 request) { CommonResponse ecr = new CommonResponse(); ecr.initial(); try { ServiceInterface.Tms.ListService ls = new ServiceInterface.Tms.ListService(); ls.ListJmjm6(auth, request, list_Jmjm6_Logic, ecr, this.Request.Headers.GetValues("Signature"), this.Request.RawUrl); } catch (Exception ex) { cr(ecr, ex); } return(ecr); }
public object Post(ServiceModel.Tms.Update_Done request) { CommonResponse ecr = new CommonResponse(); ecr.initial(); try { ServiceInterface.Tms.DoneService ds = new ServiceInterface.Tms.DoneService(); ds.initial(auth, request, update_Done_Logic, ecr, this.Request.Headers.GetValues("Signature"), this.Request.RawUrl); } catch (Exception ex) { cr(ecr, ex); } return(ecr); }
public object Post(ServiceModel.Wms.Confirm_Imgr1 request) { CommonResponse ecr = new CommonResponse(); ecr.initial(); try { ServiceInterface.Wms.ConfirmService cs = new ServiceInterface.Wms.ConfirmService(); cs.ConfirmImgr1(auth, request, confirm_Imgr1_Logic, ecr, this.Request.Headers.GetValues("Signature"), this.Request.RawUrl); } catch (Exception ex) { cr(ecr, ex); } return(ecr); }
public object Any(ServiceModel.Tms.Sibl request) { CommonResponse ecr = new CommonResponse(); ecr.initial(); try { ServiceInterface.Tms.TableService ts = new ServiceInterface.Tms.TableService(); ts.TS_Sibl(auth, request, tms_sibl_Logic, ecr, this.Request.Headers.GetValues("Signature"), this.Request.RawUrl); } catch (Exception ex) { cr(ecr, ex); } return(ecr); }
public object Any(ServiceModel.Yoga.DownLoadImg request) { CommonResponse ecr = new CommonResponse(); ecr.initial(); try { ServiceInterface.Yoga.TableService ts = new ServiceInterface.Yoga.TableService(); ts.DownLoadImg(auth, request, DownLoadImg_Logic, ecr, this.Request.Headers.GetValues("Signature"), this.Request.RawUrl); } catch (Exception ex) { cr(ecr, ex); } return(ecr); }
public object Any(ServiceModel.TMS.Aemp_Aido request) { CommonResponse ecr = new CommonResponse(); ecr.initial(); try { ServiceInterface.TMS.TableService ts = new ServiceInterface.TMS.TableService(); ts.TS_AempWithAido1(auth, request, tms_aempwithaido_Logic, ecr, this.Request.Headers.GetValues("Signature"), this.Request.RawUrl); } catch (Exception ex) { cr(ecr, ex); } return(ecr); }
public object Any(ServiceModel.TMS.UploadImg request) { CommonResponse ecr = new CommonResponse(); ecr.initial(); try { ServiceInterface.TMS.UploadImgService ps = new ServiceInterface.TMS.UploadImgService(); if (this.Request.Files.Length > 0) { request.RequestStream = this.Request.Files[0].InputStream; request.FileName = this.Request.Files[0].FileName; } ps.PS_Upload(auth, request, uploadImg_Logic, ecr, this.Request.Headers.GetValues("Signature"), this.Request.RawUrl); } catch (Exception ex) { cr(ecr, ex); } return(ecr); }
public object Any(List_Login request) { CommonResponse ecr = new CommonResponse(); ecr.initial(); try { LoginService ls = new LoginService(); ls.initial(auth, request, list_Login_Logic, ecr, this.Request.Headers.GetValues("Signature"), this.Request.RawUrl); } catch (Exception ex) { ecr.meta.code = 599; ecr.meta.message = "The server handle exceptions, the operation fails."; ecr.meta.errors.code = ex.HResult; ecr.meta.errors.field = ex.HelpLink; ecr.meta.errors.message = ex.Message.ToString(); } return(ecr); }
public object Get(ServiceModel.Freight.ViewPDF request) { if (this.Request.RawUrl.IndexOf("/pdf/file") > 0) { byte[] heByte = viewPDF_Logic.Get_File(request); return(new HttpResult(heByte, "application/pdf")); } else //this.Request.RawUrl.IndexOf("/pdf") > 0 { CommonResponse ecr = new CommonResponse(); ecr.initial(); try { ServiceInterface.Freight.PdfService ps = new ServiceInterface.Freight.PdfService(); ps.PS_View(auth, request, viewPDF_Logic, ecr, this.Request.Headers.GetValues("Signature"), this.Request.RawUrl); } catch (Exception ex) { cr(ecr, ex); } return(ecr); } }
public object Get(ServiceModel.Freight.ViewFile request) { if (this.Request.RawUrl.IndexOf("/file/list") < 0 && !string.IsNullOrEmpty(request.eDoc) && !string.IsNullOrEmpty(request.Type)) { bool blnEDoc = false; if (request.eDoc.Equals("1")) { blnEDoc = true; } byte[] heByte = viewFile_Logic.Get_File(request, blnEDoc); string type = "application/octet-stream"; if (request.Type.ToLower().Equals("img")) { type = "image/jpeg"; } else if (request.Type.ToLower().Equals("txt")) { type = "text/plain"; } else if (request.Type.ToLower().Equals("pdf")) { type = "application/pdf"; } return(new HttpResult(heByte, type)); } else { CommonResponse ecr = new CommonResponse(); ecr.initial(); try { ServiceInterface.Freight.FileService fs = new ServiceInterface.Freight.FileService(); fs.FS_View(auth, request, viewFile_Logic, ecr, this.Request.Headers.GetValues("Signature"), this.Request.RawUrl); } catch (Exception ex) { cr(ecr, ex); } return(ecr); } }