コード例 #1
0
 public IHttpActionResult GetGeneratedJsonByIDProduct(ViewModel.tblDefineDetailProduct obj)
 {
     try
     {
         Bis.DefineDetailProductMethod BisDefineDetailProduct = new Bis.DefineDetailProductMethod();
         JArray JSon = BisDefineDetailProduct.GetGeneratedJsonByIDProduct(obj);
         return(Ok(JSon));
     }
     catch
     {
         return(NotFound());
     }
 }
コード例 #2
0
 public IHttpActionResult GetDefineDetailProductByGeneratedCode(ViewModel.tblDefineDetailProduct obj)
 {
     try
     {
         Bis.DefineDetailProductMethod BisDefineDetailProduct = new Bis.DefineDetailProductMethod();
         JArray JsonDefine = BisDefineDetailProduct.GetDefineDetailProductByGeneratedCode(obj);
         return(Ok(JsonDefine));
     }
     catch
     {
         return(NotFound());
     }
 }
コード例 #3
0
 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());
     }
 }
コード例 #4
0
 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());
     }
 }
コード例 #5
0
 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());
     }
 }
コード例 #6
0
 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());
     }
 }
コード例 #7
0
        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());
            }
        }