Browse Source

微信添加内容模板页面

master
[zhengchao] 9 years ago
parent
commit
fa97520c3b
8 changed files with 185 additions and 1 deletions
  1. +27
    -0
      B3WeChat.Web/B3WeChat.Web.csproj
  2. +35
    -0
      B3WeChat.Web/Pages/B3WeChat/ContentTemplate_/ContentTemplateEdit.cs
  3. +14
    -0
      B3WeChat.Web/Pages/B3WeChat/ContentTemplate_/ContentTemplateList.cs
  4. +43
    -0
      B3WeChat.Web/Pages/B3WeChat/ContentTemplate_/ContentTemplateList.xml
  5. +10
    -0
      B3WeChat/B3WeChat.csproj
  6. +20
    -0
      B3WeChat/BL/ContentTemplate_/ContentTemplateBL.cs
  7. +24
    -0
      B3WeChat/BO/ContentTemplate.cs
  8. +12
    -1
      WebFolder/config/Plugins/B3WeChat.plugin

+ 27
- 0
B3WeChat.Web/B3WeChat.Web.csproj View File

@ -31,6 +31,18 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="B3Frameworks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a04fa581c0f74d43, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\tsref\Debug\B3Frameworks.dll</HintPath>
</Reference>
<Reference Include="B3Frameworks.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a04fa581c0f74d43, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\tsref\Debug\B3Frameworks.Web.dll</HintPath>
</Reference>
<Reference Include="B3System, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a04fa581c0f74d43, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\tsref\Debug\B3System.dll</HintPath>
</Reference>
<Reference Include="Forks.EnterpriseServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=7254430f49d10aae, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\tsref\Debug\Forks.EnterpriseServices.dll</HintPath>
@ -79,6 +91,10 @@
<Reference Include="System.Xml">
<SpecificVersion>False</SpecificVersion>
</Reference>
<Reference Include="TSingSoft.WebControls2, Version=2.1.0.0, Culture=neutral, PublicKeyToken=a04fa581c0f74d43, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\tsref\Debug\TSingSoft.WebControls2.dll</HintPath>
</Reference>
<Reference Include="Wpf, Version=1.3.0.0, Culture=neutral, PublicKeyToken=a04fa581c0f74d43, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\tsref\Debug\Wpf.dll</HintPath>
@ -99,6 +115,12 @@
<Compile Include="..\..\..\version\Misc_version.cs">
<Link>Misc_version.cs</Link>
</Compile>
<Compile Include="Pages\B3WeChat\ContentTemplate_\ContentTemplateEdit.cs">
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Pages\B3WeChat\ContentTemplate_\ContentTemplateList.cs">
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Pages\WeChatReceive.cs" />
<Compile Include="Pages\WeChatLogin.cs" />
<Compile Include="PluginClass.cs" />
@ -111,6 +133,11 @@
<Private>False</Private>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Pages\B3WeChat\ContentTemplate_\ContentTemplateList.xml">
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.


+ 35
- 0
B3WeChat.Web/Pages/B3WeChat/ContentTemplate_/ContentTemplateEdit.cs View File

@ -0,0 +1,35 @@
using BWP.B3WeChat.BL;
using BWP.B3WeChat.BO;
using BWP.Web.CustomPageLayout;
using BWP.Web.Layout;
using BWP.Web.Utils;
using BWP.Web.WebControls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;
namespace BWP.Web.Pages.B3WeChat.ContentTemplate_
{
class ContentTemplateEdit : BaseInfoEditPage<ContentTemplate, IContentTemplateBL>
{
protected override void BuildBasePropertiesEditor(TitlePanel titlePanel, PageLayoutSection pageLayoutSection)
{
var layoutManager = new LayoutManager("", mDFInfo, mDFContainer);
layoutManager.Add("Text", InputCreator.CreateTextArea(160, 400));
var config = new AutoLayoutConfig();
layoutManager.Config = config;
config.Add("Name");
config.Add("Remark");
config.Add("Text").ColSpan = 8;
config.SetAllLabelLayoutOptionWidth(Unit.Pixel(60));
pageLayoutSection.ApplyLayout(layoutManager, config, mPageLayoutManager, mDFInfo);
titlePanel.Controls.Add(layoutManager.CreateLayout());
}
}
}

+ 14
- 0
B3WeChat.Web/Pages/B3WeChat/ContentTemplate_/ContentTemplateList.cs View File

@ -0,0 +1,14 @@
using BWP.B3WeChat.BL;
using BWP.B3WeChat.BO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BWP.Web.Pages.B3WeChat.ContentTemplate_
{
class ContentTemplateList : BaseInfoListPage<ContentTemplate, IContentTemplateBL>
{
}
}

+ 43
- 0
B3WeChat.Web/Pages/B3WeChat/ContentTemplate_/ContentTemplateList.xml View File

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8" ?>
<Select xmlns="urn:XDQuery">
<Columns>
<Field name="ID"/>
</Columns>
<From>
<DmoClass class="BWP.B3WeChat.BO.ContentTemplate, B3WeChat"/>
</From>
<Where>
<And>
<EQ>
<Field name="ID"/>
<QBE paramName="ID"/>
</EQ>
<Contains>
<Field name="Code"/>
<QBE paramName="Code"/>
</Contains>
<Or>
<Contains>
<Field name="Name"/>
<QBE paramName="Name"/>
</Contains>
<Contains>
<Field name="Spell"/>
<QBE paramName="Name"/>
</Contains>
</Or>
<EQ>
<Field name="Available"/>
<QBE paramName="Available"/>
</EQ>
<EQ>
<Field name="IsLocked"/>
<QBE paramName="IsLocked"/>
</EQ>
<Contains>
<Field name="Remark"/>
<QBE paramName="Remark"/>
</Contains>
</And>
</Where>
</Select>

+ 10
- 0
B3WeChat/B3WeChat.csproj View File

@ -31,6 +31,10 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="B3Frameworks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a04fa581c0f74d43, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\tsref\Debug\B3Frameworks.dll</HintPath>
</Reference>
<Reference Include="Forks.EnterpriseServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=7254430f49d10aae, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\tsref\Debug\Forks.EnterpriseServices.dll</HintPath>
@ -80,6 +84,10 @@
<Reference Include="System.Xml">
<SpecificVersion>False</SpecificVersion>
</Reference>
<Reference Include="TSingSoft.WebControls2, Version=2.1.0.0, Culture=neutral, PublicKeyToken=a04fa581c0f74d43, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\tsref\Debug\TSingSoft.WebControls2.dll</HintPath>
</Reference>
<Reference Include="Wpf, Version=1.3.0.0, Culture=neutral, PublicKeyToken=a04fa581c0f74d43, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\tsref\Debug\Wpf.dll</HintPath>
@ -97,9 +105,11 @@
</Compile>
<Compile Include="B3WeChatConfig.cs" />
<Compile Include="B3WeChatConsts.cs" />
<Compile Include="BL\ContentTemplate_\ContentTemplateBL.cs" />
<Compile Include="BL\IApproveMessageBL.cs" />
<Compile Include="BL\ICustomerUserBL.cs" />
<Compile Include="BO\ApproveMessage.cs" />
<Compile Include="BO\ContentTemplate.cs" />
<Compile Include="BO\NamedValueTemplate.cs" />
<Compile Include="BO\QRCodeScene.cs" />
<Compile Include="BO\CustomerUser.cs" />


+ 20
- 0
B3WeChat/BL/ContentTemplate_/ContentTemplateBL.cs View File

@ -0,0 +1,20 @@
using BWP.B3Frameworks.BL;
using BWP.B3WeChat.BO;
using Forks.EnterpriseServices.BusinessInterfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BWP.B3WeChat.BL
{
[BusinessInterface(typeof(ContentTemplateBL))]
public interface IContentTemplateBL : IBaseInfoBL<ContentTemplate>
{
}
public class ContentTemplateBL : BaseInfoBL<ContentTemplate>, IContentTemplateBL
{
}
}

+ 24
- 0
B3WeChat/BO/ContentTemplate.cs View File

@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Text.RegularExpressions;
using Forks.EnterpriseServices;
using Forks.EnterpriseServices.DataForm;
using Forks.EnterpriseServices.DomainObjects2;
using Forks.Utils;
using BWP.B3Frameworks.BO;
namespace BWP.B3WeChat.BO
{
[DFClass]
[Serializable]
[LogicName("内容模板")]
public class ContentTemplate : BaseInfo
{
[LogicName("内容")]
[DbColumn(DbType = SqlDbType.NText)]
public string Text { get; set; }
}
}

+ 12
- 1
WebFolder/config/Plugins/B3WeChat.plugin View File

@ -14,8 +14,19 @@
</Features>
<Profiles>
</Profiles>
<Security>
<Security>
<FunctionGroup name="内容模板" roleSchemas="default">
<Function index="0" name="访问" />
<Function index="1" name="新建" />
<Function index="2" name="编辑" />
<Function index="3" name="删除" />
<Function index="4" name="停用" />
<Function index="5" name="启用" />
<Function index="6" name="锁定" />
<Function index="7" name="解锁" />
</FunctionGroup>
</Security>
<Menus>
<Menu id="0001" name="/B3微信/内容模板" roles="B3WeChat.内容模板.访问" url="B3WeChat/ContentTemplate_/ContentTemplateList.aspx"/>
</Menus>
</Plugin>

Loading…
Cancel
Save