public IHttpActionResult GetGeneratedJsonByIDProduct(ViewModel.tblDefineDetailProduct obj) { try { Bis.DefineDetailProductMethod BisDefineDetailProduct = new Bis.DefineDetailProductMethod(); JArray JSon = BisDefineDetailProduct.GetGeneratedJsonByIDProduct(obj); return(Ok(JSon)); } catch { return(NotFound()); } }
public IHttpActionResult GetDefineDetailProductByGeneratedCode(ViewModel.tblDefineDetailProduct obj) { try { Bis.DefineDetailProductMethod BisDefineDetailProduct = new Bis.DefineDetailProductMethod(); JArray JsonDefine = BisDefineDetailProduct.GetDefineDetailProductByGeneratedCode(obj); return(Ok(JsonDefine)); } catch { return(NotFound()); } }
public IHttpActionResult GetAutoCompleteDefineDetailProduct() { try { Bis.DefineDetailProductMethod BisDefineDetailProduct = new Bis.DefineDetailProductMethod(); ViewModel.tblDefineDetailProduct DefineDetailProduct = new ViewModel.tblDefineDetailProduct(); JArray JsonDefine = BisDefineDetailProduct.GetJsonAutoCompleteDefineDetailProduct(DefineDetailProduct); return(Ok(JsonDefine)); } catch { return(NotFound()); } }
public IHttpActionResult ChangeSortInCrmForDefineDetailProduct(object obj) { try { Bis.DefineDetailProductMethod BisDefineDetailProduct = new Bis.DefineDetailProductMethod(); ViewModel.tblDefineDetailProduct update = new ViewModel.tblDefineDetailProduct(); update.JsonDefineDetailProduct = obj.ToString(); bool ret = BisDefineDetailProduct.UpdateSortInCrm(update); return(Ok(ret)); } catch { return(NotFound()); } }
public IHttpActionResult FillRulePropertyProductByIDXDefineDetailProduct(object obj) { try { JObject JsonObject = JObject.Parse(obj.ToString()); Bis.DefineDetailProductMethod BisDefineDetailProduct = new Bis.DefineDetailProductMethod(); ViewModel.tblDefineDetailProduct get = new ViewModel.tblDefineDetailProduct(); get.IDX = JsonObject["IDXDefineDetailProduct"].ToString().StringToInt(); JArray JsonContentCategory = BisDefineDetailProduct.GetJsonPropertyNameValueDataByIDXDefine(get); return(Ok(JsonContentCategory)); } catch { return(NotFound()); } }
public IHttpActionResult FillDefineDetailProductByIDXProduct(object obj) { try { JObject JsonObject = JObject.Parse(obj.ToString()); Bis.DefineDetailProductMethod BisDefineDetailProduct = new Bis.DefineDetailProductMethod(); ViewModel.tblDefineDetailProduct DefineDetailProduct = new ViewModel.tblDefineDetailProduct(); DefineDetailProduct.IDXProduct = JsonObject["IDXProduct"].ToString().StringToInt(); JArray JsonDefine = BisDefineDetailProduct.GetGroupByPropertyJsonData(DefineDetailProduct); return(Ok(JsonDefine)); } catch { return(NotFound()); } }
public IHttpActionResult GetTechnicalPropertiesDetailForCompare(object obj) { try { JObject JsonObject = JObject.Parse(obj.ToString()); ViewModel.tblDefineDetailProduct GetDefineDetailProduct = JsonObject.ToObject <ViewModel.tblDefineDetailProduct>(); Bis.DefineDetailProductMethod BisDefineDetailProduct = new Bis.DefineDetailProductMethod(); JArray JsonDefine = BisDefineDetailProduct.GetTechnicalPropertiesDetailForCompare(GetDefineDetailProduct); return(Ok(JsonDefine)); } catch (Exception ex) { return(NotFound()); } }