public string QueryBrand(int hideOffGrade = 0) { VendorBrand vb = new VendorBrand(); vbMgr = new VendorBrandMgr(connectionString); //edit by Castle //date:2014/07/18 //要求不限制 //vb.Brand_Status = 1; string json = vbMgr.QueryBrand(vb, hideOffGrade); return json; }
public string QueryBrand() { VendorBrand vb = new VendorBrand(); vb.Vendor_Id = Convert.ToUInt32((Session["vendor"] as BLL.gigade.Model.Vendor).vendor_id); vbMgr = new VendorBrandMgr(connectionString); //edit by Castle //date:2014/07/18 //要求不限制 //vb.Brand_Status = 1; string json = vbMgr.QueryBrand(vb); return json; }
public string QueryBrand() { string json = string.Empty; try { BLL.gigade.Model.Vendor vendorModel=(BLL.gigade.Model.Vendor)Session["vendor"]; VendorBrand vb = new VendorBrand(); vb.Vendor_Id = vendorModel.vendor_id;//獲取該供應商下的所有品牌,暫時寫死 vbMgr = new VendorBrandMgr(connectionString); json = vbMgr.QueryBrand(vb); } 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); } return json; }
public string QueryBrand() { VendorBrand vb = new VendorBrand(); vbMgr = new VendorBrandMgr(connectionString); vb.Brand_Status = 1; string json = vbMgr.QueryBrand(vb); return json; }
public string QueryBrand() { string json = string.Empty; try { VendorBrandMgr vbMgr = new VendorBrandMgr(connectionString); json = vbMgr.QueryBrand(new VendorBrand { Brand_Status = 1 }); } 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); } return json; }