/// <summary> /// 获取快递商集合 /// </summary> /// <returns></returns> public IList <DevExpressViewModel> GetExpressList() { var cc = new ConditionCollection() { new Condition("template_business_id", "TP001"), new Condition("status_code", 1) }; var expressInfo = GetRepository <McpTemplateTypeInfo>().ListModel(cc); return(ModelConvertHelper.ToConvertModelS <DevExpressViewModel, McpTemplateTypeInfo>(expressInfo)); }
/// <summary> /// 获取指定模板的参数集合 /// </summary> /// <param name="templateId">模板ID</param> /// <returns></returns> public IList <DevExpressTemplateParamsViewModel> GetExpressTemplateParamsList(string templateId) { var cc = new ConditionCollection() { new Condition("template_id", templateId) }; var expressTemplateParams = GetRepository <McpTemplateParamInfo>().ListModel(cc); return (ModelConvertHelper.ToConvertModelS <DevExpressTemplateParamsViewModel, McpTemplateParamInfo>( expressTemplateParams)); }
/// <summary> /// 获取指定快递商模板参数 /// </summary> /// <param name="expressId">快递商Id</param> /// <returns></returns> public IList <DevExpressTemplateViewModel> GetExpressTemplateList(string typeId) { var cc = new ConditionCollection() { new Condition("template_type_id", typeId), new Condition("status_code", 1) }; var expressTemplate = GetRepository <McpTemplateInfo>().ListModel(cc); return (ModelConvertHelper.ToConvertModelS <DevExpressTemplateViewModel, McpTemplateInfo>(expressTemplate)); }
/// <summary> /// 根据开发者Id获取应用列表 /// </summary> /// <returns>应用列表集合</returns> public IList <DevApplyViewModel> GetApplyModelList() { var developerId = SessionUtil.Current.Account; var cc = new ConditionCollection() { new Condition("developer_id", developerId) }; // ReSharper disable once JoinDeclarationAndInitializer IList <DevApplyViewModel> list; list = ModelConvertHelper.ToConvertModelS <DevApplyViewModel, McpApplicationInfo>(this.GetRepository <McpApplicationInfo>().ListModel(cc)); return(list); }