你们明天在那个公文管理公文管理那个操作操作界面增加一个审核,
好点审核呢,实际上是修改这个只有我才有一个权限,
只是只有我一个人,因为现在来看他们。相当于说,
没经过我审核,他们整些你看嘛,发你妈一些公文,
像狗屎一样,格式都不对头,在这儿乱在这儿乱写啊,
必须就是我,我审核,我点审核,你相就是复制一个修改过嘛,
相当于就是。好,必须是我,我点了审核好后头我修改好了,
提交好了才能发布。只要我没在审核里头的话,好,这个就发布不了
。好怀疑着呢,怀疑怀疑着来修改,还是在修改里头整?
好怀疑着呢,还是在修改里头。我修改就现在,
我是先修改后头,我点一个,我在修改里头看查看里头看好,
我点个审核才能发布。就说没有,没有发布的就是显示审核两个字。
我审核了就打勾。好,前面还是查询项,还增加一个已审核、
未审核全部嘛。嗯,默认肯定默认就是未审核的。
| | |
| | | /// </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> |
| | |
| | | /// </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> |
| | | /// 根据发文部门获取列表 |
| | |
| | | |
| | | 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> |
| | |
| | | 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 |
| | |
| | | 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 |
| | | { |
| | |
| | | /// </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 |
| | | { |
| | |
| | | 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 + "'"; |
| | | |
| | |
| | | <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" /> |
| | |
| | | <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> |
| | |
| | | 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) { |
| | |
| | | <option value="过期公文">过期公文</option> |
| | | </select> |
| | | </td> |
| | | <td> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03"> |
| | | 发文部门: |
| | | </td> |
| | |
| | | <select id="DM_PostingSector" runat="server" keepdefaultstyle="true"> |
| | | </select> |
| | | </td> |
| | | |
| | | </tr> |
| | | <tr> |
| | | |
| | | <td class="ali03"> |
| | | 公文号: |
| | | </td> |
| | |
| | | <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> |
| | |
| | | <th style="text-align: center"> |
| | | 发文部门 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | 是否审批 |
| | | </th> |
| | | <%-- <th style="text-align: center"> |
| | | 打印状态 |
| | | </th>--%> |
| | |
| | | <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>--%> |
| | |
| | | <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> |
| | |
| | | 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) |
| | | { |
| | |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText DM_Title; |
| | | |
| | | /// <summary> |
| | | /// selShifoushenpi 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selShifoushenpi; |
| | | |
| | | /// <summary> |
| | | /// btn_Submit 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| New file |
| | |
| | | <%@ 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> |
| New file |
| | |
| | | using 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"); |
| | | } |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.work |
| | | { |
| | | |
| | | |
| | | public partial class OA_DocumentShenpi |
| | | { |
| | | |
| | | /// <summary> |
| | | /// Head1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlHead Head1; |
| | | |
| | | /// <summary> |
| | | /// CMSHead1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::CY.WebForm.Pages.common.CMSHead CMSHead1; |
| | | |
| | | /// <summary> |
| | | /// form1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
| | | |
| | | /// <summary> |
| | | /// txtDM_DocumentType 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect txtDM_DocumentType; |
| | | |
| | | /// <summary> |
| | | /// txtDM_PostingId 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.DropDownList txtDM_PostingId; |
| | | |
| | | /// <summary> |
| | | /// txtDM_Number 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtDM_Number; |
| | | |
| | | /// <summary> |
| | | /// txtDM_PostingFirmName 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl txtDM_PostingFirmName; |
| | | |
| | | /// <summary> |
| | | /// txtDM_DocumentNumber 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl txtDM_DocumentNumber; |
| | | |
| | | /// <summary> |
| | | /// txtDM_Title 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtDM_Title; |
| | | |
| | | /// <summary> |
| | | /// txtDM_Content 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </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> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtDM_ThemeWords; |
| | | |
| | | /// <summary> |
| | | /// txtDM_CCUnit 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.TextBox txtDM_CCUnit; |
| | | |
| | | /// <summary> |
| | | /// txtDM_PrintNumber 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtDM_PrintNumber; |
| | | |
| | | /// <summary> |
| | | /// btn_submit 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Button btn_submit; |
| | | } |
| | | } |