From a7711b47c02807531f04313ae829584310f37aba Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 28 十一月 2025 12:17:10 +0800
Subject: [PATCH] 你们明天在那个公文管理公文管理那个操作操作界面增加一个审核, 好点审核呢,实际上是修改这个只有我才有一个权限, 只是只有我一个人,因为现在来看他们。相当于说, 没经过我审核,他们整些你看嘛,发你妈一些公文, 像狗屎一样,格式都不对头,在这儿乱在这儿乱写啊, 必须就是我,我审核,我点审核,你相就是复制一个修改过嘛, 相当于就是。好,必须是我,我点了审核好后头我修改好了, 提交好了才能发布。只要我没在审核里头的话,好,这个就发布不了 。好怀疑着呢,怀疑怀疑着来修改,还是在修改里头整?
---
CY_ECommercePlatform/CY.BLL/OA/OA_DocumentBLL.cs | 4
CY_ECommercePlatform/CY.Model/OA/OA_Document.cs | 25 ++
CY_ECommercePlatform/CY.WebForm/CY.WebForm.csproj | 8
CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentShenpi.aspx.designer.cs | 152 +++++++++++++++
CY_ECommercePlatform/CY.IDAL/OA/IOA_DocumentDAL.cs | 2
CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentList.aspx | 33 ++
CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentShenpi.aspx | 118 +++++++++++
CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentList.aspx.designer.cs | 9
CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentShenpi.aspx.cs | 207 ++++++++++++++++++++
CY_ECommercePlatform/CY.SQLDAL/OA/OA_DocumentDAL.cs | 16 +
CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentList.aspx.cs | 2
11 files changed, 565 insertions(+), 11 deletions(-)
diff --git a/CY_ECommercePlatform/CY.BLL/OA/OA_DocumentBLL.cs b/CY_ECommercePlatform/CY.BLL/OA/OA_DocumentBLL.cs
index 31c0acf..8364ef1 100644
--- a/CY_ECommercePlatform/CY.BLL/OA/OA_DocumentBLL.cs
+++ b/CY_ECommercePlatform/CY.BLL/OA/OA_DocumentBLL.cs
@@ -67,9 +67,9 @@
/// </summary>
/// <param name="pagination"></param>
/// <returns></returns>
- public IEnumerable<Model.OA_Document> SelectModelPage(Infrastructure.Query.Pagination pagination, Guid _FirmId, DateTime? _BeginDM_PromulgatedDate, DateTime? _EndDM_PromulgatedDate, int? _DM_Status, int? _DM_PostingId, string _DM_PostingName, string _DM_PostingFirmName, string _DM_DocumentType, string _DM_DocumentNumber, string _DM_Title, string _DM_Content, string _DM_ThemeWords, string _DM_CCUnit, int? _DM_PrintNumber, int? _DM_Number, DateTime? _BeginDM_DelTime, DateTime? _EndDM_DelTime, DateTime? _BeginDM_PrintTime, DateTime? _EndDM_PrintTime, int? _DM_PrintStatus, DateTime? _BeginLastUpdateTime, DateTime? _EndLastUpdateTime, string _Operator)
+ public IEnumerable<Model.OA_Document> SelectModelPage(Infrastructure.Query.Pagination pagination, Guid _FirmId, DateTime? _BeginDM_PromulgatedDate, DateTime? _EndDM_PromulgatedDate, int? _DM_Status, int? _DM_PostingId, string _DM_PostingName, string _DM_PostingFirmName, string _DM_DocumentType, string _DM_DocumentNumber, string _DM_Title, string _DM_Content, string _DM_ThemeWords, string _DM_CCUnit, int? _DM_PrintNumber, int? _DM_Number, DateTime? _BeginDM_DelTime, DateTime? _EndDM_DelTime, DateTime? _BeginDM_PrintTime, DateTime? _EndDM_PrintTime, int? _DM_PrintStatus, DateTime? _BeginLastUpdateTime, DateTime? _EndLastUpdateTime, string _Operator, int? Shifoushenpi)
{
- return iOA_DocumentDAL.SelectModelPage(pagination, _FirmId, _BeginDM_PromulgatedDate, _EndDM_PromulgatedDate, _DM_Status, _DM_PostingId, _DM_PostingName, _DM_PostingFirmName, _DM_DocumentType, _DM_DocumentNumber, _DM_Title, _DM_Content, _DM_ThemeWords, _DM_CCUnit, _DM_PrintNumber, _DM_Number, _BeginDM_DelTime, _EndDM_DelTime, _BeginDM_PrintTime, _EndDM_PrintTime, _DM_PrintStatus, _BeginLastUpdateTime, _EndLastUpdateTime, _Operator);
+ return iOA_DocumentDAL.SelectModelPage(pagination, _FirmId, _BeginDM_PromulgatedDate, _EndDM_PromulgatedDate, _DM_Status, _DM_PostingId, _DM_PostingName, _DM_PostingFirmName, _DM_DocumentType, _DM_DocumentNumber, _DM_Title, _DM_Content, _DM_ThemeWords, _DM_CCUnit, _DM_PrintNumber, _DM_Number, _BeginDM_DelTime, _EndDM_DelTime, _BeginDM_PrintTime, _EndDM_PrintTime, _DM_PrintStatus, _BeginLastUpdateTime, _EndLastUpdateTime, _Operator, Shifoushenpi);
}
/// <summary>
diff --git a/CY_ECommercePlatform/CY.IDAL/OA/IOA_DocumentDAL.cs b/CY_ECommercePlatform/CY.IDAL/OA/IOA_DocumentDAL.cs
index a41ba33..06023b3 100644
--- a/CY_ECommercePlatform/CY.IDAL/OA/IOA_DocumentDAL.cs
+++ b/CY_ECommercePlatform/CY.IDAL/OA/IOA_DocumentDAL.cs
@@ -24,7 +24,7 @@
/// </summary>
/// <param name="pagination"></param>
/// <returns></returns>
- IEnumerable<Model.OA_Document> SelectModelPage(Infrastructure.Query.Pagination pagination, Guid _FirmId, DateTime? _BeginDM_PromulgatedDate, DateTime? _EndDM_PromulgatedDate, int? _DM_Status, int? _DM_PostingId, string _DM_PostingName, string _DM_PostingFirmName, string _DM_DocumentType, string _DM_DocumentNumber, string _DM_Title, string _DM_Content, string _DM_ThemeWords, string _DM_CCUnit, int? _DM_PrintNumber, int? _DM_Number, DateTime? _BeginDM_DelTime, DateTime? _EndDM_DelTime, DateTime? _BeginDM_PrintTime, DateTime? _EndDM_PrintTime, int? _DM_PrintStatus, DateTime? _BeginLastUpdateTime, DateTime? _EndLastUpdateTime, string _Operator);
+ IEnumerable<Model.OA_Document> SelectModelPage(Infrastructure.Query.Pagination pagination, Guid _FirmId, DateTime? _BeginDM_PromulgatedDate, DateTime? _EndDM_PromulgatedDate, int? _DM_Status, int? _DM_PostingId, string _DM_PostingName, string _DM_PostingFirmName, string _DM_DocumentType, string _DM_DocumentNumber, string _DM_Title, string _DM_Content, string _DM_ThemeWords, string _DM_CCUnit, int? _DM_PrintNumber, int? _DM_Number, DateTime? _BeginDM_DelTime, DateTime? _EndDM_DelTime, DateTime? _BeginDM_PrintTime, DateTime? _EndDM_PrintTime, int? _DM_PrintStatus, DateTime? _BeginLastUpdateTime, DateTime? _EndLastUpdateTime, string _Operator,int? Shifoushenpi);
/// <summary>
/// 鏍规嵁鍙戞枃閮ㄩ棬鑾峰彇鍒楄〃
diff --git a/CY_ECommercePlatform/CY.Model/OA/OA_Document.cs b/CY_ECommercePlatform/CY.Model/OA/OA_Document.cs
index ebf03e2..1cf176a 100644
--- a/CY_ECommercePlatform/CY.Model/OA/OA_Document.cs
+++ b/CY_ECommercePlatform/CY.Model/OA/OA_Document.cs
@@ -36,6 +36,23 @@
public string BF_IsGongwen {get;set;}
+
+ //1鏄�0鍚�
+ public int? Shifoushenpi { get; set; }
+
+
+ //1鏄�0鍚�
+ public string ShifoushenpiName { get {
+ if(Shifoushenpi.HasValue && Shifoushenpi.Value == 1)
+ {
+ return "鈭�";
+ }
+ else
+ {
+ return "脳";
+ }
+ } }
+
/// <summary>
/// 涓婚敭--鏍囪瘑ID
/// </summary>
@@ -460,9 +477,13 @@
this.Konghangshu = isChange ? MyConvert.ConvertToInt(value) : Konghangshu;
theValue = this.Konghangshu;
}
+ else if ("Shifoushenpi".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 23)
+ {
+ this.Shifoushenpi = isChange ? MyConvert.ConvertToInt(value) : Shifoushenpi;
+ theValue = this.Shifoushenpi;
+ }
+
-
-
return theValue;
}
#endregion Visiter
diff --git a/CY_ECommercePlatform/CY.SQLDAL/OA/OA_DocumentDAL.cs b/CY_ECommercePlatform/CY.SQLDAL/OA/OA_DocumentDAL.cs
index 7f58467..8f6e6fa 100644
--- a/CY_ECommercePlatform/CY.SQLDAL/OA/OA_DocumentDAL.cs
+++ b/CY_ECommercePlatform/CY.SQLDAL/OA/OA_DocumentDAL.cs
@@ -105,6 +105,7 @@
new SqlParameter("@Jusequanxian",string.IsNullOrEmpty(trueModel.Jusequanxian)?"":trueModel.Jusequanxian) ,
new SqlParameter("@Konghangshu", trueModel.Konghangshu.HasValue?trueModel.Konghangshu.Value:0) ,
+ new SqlParameter("@Shifoushenpi",trueModel.Shifoushenpi.HasValue?trueModel.Shifoushenpi.Value:0) ,
};
try
{
@@ -192,7 +193,7 @@
/// </summary>
/// <param name="pagination"></param>
/// <returns></returns>
- public IEnumerable<Model.OA_Document> SelectModelPage(Infrastructure.Query.Pagination pagination, Guid _FirmId, DateTime? _BeginDM_PromulgatedDate, DateTime? _EndDM_PromulgatedDate, int? _DM_Status, int? _DM_PostingId, string _DM_PostingName, string _DM_PostingFirmName, string _DM_DocumentType, string _DM_DocumentNumber, string _DM_Title, string _DM_Content, string _DM_ThemeWords, string _DM_CCUnit, int? _DM_PrintNumber, int? _DM_Number, DateTime? _BeginDM_DelTime, DateTime? _EndDM_DelTime, DateTime? _BeginDM_PrintTime, DateTime? _EndDM_PrintTime, int? _DM_PrintStatus, DateTime? _BeginLastUpdateTime, DateTime? _EndLastUpdateTime, string _Operator)
+ public IEnumerable<Model.OA_Document> SelectModelPage(Infrastructure.Query.Pagination pagination, Guid _FirmId, DateTime? _BeginDM_PromulgatedDate, DateTime? _EndDM_PromulgatedDate, int? _DM_Status, int? _DM_PostingId, string _DM_PostingName, string _DM_PostingFirmName, string _DM_DocumentType, string _DM_DocumentNumber, string _DM_Title, string _DM_Content, string _DM_ThemeWords, string _DM_CCUnit, int? _DM_PrintNumber, int? _DM_Number, DateTime? _BeginDM_DelTime, DateTime? _EndDM_DelTime, DateTime? _BeginDM_PrintTime, DateTime? _EndDM_PrintTime, int? _DM_PrintStatus, DateTime? _BeginLastUpdateTime, DateTime? _EndLastUpdateTime, string _Operator, int? Shifoushenpi)
{
try
{
@@ -210,6 +211,19 @@
if (_DM_Status.HasValue)
condition += " and DM_Status = '" + _DM_Status + "'";
+ if (Shifoushenpi.HasValue)
+ {
+ if(Shifoushenpi.Value == 1)
+ {
+ condition += " and Shifoushenpi = " + Shifoushenpi + "";
+ }
+ else
+ {
+ condition += " and ( Shifoushenpi is null or Shifoushenpi = " + Shifoushenpi + " )";
+ }
+ }
+
+
if (_DM_PostingId.HasValue)
condition += " and DM_PostingId = '" + _DM_PostingId + "'";
diff --git a/CY_ECommercePlatform/CY.WebForm/CY.WebForm.csproj b/CY_ECommercePlatform/CY.WebForm/CY.WebForm.csproj
index b8c4fb0..e790a21 100644
--- a/CY_ECommercePlatform/CY.WebForm/CY.WebForm.csproj
+++ b/CY_ECommercePlatform/CY.WebForm/CY.WebForm.csproj
@@ -2833,6 +2833,7 @@
<Content Include="Pages\work\MyBaoxiaoList.aspx" />
<Content Include="Pages\work\MyRequestList.aspx" />
<Content Include="Pages\work\Adm_tongxunluAdd.aspx" />
+ <Content Include="Pages\work\OA_DocumentShenpi.aspx" />
<Content Include="Pages\work\OA_DocumentAdd.aspx" />
<Content Include="Pages\work\OA_DocumentDetail.aspx" />
<Content Include="Pages\work\OA_DocumentDicAdd.aspx" />
@@ -9427,6 +9428,13 @@
<Compile Include="Pages\work\Adm_tongxunluAdd.aspx.designer.cs">
<DependentUpon>Adm_tongxunluAdd.aspx</DependentUpon>
</Compile>
+ <Compile Include="Pages\work\OA_DocumentShenpi.aspx.cs">
+ <DependentUpon>OA_DocumentShenpi.aspx</DependentUpon>
+ <SubType>ASPXCodeBehind</SubType>
+ </Compile>
+ <Compile Include="Pages\work\OA_DocumentShenpi.aspx.designer.cs">
+ <DependentUpon>OA_DocumentShenpi.aspx</DependentUpon>
+ </Compile>
<Compile Include="Pages\work\OA_DocumentAdd.aspx.cs">
<DependentUpon>OA_DocumentAdd.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentList.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentList.aspx
index 24926b0..b7049b1 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentList.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentList.aspx
@@ -26,6 +26,12 @@
function editModel(keyid) {
top.Dialog.open({ URL: "/Pages/work/OA_DocumentAdd.aspx?keyid=" + keyid, Title: "淇敼鍏枃绠$悊", Width: 850, Height: 600 });
}
+ //瀹℃壒
+ function ShenpiModel(keyid) {
+ top.Dialog.open({ URL: "/Pages/work/OA_DocumentShenpi.aspx?keyid=" + keyid, Title: "瀹℃壒鍏枃", Width: 850, Height: 600 });
+ }
+
+
//鍒犻櫎
function onDele(keyid) {
@@ -91,10 +97,6 @@
<option value="杩囨湡鍏枃">杩囨湡鍏枃</option>
</select>
</td>
- <td>
- </td>
- </tr>
- <tr>
<td class="ali03">
鍙戞枃閮ㄩ棬锛�
</td>
@@ -102,6 +104,10 @@
<select id="DM_PostingSector" runat="server" keepdefaultstyle="true">
</select>
</td>
+
+ </tr>
+ <tr>
+
<td class="ali03">
鍏枃鍙凤細
</td>
@@ -114,7 +120,17 @@
<td>
<input type="text" id="DM_Title" runat="server" class="w120px" />
</td>
+ <td class="ali03">
+ 瀹℃壒鐘舵�侊細
+ </td>
<td>
+ <select id="selShifoushenpi" runat="server" keepdefaultstyle="true">
+ <option selected="selected" value="">鍏ㄩ儴</option>
+ <option value="0">鏈鎵�</option>
+ <option value="1">宸插鎵�</option>
+ </select>
+ </td>
+ <td colspan="2">
<asp:Button ID="btn_Submit" Text="鏌ヨ" runat="server" OnClick="btn_Search_Click" />
</td>
</tr>
@@ -166,6 +182,9 @@
<th style="text-align: center">
鍙戞枃閮ㄩ棬
</th>
+ <th style="text-align: center">
+ 鏄惁瀹℃壒
+ </th>
<%-- <th style="text-align: center">
鎵撳嵃鐘舵��
</th>--%>
@@ -200,6 +219,9 @@
<td style="text-align: center">
<%#Eval("DM_PostingName")%>
</td>
+ <td style="text-align: center">
+ <%#Eval("ShifoushenpiName")%>
+ </td>
<%-- <td style="text-align: center">
<%#Eval("DM_PrintStatus").ToString() == "1" ? "鏈墦鍗�" : "宸叉墦鍗�"%>
</td>--%>
@@ -209,6 +231,9 @@
<span menu_member_case_id="case_Juesequanxian" menu_member_case_name="鏌ョ湅瑙掕壊鏉冮檺" <%#Eval("BF_IsGongwen") %> onclick="Juesequanxian('<%#Eval("Keyid")%>')">鏌ョ湅瑙掕壊鏉冮檺</span>
+ <span menu_member_case_id="case_OnShenpi" menu_member_case_name="瀹℃壒" <%#Eval("Shifoushenpi")!=null&& Eval("Shifoushenpi").ToString()=="1"?"":"onclick=\"ShenpiModel('"+Eval("Keyid")+"')\""%> > <%#Eval("Shifoushenpi")!=null&& Eval("Shifoushenpi").ToString()=="1"?"鈭�":"瀹℃壒"%> </span>
+
+
</td>
</tr>
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentList.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentList.aspx.cs
index 80e4bdc..c88d33f 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentList.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentList.aspx.cs
@@ -84,7 +84,7 @@
Pagination pa = new Pagination();
pa.PageSize = UCPager1.AspNetPager.PageSize;
pa.PageIndex = UCPager1.AspNetPager.CurrentPageIndex;
- var oA_Documents = bll_OA_DocumentBLL.SelectModelPage(pa, CurrentUser.MemberId, this.txtDM_PromulgatedDateStart.Value.ToDateTime2(), this.txtDM_PromulgatedDateEnd.Value.ToDateTime2(), this.DM_Status.Value.ToInt32(), this.DM_PostingSector.Value.ToInt32(), "", "", this.DM_DocumentType.Value, this.DM_DocumentNumber.Value, this.DM_Title.Value, "", "", "", null, null, null, null, null, null, null, null, null, "");
+ var oA_Documents = bll_OA_DocumentBLL.SelectModelPage(pa, CurrentUser.MemberId, this.txtDM_PromulgatedDateStart.Value.ToDateTime2(), this.txtDM_PromulgatedDateEnd.Value.ToDateTime2(), this.DM_Status.Value.ToInt32(), this.DM_PostingSector.Value.ToInt32(), "", "", this.DM_DocumentType.Value, this.DM_DocumentNumber.Value, this.DM_Title.Value, "", "", "", null, null, null, null, null, null, null, null, null, "",this.selShifoushenpi.Value.ToInt32());
var oA_Staff = bll_OA_StaffBLL.GetModelByKeyid(CurrentUser.StaffId);
foreach (var oA_Document in oA_Documents)
{
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentList.aspx.designer.cs b/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentList.aspx.designer.cs
index 7f25d4c..696816f 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentList.aspx.designer.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentList.aspx.designer.cs
@@ -105,6 +105,15 @@
protected global::System.Web.UI.HtmlControls.HtmlInputText DM_Title;
/// <summary>
+ /// selShifoushenpi 鎺т欢銆�
+ /// </summary>
+ /// <remarks>
+ /// 鑷姩鐢熸垚鐨勫瓧娈点��
+ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲��
+ /// </remarks>
+ protected global::System.Web.UI.HtmlControls.HtmlSelect selShifoushenpi;
+
+ /// <summary>
/// btn_Submit 鎺т欢銆�
/// </summary>
/// <remarks>
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentShenpi.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentShenpi.aspx
new file mode 100644
index 0000000..0ca552f
--- /dev/null
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentShenpi.aspx
@@ -0,0 +1,118 @@
+锘�<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OA_DocumentShenpi.aspx.cs" Inherits="CY.WebForm.Pages.work.OA_DocumentShenpi" %>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head id="Head1" runat="server">
+ <title>鏂板/淇敼鍏枃绠$悊</title>
+ <uc:CMSHead ID="CMSHead1" runat="server" />
+ <script type="text/javascript">
+ KindEditor.ready(function (K) {
+ window.EditorObject = K.create('textarea[ID="txtDM_Content"]', {
+ resizeType: 1,
+ allowPreviewEmoticons: false,
+ allowImageUpload: true,
+ uploadJson: '/Pages/common/CommonAjax.aspx?dateType=editerUploadImage',
+ fileManagerJson: '/Pages/common/CommonAjax.aspx?dateType=editerProcessRequest',
+ allowFileManager: true,
+ themeType: 'simple'
+ });
+ });
+ </script>
+</head>
+<body>
+ <%--<textarea id="txtExaminedRecore" runat="server" style="width: 370px; height: 50px;" class=""></textarea>--%>
+ <form id="form1" class="form2" runat="server">
+ <div>
+ <table class="tableStyle" style="margin: 10px auto;" cellpadding="0" cellspacing="0">
+ <tr>
+ <td class="ali03 w120px">
+ 鍏枃绫诲埆锛�
+ </td>
+ <td>
+ <select id="txtDM_DocumentType" runat="server" keepdefaultstyle="true" class="w120px">
+ <option value="瑙勫畾">瑙勫畾</option>
+ <option value="閫氱煡">閫氱煡</option>
+ <option value="鍏嚱">鍏嚱</option>
+ </select>
+ </td>
+ <td class="ali03 w100px">
+ 鍙戞枃閮ㄩ棬锛�
+ </td>
+ <td>
+ <asp:DropDownList ID="txtDM_PostingId" runat="server" keepDefaultStyle="true" AutoPostBack="true" OnSelectedIndexChanged="ChangeDM_PostingId" CssClass="w120px Sreq" msg="璇烽�夋嫨鍙戞枃閮ㄩ棬">
+ </asp:DropDownList> 鐣彿<input id="txtDM_Number" type="text" class="w50px req int" min="" max="999" runat="server" maxlength="5" readonly="readonly" />
+ </td>
+ </tr>
+ <tr>
+ <td class="ali03">
+ 鍏枃钀芥鍚嶇О锛�
+ </td>
+ <td>
+ <span id="txtDM_PostingFirmName" runat="server"></span>
+ </td>
+ <td class="ali03">
+ 鍏枃鍙凤細
+ </td>
+ <td>
+ <span id="txtDM_DocumentNumber" runat="server"></span>
+ </td>
+ </tr>
+ <tr>
+ <td class="ali03">
+ 鍏枃鍚嶇О锛�
+ </td>
+ <td colspan="3">
+ <input id="txtDM_Title" type="text" class="w700px req" runat="server" maxlength="50" msg="璇峰~鍐欏叕鏂囧悕绉�"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="ali03" valign="top">
+ 鍏枃鍐呭锛�
+ </td>
+ <td colspan="3">
+ <asp:TextBox ID="txtDM_Content" TextMode="MultiLine" runat="server" Width="700px" Height="310px" MaxLength="2000"></asp:TextBox>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="ali03">
+ 绌鸿鏁伴噺锛�
+ </td>
+ <td colspan="3">
+ <input id="txtKonghangshu" type="text" class="int w100px" min="0" value="0" runat="server" msg="璇峰~鍐欏ぇ浜�0鐨勬暣鏁�" />
+ </td>
+ </tr>
+ <tr>
+ <td class="ali03">
+ 涓婚璇嶏細
+ </td>
+ <td colspan="3">
+ <input id="txtDM_ThemeWords" type="text" class="w700px" runat="server" maxlength="20" />
+ </td>
+ </tr>
+ <tr>
+ <td class="ali03" valign="top">
+ 鎶勯�佸崟浣嶏細
+ </td>
+ <td colspan="3">
+ <asp:TextBox ID="txtDM_CCUnit" TextMode="MultiLine" runat="server" Width="690px" Height="60px" MaxLength="300"></asp:TextBox>
+ </td>
+ </tr>
+ <tr>
+ <td class="ali03">
+ 鍗板埛鏁伴噺锛�
+ </td>
+ <td colspan="3">
+ <input id="txtDM_PrintNumber" type="text" class="req int w100px" min="0" value="0" runat="server" msg="璇峰~鍐欏ぇ浜�0鐨勬暣鏁�" />
+ </td>
+ </tr>
+ <tr>
+ <td colspan="4" style="text-align: center;">
+ <asp:Button ID="btn_submit" runat="server" OnClick="btn_submit_form" Text="瀹℃壒" />
+ </td>
+ </tr>
+ </table>
+ </div>
+ </form>
+</body>
+</html>
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentShenpi.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentShenpi.aspx.cs
new file mode 100644
index 0000000..e58145c
--- /dev/null
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentShenpi.aspx.cs
@@ -0,0 +1,207 @@
+锘縰sing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Data;
+using System.Data.SqlClient;
+using CY.Model;
+using CY.BLL;
+using CY.Infrastructure.Common;
+using CY.Infrastructure.Query;
+
+namespace CY.WebForm.Pages.work
+{
+ //鍚磋緣
+ //鏂板/淇敼鍏枃绠$悊
+ public partial class OA_DocumentShenpi : BasePage
+ {
+ OA_DocumentBLL bll_OA_DocumentBLL = null;
+ OA_DocumentDicBLL bll_OA_DocumentDicBLL = null;
+ //鍒濆鍖�
+ public OA_DocumentShenpi()
+ {
+ bll_OA_DocumentBLL = new OA_DocumentBLL();
+ bll_OA_DocumentDicBLL = new OA_DocumentDicBLL();
+ }
+
+ //椤甸潰鍔犺浇
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Pagination pa = new Pagination();
+ pa.PageSize = 500;
+ pa.PageIndex = 1;
+ this.txtDM_PostingId.DataSource = bll_OA_DocumentDicBLL.SelectModelPage(pa, CurrentUser.MemberId, null, null, null, null, null);
+ this.txtDM_PostingId.DataTextField = "ParType";
+ this.txtDM_PostingId.DataValueField = "Keyid";
+ this.txtDM_PostingId.DataBind();
+ this.txtDM_PostingId.Items.Insert(0, new ListItem("璇烽�夋嫨", ""));
+
+ InitData();
+ }
+ }
+
+ //鏁版嵁鍔犺浇
+ public void InitData()
+ {
+ this.txtDM_Title.Value = "";
+ this.txtDM_Content.Text = "";
+ this.txtDM_ThemeWords.Value = "";
+ this.txtDM_CCUnit.Text = "";
+ this.txtDM_PrintNumber.Value = "";
+ this.txtDM_PostingId.SelectedValue = "";
+ this.txtDM_PostingFirmName.InnerHtml = "";
+ this.txtDM_DocumentType.Value = "";
+ this.txtDM_Number.Value = "";
+ this.txtDM_DocumentNumber.InnerHtml = "";
+ this.txtKonghangshu.Value = "";
+
+ if (!string.IsNullOrEmpty(Request["keyid"]))
+ {
+ OA_Document m_OA_Document = bll_OA_DocumentBLL.GetModelByKeyid(Request["keyid"].ToInt32());
+ if (m_OA_Document != null)
+ {
+ this.txtDM_Title.Value = m_OA_Document.DM_Title.ToString2(); ;
+ this.txtDM_Content.Text = m_OA_Document.DM_Content;
+ this.txtDM_ThemeWords.Value = m_OA_Document.DM_ThemeWords;
+ this.txtKonghangshu.Value = m_OA_Document.Konghangshu.HasValue? m_OA_Document.Konghangshu.Value.ToString() : "";
+ this.txtDM_CCUnit.Text = m_OA_Document.DM_CCUnit;
+ this.txtDM_PrintNumber.Value = m_OA_Document.DM_PrintNumber.HasValue ? m_OA_Document.DM_PrintNumber.Value.ToString() : "";
+ this.txtDM_PostingId.SelectedValue = m_OA_Document.DM_PostingId.HasValue ? m_OA_Document.DM_PostingId.Value.ToString() : "";
+ OA_DocumentDic m_OA_DocumentDic = bll_OA_DocumentDicBLL.GetModelByKeyid(this.txtDM_PostingId.SelectedValue.ToInt32());
+ this.txtDM_PostingFirmName.InnerHtml = m_OA_DocumentDic.ParName;
+ this.txtDM_DocumentType.Value = m_OA_Document.DM_DocumentType;
+ this.txtDM_Number.Value = m_OA_Document.DM_Number.HasValue ? m_OA_Document.DM_Number.Value.ToString() : "";
+ this.txtDM_DocumentNumber.InnerHtml = m_OA_Document.DM_DocumentNumber;
+ }
+ }
+
+ }
+
+ //琛ㄥ崟鎻愪氦
+ protected void btn_submit_form(object sender, EventArgs e)
+ {
+ try
+ {
+ DateTime nowTime = DateTime.Now;
+ OA_Document m_OA_Document = new OA_Document();
+
+ if (!string.IsNullOrEmpty(Request["keyid"]))
+ {
+ m_OA_Document = bll_OA_DocumentBLL.GetModelByKeyid(Request["keyid"].ToInt32());
+ m_OA_Document.FirmId = CurrentUser.MemberId;
+ m_OA_Document.DM_PromulgatedDate = nowTime;
+ m_OA_Document.DM_DelTime = nowTime;
+ m_OA_Document.DM_PrintTime = nowTime;
+ m_OA_Document.DM_PrintStatus = 1;
+ m_OA_Document.DM_Status = 1;
+
+ OA_DocumentDic m_OA_DocumentDic = bll_OA_DocumentDicBLL.GetModelByKeyid(this.txtDM_PostingId.SelectedValue.ToInt32());
+ m_OA_Document.DM_PostingId = this.txtDM_PostingId.SelectedValue.ToInt32();
+ m_OA_Document.DM_PostingName = m_OA_DocumentDic.ParType;
+ m_OA_Document.DM_PostingFirmName = m_OA_DocumentDic.ParName;
+ m_OA_Document.DM_DocumentType = this.txtDM_DocumentType.Value.ToString2();
+ m_OA_Document.DM_Number = this.txtDM_Number.Value.ToInt32();
+ //m_OA_Document.DM_DocumentNumber = m_OA_DocumentDic.ParType + "(" + DateTime.Now.Year.ToString2() + ")" + "绗� " + this.txtDM_Number.Value.ToInt32().Value.ToString("000") + " 鍙�";
+ m_OA_Document.DM_Title = this.txtDM_Title.Value.ToString2();
+ m_OA_Document.DM_Content = this.txtDM_Content.Text.ToString2();
+ m_OA_Document.DM_ThemeWords = this.txtDM_ThemeWords.Value.ToString2();
+ m_OA_Document.Konghangshu = this.txtKonghangshu.Value.ToInt32();
+ m_OA_Document.DM_CCUnit = this.txtDM_CCUnit.Text.ToString2();
+ m_OA_Document.DM_PrintNumber = this.txtDM_PrintNumber.Value.ToInt32();
+ m_OA_Document.LastUpdateTime = nowTime;
+ m_OA_Document.Operator = CurrentUser.ShortName;
+ m_OA_Document.Shifoushenpi = 1;
+
+ if (bll_OA_DocumentBLL.UpdateModel(m_OA_Document))
+ {
+ JavaScript.MessageBox("淇敼鎴愬姛", this, true, true);
+ //InitData();
+ }
+ else
+ JavaScript.MessageBox("淇敼澶辫触", this);
+ }
+ else
+ {
+ m_OA_Document.FirmId = CurrentUser.MemberId;
+ m_OA_Document.DM_PromulgatedDate = nowTime;
+ m_OA_Document.DM_DelTime = nowTime;
+ m_OA_Document.DM_PrintTime = nowTime;
+ m_OA_Document.DM_PrintStatus = 1;
+ m_OA_Document.DM_Status = 1;
+
+ OA_DocumentDic m_OA_DocumentDic = bll_OA_DocumentDicBLL.GetModelByKeyid(this.txtDM_PostingId.SelectedValue.ToInt32());
+ m_OA_Document.DM_PostingId = this.txtDM_PostingId.SelectedValue.ToInt32();
+ m_OA_Document.DM_PostingName = m_OA_DocumentDic.ParType;
+ m_OA_Document.DM_PostingFirmName = m_OA_DocumentDic.ParName;
+ m_OA_Document.DM_DocumentType = this.txtDM_DocumentType.Value.ToString2();
+ m_OA_Document.DM_Number = this.txtDM_Number.Value.ToInt32();
+ m_OA_Document.DM_DocumentNumber = m_OA_DocumentDic.ParType + "(" + DateTime.Now.Year.ToString2() + ")" + "绗� " + this.txtDM_Number.Value.ToInt32().Value.ToString("000") + " 鍙�";
+ m_OA_Document.DM_Title = this.txtDM_Title.Value.ToString2();
+ m_OA_Document.DM_Content = this.txtDM_Content.Text.ToString2();
+ m_OA_Document.DM_ThemeWords = this.txtDM_ThemeWords.Value.ToString2();
+ m_OA_Document.Konghangshu = this.txtKonghangshu.Value.ToInt32();
+ m_OA_Document.DM_CCUnit = this.txtDM_CCUnit.Text.ToString2();
+ m_OA_Document.DM_PrintNumber = this.txtDM_PrintNumber.Value.ToInt32();
+ m_OA_Document.LastUpdateTime = nowTime;
+ m_OA_Document.Operator = CurrentUser.ShortName;
+
+
+ if (bll_OA_DocumentBLL.InsertModel(m_OA_Document))
+ {
+ JavaScript.MessageBox("鏂板鎴愬姛", this, false, true);
+ InitData();
+ }
+ else
+ JavaScript.MessageBox("鏂板澶辫触", this);
+ }
+
+
+ }
+ catch (Exception ex)
+ {
+ PAGEHandleException(ex);
+ JavaScript.MessageBox("鎿嶄綔澶辫触", this);
+ }
+ }
+
+ //鍙戞枃閮ㄩ棬鍒囨崲
+ protected void ChangeDM_PostingId(object sender, EventArgs e)
+ {
+ if (this.txtDM_PostingId.SelectedValue.ToInt32() > 0)
+ {
+ OA_DocumentDic m_OA_DocumentDic = bll_OA_DocumentDicBLL.GetModelByKeyid(this.txtDM_PostingId.SelectedValue.ToInt32());
+ this.txtDM_PostingFirmName.InnerText = m_OA_DocumentDic.ParName;
+
+ string outnumber = string.Empty;
+ int No = 0;
+ DateTime? Date1 = (DateTime.Now.Year.ToString() + "-1-1").ToDateTime2();
+ DateTime? Date2 = ((DateTime.Now.Year + 1).ToString() + "-1-1").ToDateTime2();
+ List<OA_Document> m_OA_DocumentList = bll_OA_DocumentBLL.SelectModelListByPostId(CurrentUser.MemberId, Date1, Date2, this.txtDM_PostingId.SelectedValue.ToInt32()) as List<OA_Document>;
+ if (m_OA_DocumentList.Count > 0)
+ {
+ int? a = m_OA_DocumentList[0].DM_Number + 1;
+ No = a.Value;
+ }
+ else
+ {
+ No = 1;
+ }
+ outnumber += m_OA_DocumentDic.ParType + "(" + DateTime.Now.Year.ToString2() + ")" + "绗� " + No.ToString("000") + " 鍙�";
+ this.txtDM_DocumentNumber.InnerText = outnumber;
+ this.txtDM_Number.Value = No.ToString();
+ this.txtDM_Number.Attributes.Add("min", No.ToString());
+ }
+ else
+ {
+ this.txtDM_PostingFirmName.InnerText = "";
+ this.txtDM_DocumentNumber.InnerText = "";
+ this.txtDM_Number.Value = "1";
+ this.txtDM_Number.Attributes.Add("min", "0");
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentShenpi.aspx.designer.cs b/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentShenpi.aspx.designer.cs
new file mode 100644
index 0000000..a629c4b
--- /dev/null
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentShenpi.aspx.designer.cs
@@ -0,0 +1,152 @@
+锘�//------------------------------------------------------------------------------
+// <鑷姩鐢熸垚>
+// 姝や唬鐮佺敱宸ュ叿鐢熸垚銆�
+//
+// 瀵规鏂囦欢鐨勬洿鏀瑰彲鑳藉鑷翠笉姝g‘鐨勮涓猴紝濡傛灉
+// 閲嶆柊鐢熸垚浠g爜锛屽垯鎵�鍋氭洿鏀瑰皢涓㈠け銆�
+// </鑷姩鐢熸垚>
+//------------------------------------------------------------------------------
+
+namespace CY.WebForm.Pages.work
+{
+
+
+ public partial class OA_DocumentShenpi
+ {
+
+ /// <summary>
+ /// Head1 鎺т欢銆�
+ /// </summary>
+ /// <remarks>
+ /// 鑷姩鐢熸垚鐨勫瓧娈点��
+ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲��
+ /// </remarks>
+ protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
+
+ /// <summary>
+ /// CMSHead1 鎺т欢銆�
+ /// </summary>
+ /// <remarks>
+ /// 鑷姩鐢熸垚鐨勫瓧娈点��
+ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲��
+ /// </remarks>
+ protected global::CY.WebForm.Pages.common.CMSHead CMSHead1;
+
+ /// <summary>
+ /// form1 鎺т欢銆�
+ /// </summary>
+ /// <remarks>
+ /// 鑷姩鐢熸垚鐨勫瓧娈点��
+ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲��
+ /// </remarks>
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ /// <summary>
+ /// txtDM_DocumentType 鎺т欢銆�
+ /// </summary>
+ /// <remarks>
+ /// 鑷姩鐢熸垚鐨勫瓧娈点��
+ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲��
+ /// </remarks>
+ protected global::System.Web.UI.HtmlControls.HtmlSelect txtDM_DocumentType;
+
+ /// <summary>
+ /// txtDM_PostingId 鎺т欢銆�
+ /// </summary>
+ /// <remarks>
+ /// 鑷姩鐢熸垚鐨勫瓧娈点��
+ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲��
+ /// </remarks>
+ protected global::System.Web.UI.WebControls.DropDownList txtDM_PostingId;
+
+ /// <summary>
+ /// txtDM_Number 鎺т欢銆�
+ /// </summary>
+ /// <remarks>
+ /// 鑷姩鐢熸垚鐨勫瓧娈点��
+ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲��
+ /// </remarks>
+ protected global::System.Web.UI.HtmlControls.HtmlInputText txtDM_Number;
+
+ /// <summary>
+ /// txtDM_PostingFirmName 鎺т欢銆�
+ /// </summary>
+ /// <remarks>
+ /// 鑷姩鐢熸垚鐨勫瓧娈点��
+ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲��
+ /// </remarks>
+ protected global::System.Web.UI.HtmlControls.HtmlGenericControl txtDM_PostingFirmName;
+
+ /// <summary>
+ /// txtDM_DocumentNumber 鎺т欢銆�
+ /// </summary>
+ /// <remarks>
+ /// 鑷姩鐢熸垚鐨勫瓧娈点��
+ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲��
+ /// </remarks>
+ protected global::System.Web.UI.HtmlControls.HtmlGenericControl txtDM_DocumentNumber;
+
+ /// <summary>
+ /// txtDM_Title 鎺т欢銆�
+ /// </summary>
+ /// <remarks>
+ /// 鑷姩鐢熸垚鐨勫瓧娈点��
+ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲��
+ /// </remarks>
+ protected global::System.Web.UI.HtmlControls.HtmlInputText txtDM_Title;
+
+ /// <summary>
+ /// txtDM_Content 鎺т欢銆�
+ /// </summary>
+ /// <remarks>
+ /// 鑷姩鐢熸垚鐨勫瓧娈点��
+ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲��
+ /// </remarks>
+ protected global::System.Web.UI.WebControls.TextBox txtDM_Content;
+
+ /// <summary>
+ /// txtKonghangshu 鎺т欢銆�
+ /// </summary>
+ /// <remarks>
+ /// 鑷姩鐢熸垚鐨勫瓧娈点��
+ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲��
+ /// </remarks>
+ protected global::System.Web.UI.HtmlControls.HtmlInputText txtKonghangshu;
+
+ /// <summary>
+ /// txtDM_ThemeWords 鎺т欢銆�
+ /// </summary>
+ /// <remarks>
+ /// 鑷姩鐢熸垚鐨勫瓧娈点��
+ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲��
+ /// </remarks>
+ protected global::System.Web.UI.HtmlControls.HtmlInputText txtDM_ThemeWords;
+
+ /// <summary>
+ /// txtDM_CCUnit 鎺т欢銆�
+ /// </summary>
+ /// <remarks>
+ /// 鑷姩鐢熸垚鐨勫瓧娈点��
+ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲��
+ /// </remarks>
+ protected global::System.Web.UI.WebControls.TextBox txtDM_CCUnit;
+
+ /// <summary>
+ /// txtDM_PrintNumber 鎺т欢銆�
+ /// </summary>
+ /// <remarks>
+ /// 鑷姩鐢熸垚鐨勫瓧娈点��
+ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲��
+ /// </remarks>
+ protected global::System.Web.UI.HtmlControls.HtmlInputText txtDM_PrintNumber;
+
+ /// <summary>
+ /// btn_submit 鎺т欢銆�
+ /// </summary>
+ /// <remarks>
+ /// 鑷姩鐢熸垚鐨勫瓧娈点��
+ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲��
+ /// </remarks>
+ protected global::System.Web.UI.WebControls.Button btn_submit;
+ }
+}
--
Gitblit v1.9.1