From 9f509856cb49f1e36ce370387b2ee7fc6810f414 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期一, 04 八月 2025 12:09:47 +0800 Subject: [PATCH] 公文管理打印排版修改 --- CY_ECommercePlatform/CY.Model/OA/OA_Document.cs | 18 +++++++++ CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentAdd.aspx.designer.cs | 51 +++++++++++++++---------- CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentDetail.aspx | 1 CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentAdd.aspx.cs | 4 ++ CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentDetail.aspx.cs | 9 ++++ CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentAdd.aspx | 9 ++++ CY_ECommercePlatform/CY.SQLDAL/OA/OA_DocumentDAL.cs | 9 +++- 7 files changed, 78 insertions(+), 23 deletions(-) diff --git a/CY_ECommercePlatform/CY.Model/OA/OA_Document.cs b/CY_ECommercePlatform/CY.Model/OA/OA_Document.cs index 90bafe7..ebf03e2 100644 --- a/CY_ECommercePlatform/CY.Model/OA/OA_Document.cs +++ b/CY_ECommercePlatform/CY.Model/OA/OA_Document.cs @@ -232,6 +232,17 @@ _dm_printnumber = value; } } + + /// <summary> + /// 鍗板埛鏁伴噺 + /// </summary> + public int? Konghangshu + { + get; + + set; + + } /// <summary> /// 鍏枃鐣彿 /// </summary> @@ -444,7 +455,14 @@ this.Jusequanxian = isChange ? MyConvert.ConvertToString(value) : Jusequanxian; theValue = this.Jusequanxian; } + else if ("Konghangshu".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 22) + { + this.Konghangshu = isChange ? MyConvert.ConvertToInt(value) : Konghangshu; + theValue = this.Konghangshu; + } + + 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 a83986b..7f58467 100644 --- a/CY_ECommercePlatform/CY.SQLDAL/OA/OA_DocumentDAL.cs +++ b/CY_ECommercePlatform/CY.SQLDAL/OA/OA_DocumentDAL.cs @@ -55,8 +55,9 @@ new SqlParameter("@DM_PrintTime", trueModel.DM_PrintTime) , new SqlParameter("@DM_PrintStatus", trueModel.DM_PrintStatus) , new SqlParameter("@LastUpdateTime", trueModel.LastUpdateTime) , - new SqlParameter("@Operator", trueModel.Operator) - }; + new SqlParameter("@Operator", trueModel.Operator) , + new SqlParameter("@Konghangshu", trueModel.Konghangshu.HasValue?trueModel.Konghangshu.Value:0) , + }; try { _dataBase.Query("sp_OA_Document_Insert", CommandType.StoredProcedure, sqlParms.ToArray<SqlParameter>()); @@ -101,7 +102,9 @@ new SqlParameter("@DM_PrintStatus", trueModel.DM_PrintStatus) , new SqlParameter("@LastUpdateTime", trueModel.LastUpdateTime) , new SqlParameter("@Operator", trueModel.Operator), - new SqlParameter("@Jusequanxian",string.IsNullOrEmpty(trueModel.Jusequanxian)?"":trueModel.Jusequanxian), + new SqlParameter("@Jusequanxian",string.IsNullOrEmpty(trueModel.Jusequanxian)?"":trueModel.Jusequanxian) , + + new SqlParameter("@Konghangshu", trueModel.Konghangshu.HasValue?trueModel.Konghangshu.Value:0) , }; try { diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentAdd.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentAdd.aspx index 6d0f11f..e4e4055 100644 --- a/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentAdd.aspx +++ b/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentAdd.aspx @@ -73,6 +73,15 @@ <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"> 涓婚璇嶏細 diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentAdd.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentAdd.aspx.cs index 337748d..709a43b 100644 --- a/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentAdd.aspx.cs +++ b/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentAdd.aspx.cs @@ -57,6 +57,7 @@ this.txtDM_DocumentType.Value = ""; this.txtDM_Number.Value = ""; this.txtDM_DocumentNumber.InnerHtml = ""; + this.txtKonghangshu.Value = ""; if (!string.IsNullOrEmpty(Request["keyid"])) { @@ -66,6 +67,7 @@ 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() : ""; @@ -107,6 +109,7 @@ 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; @@ -140,6 +143,7 @@ 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; diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentAdd.aspx.designer.cs b/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentAdd.aspx.designer.cs index 9ee321c..aae3801 100644 --- a/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentAdd.aspx.designer.cs +++ b/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentAdd.aspx.designer.cs @@ -2,16 +2,18 @@ // <鑷姩鐢熸垚> // 姝や唬鐮佺敱宸ュ叿鐢熸垚銆� // -// 瀵规鏂囦欢鐨勬洿鏀瑰彲鑳戒細瀵艰嚧涓嶆纭殑琛屼负锛屽苟涓斿鏋� -// 閲嶆柊鐢熸垚浠g爜锛岃繖浜涙洿鏀瑰皢浼氫涪澶便�� +// 瀵规鏂囦欢鐨勬洿鏀瑰彲鑳藉鑷翠笉姝g‘鐨勮涓猴紝濡傛灉 +// 閲嶆柊鐢熸垚浠g爜锛屽垯鎵�鍋氭洿鏀瑰皢涓㈠け銆� // </鑷姩鐢熸垚> //------------------------------------------------------------------------------ -namespace CY.WebForm.Pages.work { - - - public partial class OA_DocumentAdd { - +namespace CY.WebForm.Pages.work +{ + + + public partial class OA_DocumentAdd + { + /// <summary> /// Head1 鎺т欢銆� /// </summary> @@ -20,7 +22,7 @@ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲�� /// </remarks> protected global::System.Web.UI.HtmlControls.HtmlHead Head1; - + /// <summary> /// CMSHead1 鎺т欢銆� /// </summary> @@ -29,7 +31,7 @@ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲�� /// </remarks> protected global::CY.WebForm.Pages.common.CMSHead CMSHead1; - + /// <summary> /// form1 鎺т欢銆� /// </summary> @@ -38,7 +40,7 @@ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲�� /// </remarks> protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// <summary> /// txtDM_DocumentType 鎺т欢銆� /// </summary> @@ -47,7 +49,7 @@ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲�� /// </remarks> protected global::System.Web.UI.HtmlControls.HtmlSelect txtDM_DocumentType; - + /// <summary> /// txtDM_PostingId 鎺т欢銆� /// </summary> @@ -56,7 +58,7 @@ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲�� /// </remarks> protected global::System.Web.UI.WebControls.DropDownList txtDM_PostingId; - + /// <summary> /// txtDM_Number 鎺т欢銆� /// </summary> @@ -65,7 +67,7 @@ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲�� /// </remarks> protected global::System.Web.UI.HtmlControls.HtmlInputText txtDM_Number; - + /// <summary> /// txtDM_PostingFirmName 鎺т欢銆� /// </summary> @@ -74,7 +76,7 @@ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲�� /// </remarks> protected global::System.Web.UI.HtmlControls.HtmlGenericControl txtDM_PostingFirmName; - + /// <summary> /// txtDM_DocumentNumber 鎺т欢銆� /// </summary> @@ -83,7 +85,7 @@ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲�� /// </remarks> protected global::System.Web.UI.HtmlControls.HtmlGenericControl txtDM_DocumentNumber; - + /// <summary> /// txtDM_Title 鎺т欢銆� /// </summary> @@ -92,7 +94,7 @@ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲�� /// </remarks> protected global::System.Web.UI.HtmlControls.HtmlInputText txtDM_Title; - + /// <summary> /// txtDM_Content 鎺т欢銆� /// </summary> @@ -101,7 +103,16 @@ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛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> @@ -110,7 +121,7 @@ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲�� /// </remarks> protected global::System.Web.UI.HtmlControls.HtmlInputText txtDM_ThemeWords; - + /// <summary> /// txtDM_CCUnit 鎺т欢銆� /// </summary> @@ -119,7 +130,7 @@ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲�� /// </remarks> protected global::System.Web.UI.WebControls.TextBox txtDM_CCUnit; - + /// <summary> /// txtDM_PrintNumber 鎺т欢銆� /// </summary> @@ -128,7 +139,7 @@ /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲�� /// </remarks> protected global::System.Web.UI.HtmlControls.HtmlInputText txtDM_PrintNumber; - + /// <summary> /// btn_submit 鎺т欢銆� /// </summary> diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentDetail.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentDetail.aspx index d23208c..0125a38 100644 --- a/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentDetail.aspx +++ b/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentDetail.aspx @@ -126,6 +126,7 @@ <span id="spanDM_PromulgatedDate" runat="server"></span> </td> </tr> + <%=charu %> <tr id="tr1" runat = "server"> <td colspan="2" style="font-size: 16px;"> <span style="font-weight: bold; font-size: 18px; color: Black;">涓婚璇嶏細</span><span id="spanDM_ThemeWords" runat="server"></span> diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentDetail.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentDetail.aspx.cs index 9e2073a..6fb9a08 100644 --- a/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentDetail.aspx.cs +++ b/CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentDetail.aspx.cs @@ -18,6 +18,7 @@ public partial class OA_DocumentDetail : BasePage { OA_DocumentBLL bll_OA_DocumentBLL = null; + public string charu = ""; //鍒濆鍖� public OA_DocumentDetail() @@ -69,6 +70,14 @@ this.spanDM_CCUnit.InnerText = m_OA_Document.DM_CCUnit.ToString2(); } + if(m_OA_Document.Konghangshu.HasValue && m_OA_Document.Konghangshu.Value > 0) + { + for (int i = 0; i < m_OA_Document.Konghangshu.Value; i++) + { + charu += " <tr><td align=\"right\" colspan=\"2\" style=\"padding: 0px 0px 40px 0px; font-size: 16px;\"> </td> </tr>"; + } + } + } } } -- Gitblit v1.9.1