private static Boolean Generate(DictionaryBase busineesObject, Object item, Boolean writeHeader, String[] Headers, String columnDemiliter, String textQualifier, QualifierType qType, String outputFile, Boolean isAppend) { ArrayList items = GetList(busineesObject); DataTable dt = GetDataSource(items, item); return(Generate(dt.DefaultView, writeHeader, Headers, columnDemiliter, textQualifier, qType, outputFile, isAppend)); }
private static ArrayList GetList(DictionaryBase busineesObject) { ArrayList items = new ArrayList(); IEnumerator ie = busineesObject.GetEnumerator(); while (ie.MoveNext()) { items.Add(ie.Current); } return(items); }
public ActionResult PersonalInformation(int customerId) { try { ViewData["CustomerBase"] = CustomerBase.FindById(customerId); ViewData["Industries"] = DictionaryBase.FindByList(ConstValue.Catalog.IndustryId, true); } catch (Exception ex) { LogManager.GetLogger().Error(ex); } return(View()); }
/// <summary> /// 银行账号 /// </summary> /// <returns></returns> public ActionResult BankAccount() { try { var customerId = CustomerId(); ViewData["CustomerName"] = CustomerName(); ViewData["WeixinUser"] = WeiXinUser(); ViewData["CustomerBankAccounts"] = CustomerBankAccount.FindByList(customerId: customerId); ViewData["AccountTypes"] = DictionaryBase.FindByList(ancestorId: ConstValue.Catalog.AccountTypeId, isParent: true); ViewData["Banks"] = DictionaryBase.FindByList(ancestorId: ConstValue.Catalog.BankId, isParent: true); } catch (Exception ex) { LogManager.GetLogger().Error(ex); } return(View()); }
public ActionResult LineList(int?suitableTypeId = null, int?productCategoryId = null, int?destId = null) { try { ViewData["CustomerName"] = CustomerName(); ViewData["WeixinUser"] = WeiXinUser(); var customerId = CustomerId().ToString(); LogManager.GetLogger().Info("customerId:" + customerId); var productLines = ProductLine.FindByList(suitableTypeId: suitableTypeId, productCategoryId: productCategoryId); if (null != productLines && null != destId) { productLines = productLines.Where(p => null != p.LineDests && p.LineDests.Any(l => l.Id == destId.Value)) .ToList(); } ViewData["ProductLines"] = productLines; ViewData["CustomerId"] = customerId; ViewData["CustomerBase"] = CustomerBase.FindById(int.Parse(customerId)); ViewData["SuitableTypeId"] = suitableTypeId ?? 0; ViewData["ProductCategoryId"] = productCategoryId ?? 0; ViewData["DestId"] = destId ?? 0; ViewData["ProductCategories"] = DictionaryBase.FindByList(ConstValue.Catalog.ProductCategoryId, true); ViewData["DestinationBases"] = DestinationBase.FindByList( destinationTypeIds: ConstValue.Catalog.DestinationType.Continent.ToString()); } catch (Exception ex) { LogManager.GetLogger().Error(ex); } return(View()); }
public static Boolean Generate(DictionaryBase busineesObject, Object item, String[] Headers, String columnDemiliter, String textQualifier, QualifierType qType, String outputFile, Boolean isAppend) { return(Generate(busineesObject, item, true, Headers, columnDemiliter, textQualifier, qType, outputFile, isAppend)); }
public static Boolean Generate(DictionaryBase busineesObject, Object item, Boolean writeHeader, String columnDemiliter, String textQualifier, QualifierType qType, String outputFile) { return(Generate(busineesObject, item, writeHeader, null, columnDemiliter, textQualifier, qType, outputFile, false)); }