username@email.com
4 天以前 9f509856cb49f1e36ce370387b2ee7fc6810f414
公文管理打印排版修改
7个文件已修改
101 ■■■■ 已修改文件
CY_ECommercePlatform/CY.Model/OA/OA_Document.cs 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.SQLDAL/OA/OA_DocumentDAL.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentAdd.aspx 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentAdd.aspx.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentAdd.aspx.designer.cs 51 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentDetail.aspx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentDetail.aspx.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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
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
            {
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">
                    主题词:
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;
CY_ECommercePlatform/CY.WebForm/Pages/work/OA_DocumentAdd.aspx.designer.cs
@@ -2,16 +2,18 @@
// <自动生成>
//     此代码由工具生成。
//
//     对此文件的更改可能会导致不正确的行为,并且如果
//     重新生成代码,这些更改将会丢失。
//     对此文件的更改可能导致不正确的行为,如果
//     重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
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 @@
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
        /// <summary>
        /// CMSHead1 控件。
        /// </summary>
@@ -29,7 +31,7 @@
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::CY.WebForm.Pages.common.CMSHead CMSHead1;
        /// <summary>
        /// form1 控件。
        /// </summary>
@@ -38,7 +40,7 @@
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlForm form1;
        /// <summary>
        /// txtDM_DocumentType 控件。
        /// </summary>
@@ -47,7 +49,7 @@
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlSelect txtDM_DocumentType;
        /// <summary>
        /// txtDM_PostingId 控件。
        /// </summary>
@@ -56,7 +58,7 @@
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.WebControls.DropDownList txtDM_PostingId;
        /// <summary>
        /// txtDM_Number 控件。
        /// </summary>
@@ -65,7 +67,7 @@
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlInputText txtDM_Number;
        /// <summary>
        /// txtDM_PostingFirmName 控件。
        /// </summary>
@@ -74,7 +76,7 @@
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlGenericControl txtDM_PostingFirmName;
        /// <summary>
        /// txtDM_DocumentNumber 控件。
        /// </summary>
@@ -83,7 +85,7 @@
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlGenericControl txtDM_DocumentNumber;
        /// <summary>
        /// txtDM_Title 控件。
        /// </summary>
@@ -92,7 +94,7 @@
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlInputText txtDM_Title;
        /// <summary>
        /// txtDM_Content 控件。
        /// </summary>
@@ -101,7 +103,16 @@
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.WebControls.TextBox txtDM_Content;
        /// <summary>
        /// txtKonghangshu 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlInputText txtKonghangshu;
        /// <summary>
        /// txtDM_ThemeWords 控件。
        /// </summary>
@@ -110,7 +121,7 @@
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlInputText txtDM_ThemeWords;
        /// <summary>
        /// txtDM_CCUnit 控件。
        /// </summary>
@@ -119,7 +130,7 @@
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.WebControls.TextBox txtDM_CCUnit;
        /// <summary>
        /// txtDM_PrintNumber 控件。
        /// </summary>
@@ -128,7 +139,7 @@
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlInputText txtDM_PrintNumber;
        /// <summary>
        /// btn_submit 控件。
        /// </summary>
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>
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;\"> &nbsp; </td> </tr>";
                    }
                }
            }
        }
    }