public HttpResponseBase combSpecQuery()
        {
            string json = "{success:false}";
            try
            {
                int pileId = 0;
                int.TryParse(Request.Params["pileId"] ?? "0", out pileId);
                uint parentId = 0;

                BLL.gigade.Model.Vendor vendorModel = (BLL.gigade.Model.Vendor)Session["vendor"];
                int writer_id = Convert.ToInt32(vendorModel.vendor_id);
                if (!string.IsNullOrEmpty(Request.Params["ProductId"]))
                {
                    if (uint.TryParse(Request.Params["ProductId"].ToString(), out parentId))
                    {
                        _combMgr = new ProductComboMgr(connectionString);
                        json = "{success:true,data:" + JsonConvert.SerializeObject(_combMgr.combQuery(new ProductComboCustom { Parent_Id = int.Parse(Request.Params["ProductId"]), Pile_Id = pileId })) + "}";

                    }
                    else
                    {
                        _combTempMgr = new ProductComboTempMgr(connectionString);
                        ProductComboCustomVendor query = new ProductComboCustomVendor { Writer_Id = writer_id, Pile_Id = pileId, create_channel = 2, temp_status = 12, Parent_Id = Request.Params["ProductId"] };
                        json = "{success:true,data:" + JsonConvert.SerializeObject(_combTempMgr.combQueryByVendor(query)) + "}";
                    }
                }
            }
            catch (Exception ex)
            {
                Log4NetCustom.LogMessage logMessage = new Log4NetCustom.LogMessage();
                logMessage.Content = string.Format("TargetSite:{0},Source:{1},Message:{2}", ex.TargetSite.Name, ex.Source, ex.Message);
                logMessage.MethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
                log.Error(logMessage);
            }

            Response.Clear();
            Response.Write(json);
            Response.End();
            return this.Response;
        }
 public HttpResponseBase combSpecQuery()
 {
     string json = "{success:true}";
     try
     {
         int pileId = 0;
         int.TryParse(Request.Params["pileId"] ?? "0", out pileId);
         string parentId = string.Empty;
         _combTempMgr = new ProductComboTempMgr(connectionString);
         if (!string.IsNullOrEmpty(Request.Params["ProductId"]))
         {
             parentId = Request.Params["ProductId"];
         }
         ProductComboCustomVendor query = new ProductComboCustomVendor { Pile_Id = pileId, create_channel = 2, temp_status = 12, Parent_Id = parentId };
         json = "{success:true,data:" + JsonConvert.SerializeObject(_combTempMgr.combQueryByVendor(query)) + "}";
     }
     catch (Exception ex)
     {
         Log4NetCustom.LogMessage logMessage = new Log4NetCustom.LogMessage();
         logMessage.Content = string.Format("TargetSite:{0},Source:{1},Message:{2}", ex.TargetSite.Name, ex.Source, ex.Message);
         logMessage.MethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
         log.Error(logMessage);
     }
     Response.Clear();
     Response.Write(json);
     Response.End();
     return this.Response;
 }