コード例 #1
0
        public bool Create(SupplierModel supplierModel)
        {
            var  body           = JsonConvert.SerializeObject(supplierModel);
            bool SupplierCreate = ServerResponse.Invoke <bool>("api/supplier/create", body, "Post");

            return(SupplierCreate);
        }
コード例 #2
0
        public List <ProductStyleModel> GetAll()
        {
            var body = "";
            List <ProductStyleModel> ProductStyleModelList = ServerResponse.Invoke <List <ProductStyleModel> >("api/productStyle/getDetails", body, "get");

            return(ProductStyleModelList);
        }
コード例 #3
0
        public List <string> GetGridSize(int?id)
        {
            var           body             = "";
            List <string> SizeGridListById = ServerResponse.Invoke <List <string> >("api/sizeGrid/getGridSize?id=" + id, body, "get");

            return(SizeGridListById);
        }
コード例 #4
0
        public StaffStatusModel GetById(int?id)
        {
            var body = "";
            StaffStatusModel StaffRoleModelById = ServerResponse.Invoke <StaffStatusModel>("api/staffStatus/getDetail?id=" + id, body, "GET");

            return(StaffRoleModelById);
        }
コード例 #5
0
        public ImageModel Create(ImageModel imageModel)
        {
            var        body        = JsonConvert.SerializeObject(imageModel);
            ImageModel ImageCreate = ServerResponse.Invoke <ImageModel>("api/image/create", body, "Post");

            return(ImageCreate);
        }
コード例 #6
0
        public AreaModel GetById(int?id)
        {
            var       body     = "";
            AreaModel AreaById = ServerResponse.Invoke <AreaModel>("api/area/getDetail?id=" + id, body, "get");

            return(AreaById);
        }
コード例 #7
0
        public AreaModel Edit(AreaModel areaModel)
        {
            var       body     = JsonConvert.SerializeObject(areaModel);
            AreaModel AreaEdit = ServerResponse.Invoke <AreaModel>("api/area/edit?id=" + areaModel.Id, body, "POST");

            return(AreaEdit);
        }
コード例 #8
0
        public bool CheckProductSKU(string chk1, string chk2)
        {
            // var body = JsonConvert.SerializeObject(chk1,chk2);
            var CheckBranchCode = ServerResponse.Invoke <bool>("api/product/checkProductSKU?chk1=" + chk1 + "&chk2=" + chk2, " ", "GET");

            return(CheckBranchCode);
        }
コード例 #9
0
        public bool Create(ProductModel productModel)
        {
            var  body          = JsonConvert.SerializeObject(productModel);
            bool ProductCreate = ServerResponse.Invoke <bool>("api/product/create", body, "Post");

            return(ProductCreate);
        }
コード例 #10
0
        public SupplierModel Delete(SupplierModel supplierModel)
        {
            var           body           = JsonConvert.SerializeObject(supplierModel);
            SupplierModel SupplierDelete = ServerResponse.Invoke <SupplierModel>("api/supplier/Delete?id=" + supplierModel.Id, body, "POST");

            return(SupplierDelete);
        }
コード例 #11
0
        public ProductModel GetById(int?id)
        {
            var          body             = "";
            ProductModel ProductModelById = ServerResponse.Invoke <ProductModel>("api/product/getDetail?id=" + id, body, "GET");

            return(ProductModelById);
        }
コード例 #12
0
        public bool CheckSupplierCode(string chk)
        {
            var body = JsonConvert.SerializeObject(chk);
            var CheckSupplierCode = ServerResponse.Invoke <bool>("api/supplier/checkSupplierCode?chk=" + chk, body, "POST");

            return(CheckSupplierCode);
        }
コード例 #13
0
        public bool Edit(SupplierModel supplierModel)
        {
            var  body         = JsonConvert.SerializeObject(supplierModel);
            bool SupplierEdit = ServerResponse.Invoke <bool>("api/supplier/edit?id=" + supplierModel.Id, body, "POST");

            return(SupplierEdit);
        }
コード例 #14
0
        public SupplierModel ExcelUpload(SupplierModel supplierModel)
        {
            var           body           = JsonConvert.SerializeObject(supplierModel);
            SupplierModel SupplierCreate = ServerResponse.Invoke <SupplierModel>("api/supplier/supplierExcelData", body, "Post");

            return(SupplierCreate);
        }
コード例 #15
0
        public Dictionary <int, ProductImport> ProductImportFilter(Dictionary <int, ProductImport> list)
        {
            var body = JsonConvert.SerializeObject(list);
            var obj  = ServerResponse.Invoke <Dictionary <int, ProductImport> >("api/product/getProductImportFilter", body, "POST");

            return(obj);
        }
コード例 #16
0
        public bool Edit(ProductModel productModel)
        {
            var  body        = JsonConvert.SerializeObject(productModel);
            bool ProductEdit = ServerResponse.Invoke <bool>("api/product/edit", body, "POST");

            return(ProductEdit);
        }
コード例 #17
0
        public MarkDownProduct GetByIdMarkDown(int?id)
        {
            var             body             = "";
            MarkDownProduct ProductModelById = ServerResponse.Invoke <MarkDownProduct>("api/product/getDetail?id=" + id, body, "GET");

            return(ProductModelById);
        }
コード例 #18
0
        public bool EditByMark(MarkDownModel model)
        {
            var  body        = JsonConvert.SerializeObject(model);
            bool ProductEdit = ServerResponse.Invoke <bool>("api/product/editByMark", body, "POST");

            return(ProductEdit);
        }
コード例 #19
0
        public bool Create(AreaModel areaModel)
        {
            var  body       = JsonConvert.SerializeObject(areaModel);
            bool AreaCreate = ServerResponse.Invoke <bool>("api/area/create", body, "Post");

            return(AreaCreate);
        }
コード例 #20
0
        public List <AllProductDetailModel> SearchProduct(ProdSearch prodSearch)
        {
            var body = JsonConvert.SerializeObject(prodSearch);
            List <AllProductDetailModel> productModelList = ServerResponse.Invoke <List <AllProductDetailModel> >("api/product/ProductSearch", body, "Post");

            return(productModelList);
        }
コード例 #21
0
        public AreaModel Delete(AreaModel areaModel)
        {
            var       body       = JsonConvert.SerializeObject(areaModel);
            AreaModel AreaDelete = ServerResponse.Invoke <AreaModel>("api/area/Delete?id=" + areaModel.Id, body, "POST");

            return(AreaDelete);
        }
コード例 #22
0
        public bool CheckProductSKU(ProductModel model)
        {
            var body            = JsonConvert.SerializeObject(model);
            var CheckProductSKU = ServerResponse.Invoke <bool>("api/product/checkProductSKU", body, "POST");

            return(CheckProductSKU);
        }
コード例 #23
0
        public List <ImageModel> GetAllImage()
        {
            var body = "";
            List <ImageModel> ImageModels = ServerResponse.Invoke <List <ImageModel> >("api/image/getDetails", body, "get");

            return(ImageModels);
        }
コード例 #24
0
        public ProductModel Delete(ProductModel productModel)
        {
            var body          = JsonConvert.SerializeObject(productModel);
            var ProductDelete = ServerResponse.Invoke <ProductModel>("api/product/Delete?id=" + productModel.Id, body, "POST");

            return(ProductDelete);
        }
コード例 #25
0
        public bool CheckBarcode(string Barcode)
        {
            var body         = JsonConvert.SerializeObject(Barcode);
            var CheckBarCode = ServerResponse.Invoke <bool>("api/product/checkBarCode?chk=" + Barcode, body, "POST");

            return(CheckBarCode);
        }
コード例 #26
0
        public bool CheckColorCode(int?id, int ColorId)
        {
            var body           = JsonConvert.SerializeObject(ColorId);
            var CheckColorName = ServerResponse.Invoke <bool>("api/product/checkColorName?id=" + id + "&ColorId=" + ColorId, body, "POST");

            return(CheckColorName);
        }
コード例 #27
0
        public List <string> GetCode()
        {
            var           body = "";
            List <string> ProductStyleCodeList = ServerResponse.Invoke <List <string> >("api/productStyle/getCode", body, "get");

            return(ProductStyleCodeList);
        }
コード例 #28
0
        public bool CheckSupplier(int?id, int SupplierId)
        {
            var body          = JsonConvert.SerializeObject(SupplierId);
            var CheckSupplier = ServerResponse.Invoke <bool>("api/product/checkSupplier?id=" + id + "&SupplierId=" + SupplierId, body, "POST");

            return(CheckSupplier);
        }
コード例 #29
0
        public bool Create(SizeGridModel sizeGridModel)
        {
            var  body           = JsonConvert.SerializeObject(sizeGridModel);
            bool SizeGridCreate = ServerResponse.Invoke <bool>("api/sizeGrid/create", body, "Post");

            return(SizeGridCreate);
        }
コード例 #30
0
        public SupplierModel GetById(int?id)
        {
            var           body         = "";
            SupplierModel SupplierById = ServerResponse.Invoke <SupplierModel>("api/supplier/getDetail?id=" + id, body, "get");

            return(SupplierById);
        }