username@email.com
16 小时以前 be3b255bbe328d793ff20011683dca5aee1668a1
20250722 川印系统客户访问增加长度,增加附件何查看  20250721  川印系统修改 完成
13个文件已修改
4个文件已添加
738 ■■■■■ 已修改文件
CY_ECommercePlatform/CY.BLL/OA/OA_CorporateClientsBLL.cs 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.IDAL/OA/IOA_CorporateClientsDAL.cs 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.Model/CY.Model.csproj 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.Model/OA/OA_CorporateClientsVisit.cs 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.Model/OA/OA_attachment.cs 174 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.SQLDAL/OA/OA_CorporateClientsDAL.cs 72 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/CY.WebForm.csproj 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/business/AgOrderProduction.aspx.cs 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/business/Baozhengjinfukuan.aspx.cs 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsVisit.aspx 65 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsVisit.aspx.cs 78 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsVisit.aspx.designer.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanWentiOrder.aspx.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/business/OrderDeatil.aspx 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/work/MyvisitDetail.aspx 73 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/work/MyvisitDetail.aspx.cs 68 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/work/MyvisitDetail.aspx.designer.cs 80 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.BLL/OA/OA_CorporateClientsBLL.cs
@@ -1185,5 +1185,46 @@
        {
            return _IOA_CorporateClientsDal.SelectVisitListByBuzAndTime(BusinessManagerId, chaxuntime);
        }
        /// <summary>
        /// 添加附件
        /// </summary>
        /// <param name="rType"></param>
        /// <returns></returns>
        public bool Insertattachment(OA_attachment a_Attachment)
        {
            try
            {
                _IOA_CorporateClientsDal.Insertattachment(a_Attachment);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return true;
        }
        /// <summary>
        /// 获取附件
        /// </summary>
        /// <param name="Keyid">主键id</param>
        /// <returns></returns>
        public IEnumerable<OA_attachment> GetattachmentlList(string OA_Id)
        {
            return _IOA_CorporateClientsDal.GetattachmentlList(OA_Id);
        }
        /// <summary>
        /// 单个查询访问
        /// </summary>
        /// <param name="Keyid">编号</param>
        /// <returns></returns>
        public OA_CorporateClientsVisit SelectVisitByKeyid(Guid Keyid)
        {
            return _IOA_CorporateClientsDal.SelectVisitByKeyid(Keyid);
        }
    }
}
CY_ECommercePlatform/CY.IDAL/OA/IOA_CorporateClientsDAL.cs
@@ -363,5 +363,31 @@
        /// <returns></returns>
        IEnumerable<OA_CorporateClientsVisit> SelectVisitListByBuzAndTime(int? BusinessManagerId,string chaxuntime);
        /// <summary>
        /// 新增附件
        /// </summary>
        /// <param name="rType"></param>
        /// <returns></returns>
        bool Insertattachment(OA_attachment a_Attachment);
        /// <summary>
        /// 根据厂商编号查询全部外协厂商
        /// </summary>
        /// <param name="MemberId">编号</param>
        /// <returns></returns>
        IEnumerable<OA_attachment> GetattachmentlList(string OA_Id);
        /// <summary>
        /// 单个查询访问
        /// </summary>
        /// <param name="Keyid">编号</param>
        /// <returns></returns>
        OA_CorporateClientsVisit SelectVisitByKeyid(Guid Keyid);
    }
}
CY_ECommercePlatform/CY.Model/CY.Model.csproj
@@ -205,6 +205,7 @@
    <Compile Include="OA\CoreCmsPlanOrderItem.cs" />
    <Compile Include="OA\CoreDeliverOrderItem.cs" />
    <Compile Include="OA\EC_OrderLiuyang.cs" />
    <Compile Include="OA\OA_attachment.cs" />
    <Compile Include="OA\OA_Baozhengjin.cs" />
    <Compile Include="OA\OA_Baozhengjincuishou.cs" />
    <Compile Include="OA\OA_CarDictionary.cs" />
CY_ECommercePlatform/CY.Model/OA/OA_CorporateClientsVisit.cs
@@ -110,7 +110,11 @@
            get;
            set;
        }
        public System.Collections.Generic.List<OA_attachment> attachments
        {
            get;
            set;
        }
        #endregion Model
CY_ECommercePlatform/CY.Model/OA/OA_attachment.cs
New file
@@ -0,0 +1,174 @@
/**
*OA_CorporateClients.cs
*
*功 能: N / A
* 类 名: OA_CorporateClients
*
* Ver    变更日期             负责人  变更内容
* ───────────────────────────────────
* V0.01  2013-4-2 14:27:43   N / A    初版
  *
  *
  *
  *
  *
  *
  */
using System;
using CY.Infrastructure.Domain;
using CY.Infrastructure.Common;
namespace CY.Model
{
    /// <summary>
    /// 印刷参数
    /// </summary>
    [Serializable]
    public partial class OA_attachment : IAggregateRoot
    {
        #region Model
        /// <summary>
        /// Keyid
        /// </summary>
        public int Keyid { get; set; }
        /// <summary>
        ///  OA_Id
        /// </summary>
        public Guid OA_Id { get; set; }
        /// <summary>
        /// PlanAttachment
        /// </summary>
        public string PlanAttachment
        {
            get;
            set;
        }
        /// <summary>
        /// AttachmentType   1发票  2  附件  3
        /// </summary>
        public int? AttachmentType
        {
            get;
            set;
        }
        /// <summary>
        /// AttachmentName
        /// </summary>
        public string AttachmentName
        {
            get;
            set;
        }
        /// <summary>
        /// AttachmentHouzhui
        /// </summary>
        public string AttachmentHouzhui
        {
            get;
            set;
        }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime
        {
            get;
            set;
        }
        /// <summary>
        /// Operator
        /// </summary>
        public string Operator
        {
            get;
            set;
        }
        #endregion Model
        #region Visiter
        /// <summary>
        /// 属性访问器
        /// </summary>
        /// <param name="name">属性名</param>
        /// <param name="index">索引</param>
        /// <param name="isChange">是否将指定属性设置为传入值</param>
        /// <param name="value">需要赋予的值</param>
        /// <returns>与名称对应的属性值</returns>
        public object Visiter(string name, int? index = -1, bool isChange = false, object value = null)
        {
            object theValue = null;
            if ("Keyid".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 1)
            {
                this.Keyid = isChange ? MyConvert.ConvertToInt32(value).Value : Keyid;
                theValue = this.Keyid;
            }
            else if ("OA_WorkPlanId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
            {
                this.OA_Id = isChange ? MyConvert.ConvertToGuid(value) : OA_Id;
                theValue = this.OA_Id;
            }
            else if ("PlanAttachment".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
            {
                this.PlanAttachment = isChange ? MyConvert.ConvertToString(value) : PlanAttachment;
                theValue = this.PlanAttachment;
            }
            else if ("CreateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
            {
                this.CreateTime = isChange ? MyConvert.ConvertToDateTime(value) : CreateTime;
                theValue = this.CreateTime;
            }
            else if ("AttachmentType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
            {
                this.AttachmentType = isChange ? MyConvert.ConvertToInt32(value) : AttachmentType;
                theValue = this.AttachmentType;
            }
            else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
            {
                this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator;
                theValue = this.Operator;
            }
            else if ("AttachmentName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
            {
                this.AttachmentName = isChange ? MyConvert.ConvertToString(value) : AttachmentName;
                theValue = this.AttachmentName;
            }
            else if ("AttachmentHouzhui".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
            {
                this.AttachmentHouzhui = isChange ? MyConvert.ConvertToString(value) : AttachmentHouzhui;
                theValue = this.AttachmentHouzhui;
            }
            return theValue;
        }
        #endregion
    }
}
CY_ECommercePlatform/CY.SQLDAL/OA/OA_CorporateClientsDAL.cs
@@ -1505,5 +1505,77 @@
            }
        }
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool Insertattachment(OA_attachment model)
        {
            Model.OA_attachment trueModel = model as Model.OA_attachment;
            if (trueModel == null)
            {
                return false;
            }
            IList<SqlParameter> sqlParms = new List<SqlParameter>()
            {
                   new SqlParameter("@OA_Id",trueModel.OA_Id),
                   new SqlParameter("@CreateTime",trueModel.CreateTime),
                   new SqlParameter("@PlanAttachment",trueModel.PlanAttachment),
                   new SqlParameter("@AttachmentType",trueModel.AttachmentType),
                   new SqlParameter("@Operator",string.IsNullOrWhiteSpace(trueModel.Operator)?"":trueModel.Operator),
                    new SqlParameter("@AttachmentHouzhui",string.IsNullOrWhiteSpace(trueModel.AttachmentHouzhui)?"":trueModel.AttachmentHouzhui),
                     new SqlParameter("@AttachmentName",string.IsNullOrWhiteSpace(trueModel.AttachmentName)?"":trueModel.AttachmentName ),
            };
            string sql = "Insert Into OA_attachment ( [OA_Id] , [PlanAttachment],[AttachmentType],[CreateTime],[Operator],[AttachmentHouzhui],[AttachmentName] )"
                                             + " Values (  @OA_Id,  @PlanAttachment,@AttachmentType,@CreateTime,@Operator,@AttachmentHouzhui,@AttachmentName  )";
            try
            {
                _dataBase.ExecuteSql(sql, sqlParms.ToArray<SqlParameter>());
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return true;
        }
        /// <summary>
        /// 根据厂商编号查询全部外协厂商
        /// </summary>
        /// <param name="MemberId">编号</param>
        /// <returns></returns>
        public IEnumerable<OA_attachment> GetattachmentlList(string OA_Id)
        {
            if (OA_Id == null)
                return null;//错误数据返会空
            IList<OA_attachment> result = _dataBase.SelectModel<OA_attachment>("*", "OA_attachment", string.Format(" OA_Id='{0}'   ORDER BY CreateTime DESC", OA_Id)) as IList<OA_attachment>;//执行查询
            return result;//返回结果
        }
        /// <summary>
        /// 单个查询访问
        /// </summary>
        /// <param name="Keyid">编号</param>
        /// <returns></returns>
        public OA_CorporateClientsVisit SelectVisitByKeyid(Guid Keyid)
        {
            if (Keyid == null)
                return null;//错误数据返会空
            IList<OA_CorporateClientsVisit> result = _dataBase.SelectModel<OA_CorporateClientsVisit>(" a.* ", " OA_CorporateClientsVisit a ", string.Format(" a.Keyid='{0}'", Keyid)) as IList<OA_CorporateClientsVisit>;//执行查询
            return (null == result || result.Count == 0) ? null : result[0];//返回结果
        }
    }
}
CY_ECommercePlatform/CY.WebForm/CY.WebForm.csproj
@@ -2804,6 +2804,7 @@
    <Content Include="Pages\work\BaoxiaoFukuanList.aspx" />
    <Content Include="Pages\work\BaoxiaoPiliangReply.aspx" />
    <Content Include="Pages\work\BaoxiaoReplyList.aspx" />
    <Content Include="Pages\work\MyvisitDetail.aspx" />
    <Content Include="Pages\work\MyPlanAdd.aspx" />
    <Content Include="Pages\work\MyPlanList.aspx" />
    <Content Include="Pages\work\MyBaoxiaoAdd.aspx" />
@@ -9207,6 +9208,13 @@
    <Compile Include="Pages\work\BaoxiaoReplyList.aspx.designer.cs">
      <DependentUpon>BaoxiaoReplyList.aspx</DependentUpon>
    </Compile>
    <Compile Include="Pages\work\MyvisitDetail.aspx.cs">
      <DependentUpon>MyvisitDetail.aspx</DependentUpon>
      <SubType>ASPXCodeBehind</SubType>
    </Compile>
    <Compile Include="Pages\work\MyvisitDetail.aspx.designer.cs">
      <DependentUpon>MyvisitDetail.aspx</DependentUpon>
    </Compile>
    <Compile Include="Pages\work\MyPlanAdd.aspx.cs">
      <DependentUpon>MyPlanAdd.aspx</DependentUpon>
      <SubType>ASPXCodeBehind</SubType>
CY_ECommercePlatform/CY.WebForm/Pages/business/AgOrderProduction.aspx.cs
@@ -172,7 +172,15 @@
        /// <param name="e"></param>
        private void AspNetPager_PageChanged(object sender, EventArgs e)
        {
            UCPager1.AspNetPager.PageSize = 25;
            if(this.selOrderStates.Value == "2")
            {
                UCPager1.AspNetPager.PageSize = 1000;
            }
            else
            {
                UCPager1.AspNetPager.PageSize = 25;
            }
            Infrastructure.Query.Pagination pagination = new Infrastructure.Query.Pagination()
            {
CY_ECommercePlatform/CY.WebForm/Pages/business/Baozhengjinfukuan.aspx.cs
@@ -475,8 +475,8 @@
                selAccountName.DataBind();
                selAccountName.Items.Insert(0, new ListItem("全部", ""));
                this.txtSQBeginDate.Value = DateTime.Now.AddDays(-14).ToString("yyyy-MM-dd");
                this.txtSQEndDate.Value = DateTime.Now.ToString("yyyy-MM-dd");
                //this.txtSQBeginDate.Value = DateTime.Now.AddDays(-14).ToString("yyyy-MM-dd");
                //this.txtSQEndDate.Value = DateTime.Now.ToString("yyyy-MM-dd");
                this.TuikuanStatus.Value = "1";
                //初次数据加载
                btn_Search_Click(btn_Search, new EventArgs());
@@ -572,6 +572,15 @@
        private void AspNetPager_PageChanged(object sender, EventArgs e)
        {
            // UCPager1.AspNetPager.PageSize = 3;
            if (this.TuikuanStatus.Value == "1")
            {
                UCPager1.AspNetPager.PageSize = 1000;
            }
            else
            {
                UCPager1.AspNetPager.PageSize = 25;
            }
            Infrastructure.Query.Pagination pagination = new Infrastructure.Query.Pagination()
            {
CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsVisit.aspx
@@ -19,8 +19,48 @@
              window.document.body.innerHTML = bdhtml;//重新给页面内容赋值;
          }
          //查看
          function checkSelFile() {
              //var oFile = document.getElementById('filesel');
              //if (oFile.value == "") {
              //    alertMsg('没有选择文件');
              //    return false;
              //}
              showLoadingIndicator();
              //debugger;
              //replaceParamVal("deleteKeyIds", "");
              return true;
          }
          function showLoadingIndicator() {
              document.getElementById('loading').style.display = 'block';
          }
          function hideLoadingIndicator() {
              document.getElementById('loading').style.display = 'none';
          }
          //查看
          function onViewvisit(keyid) {
              top.Dialog.open({ URL: "/Pages/work/MyvisitDetail.aspx?Keyid=" + keyid, Title: "查看维护详情", Width: 1100, Height: 800 });
          }
      </script>
    <style>
  .table-wrap {
    width: 100%; /* 限制容器宽度 */
    word-break: break-all; /* 强制英文/数字换行 */
    /* 或使用 word-wrap: break-word; 只在单词内换行 */
  }
  .truncate {
    white-space: nowrap; /* 不换行 */
    overflow: hidden; /* 隐藏超出部分 */
    text-overflow: ellipsis; /* 显示省略号 */
    max-width: 150px; /* 限制单元格最大宽度 */
  }
</style>
</head>
<body>
    <form runat="server" id="form1" class="form">
@@ -39,7 +79,9 @@
          <fieldset  id="weihujilu">
               <legend>添加维护记录</legend>
                <table class="tableStyle" width="100%">
               <tr>                     <td class="ali01 ">维护日期:</td>                     <td   ><input id="txtVisitTime" type="text" runat="server"  maxlength="50" class="date w90px" datefmt="yyyy-MM-dd"  /></td>                      <td class="ali03 ">维护记录:</td>                     <td colspan="2"  ><textarea runat="server" id="txtvisitRemark" style=" width:92%; height:30px;"  maxlength="200"></textarea></td>                                           <td   ><asp:Button ID="Button1" Text="添加维护记录" runat="server" OnClick="btn_Submit_Visit"  ToolTip="该记录会清除该客户的例行维护提醒"/><asp:Button ID="btn_Submit" Text="添加假日维护记录" runat="server"  ToolTip="该记录会清除该客户的假日维护提醒" OnClick="btn_Submit_Visit_jiari"/></td>                                     </tr>
               <tr>                     <td class="ali01 ">维护日期:</td>                     <td   ><input id="txtVisitTime" type="text" runat="server"  maxlength="50" class="date w90px" datefmt="yyyy-MM-dd"  /></td>                      <td class="ali03 ">维护记录:</td>                     <td colspan="2"  ><textarea runat="server" id="txtvisitRemark" style=" width:92%; height:30px;"  maxlength="2000"></textarea></td>                       <td class="ali03">
                        <input type="file" id="filesel" name="__hetongFile" keepdefaultstyle="true"  multiple="multiple" runat="server" text="请选择文件" /></td>
                    <td>                     <td   ><asp:Button ID="Button1" Text="添加维护记录" OnClientClick="return checkSelFile()" runat="server" OnClick="btn_Submit_Visit"  ToolTip="该记录会清除该客户的例行维护提醒"/><asp:Button ID="btn_Submit" Text="添加假日维护记录" runat="server"  ToolTip="该记录会清除该客户的假日维护提醒" OnClick="btn_Submit_Visit_jiari"/></td>                    <div id="loading" class="toast-message" style="display: none;">保存中!</div>                 </tr>
               </table>
          <%--  <asp:Repeater ID="RepClientList" runat="server">
                <HeaderTemplate>
@@ -87,7 +129,7 @@
          <fieldset>
                <legend>维护记录</legend>
              <!--startprint-->
               <table class="tableStyle" style="margin-bottom:10px;">
               <table class="tableStyle" style="margin-bottom:10px;"  width="100%;">
                
                <tr>
                    
@@ -102,21 +144,23 @@
              
            <asp:Repeater ID="RepClientList" runat="server">
                <HeaderTemplate>
                    <table class="tableStyle" useclick="false" usecheckbox="true" sortmode="true"  border="1" cellspacing="0" cellpadding="0" style="text-align: center;">
                    <table class="tableStyle"  border="1" cellspacing="0" cellpadding="0" style="text-align: center;"  width="100%;">
                        <tr>
                          <th style="text-align: center;width:10px;">
                                序号
                            </th>
                            <th style="text-align: center;">
                            <th style="text-align: center;width:10%;">
                                维护日期
                            </th>
                            <th style="text-align: center;">
                            <th style="text-align: center;width:70%;">
                                维护记录
                            </th>
                             <th style="text-align: center;">
                             <th style="text-align: center;width:10%;">
                                维护人
                            </th>
                            <th style="text-align: center;width:10%;">
                               详情
                            </th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
@@ -128,12 +172,15 @@
                        <td>
                            <%#Eval("VisitTime", "{0:yyyy-MM-dd}")%>
                        </td>
                         <td>
                         <td class="truncate" title="<%#Eval("Remark")%>" >
                            <%#Eval("Remark")%>
                        </td>
                         <td>
                            <%#Eval("CreaterName")%>
                        </td>
                         <td>
                           <span onclick="onViewvisit('<%#Eval("Keyid")%>')">详情</span>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsVisit.aspx.cs
@@ -13,6 +13,7 @@
using CY.SQLDAL;
using System.Data.SqlClient;
using CY.Infrastructure.Logging;
using CY.WebForm.Helper;
namespace CY.WebForm.Pages.business
{
@@ -109,18 +110,67 @@
                else
                {
                    JavaScript.MessageBox("请先保存客户", this);
                    return;
                }
                if (this.txtVisitTime.Value == "")
                {
                    JavaScript.MessageBox("请选择日期", this);
                    return;
                }
                if (this.txtVisitTime.Value == "")
                {
                    JavaScript.MessageBox("请填写维护记录", this);
                    return;
                }
                if (this.txtvisitRemark.Value.Trim() == "")
                {
                    JavaScript.MessageBox("请填写维护记录", this);
                    return;
                }
                var files = Request.Files;
                List<HttpPostedFile> fileList = new List<HttpPostedFile>();
                if (files.Count > 0)
                {
                    HttpPostedFile postedFile;
                    for (int i = 0; i < files.Count; i++)
                    {
                        if (files.Keys[i] == "filesel")
                        {
                            postedFile = files[i];
                            if (postedFile.ContentLength == 0)
                                continue;
                            if (postedFile.ContentLength > 2 * 1024 * 1024)
                            {
                                JavaScript.MessageBox("上传文件大小必须小于2M", this);
                                return;
                            }
                            fileList.Add(postedFile);
                        }
                    }
                }
                m_OA_CorporateClientsVisit.Keyid = Guid.NewGuid();
@@ -129,7 +179,7 @@
                m_OA_CorporateClientsVisit.VisitTime = this.txtVisitTime.Value.ToDateTime2();
                m_OA_CorporateClientsVisit.Remark = this.txtvisitRemark.Value.ToString2();
                m_OA_CorporateClientsVisit.Remark = this.txtvisitRemark.Value.Trim();
                m_OA_CorporateClientsVisit.Creater = CurrentUser.TrueMemberId;
                m_OA_CorporateClientsVisit.CreateTime = DateTime.Now;
                m_OA_CorporateClientsVisit.Updater = CurrentUser.TrueMemberId;
@@ -143,11 +193,27 @@
                if (result)
                {
                    //this.RepClientList.DataSource = bll_OA_CorporateClientsBLL.SelectVisitListByCorId(Keyid);
                    //this.RepClientList.DataBind();
                    if (fileList.Count > 0)
                    {
                        upLoadContractFile uploadContract = new upLoadContractFile();
                        foreach (var file in fileList)
                        {
                            var re = uploadContract.UploadFile(file, "ClientVisit", file.FileName);
                            var oa_Attachment = new OA_attachment();
                            oa_Attachment.OA_Id = m_OA_CorporateClientsVisit.Keyid;
                            oa_Attachment.AttachmentType = 99;
                            oa_Attachment.PlanAttachment = re;
                            oa_Attachment.CreateTime = DateTime.Now;
                            oa_Attachment.Operator = CurrentUser.TrueName;
                            oa_Attachment.AttachmentName = file.FileName;
                            oa_Attachment.AttachmentHouzhui = System.IO.Path.GetExtension(file.FileName).ToLower();
                            bll_OA_CorporateClientsBLL.Insertattachment(oa_Attachment);
                        }
                    }
                    this.txtVisitTime.Value = "";
                    this.txtvisitRemark.Value = "";
                    JavaScript.MessageBox("维护保存成功", this, false, false);
                    // JavaScript.MessageBox("维护保存成功", this, false, false);
                    JavaScript.MessageBoxandhideLoadingIndicator("保存成功", this);
                    if (NeedWeihu)
                    {
@@ -189,10 +255,6 @@
                    JavaScript.MessageBox("维护保存失败", this);
                this.RepClientList.DataSource = bll_OA_CorporateClientsBLL.SelectVisitListByCorId(Request["Keyid"].ToGuid2());
                this.RepClientList.DataBind();
                //Province = CurrentUser.Province;
                //City = CurrentUser.City;
                //County = CurrentUser.County;
                //BindData();
                if (IsWeihuTixingUrl)
                    JavaScript.RefreshDIVOpener(this);
                #endregion
CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsVisit.aspx.designer.cs
@@ -60,6 +60,15 @@
        protected global::System.Web.UI.HtmlControls.HtmlTextArea txtvisitRemark;
        /// <summary>
        /// filesel 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlInputFile filesel;
        /// <summary>
        /// Button1 控件。
        /// </summary>
        /// <remarks>
CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanWentiOrder.aspx.cs
@@ -140,7 +140,7 @@
            if (SaveOrder())
            {
                //操作成功
                JavaScript.CloseWindowAlert("操作成功", this);
                JavaScript.CloseWindow(this);
            }
            else
            {
CY_ECommercePlatform/CY.WebForm/Pages/business/OrderDeatil.aspx
@@ -223,8 +223,16 @@
                        <td class='left'>
                            接件时间:
                        </td>
                        <td colspan="3">
                            &nbsp;
                         <td colspan="3">
                        </td>
                         <tr>
                         </tr>
                         <td class='left'>
                            对应合同序号:
                        </td>
                        <td colspan="7">
                           <%#Eval("Duiyinghetongbianhao")%>&nbsp;
                        </td>
                    </tr>
                </ItemTemplate>
CY_ECommercePlatform/CY.WebForm/Pages/work/MyvisitDetail.aspx
New file
@@ -0,0 +1,73 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyvisitDetail.aspx.cs" Inherits="CY.WebForm.Pages.work.MyvisitDetail" %>
<!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" />
    <style type="text/css">
        .w70px { width: 70px; }
        fieldset { padding: 3px; margin: 5px auto; }
    </style>
</head>
<body>
    <form id="form1" class="form2" runat="server">
    <div>
        <fieldset>
            <legend>维护信息</legend>
            <table  style="margin: 0px auto;" border="1" cellpadding="0" cellspacing="0" width="99%">
                <tr>
                     <td class="ali03" colspan="3" style="width:10%; ">
                        维护日期:
                    </td>
                    <td style="width:90%; ">
                        <span id="spanDepart" runat="server"></span>
                    </td>
                </tr>
                <tr>
                     <td class="ali03" colspan="3">
                        维护人:
                    </td>
                    <td>
                        <span id="spanPlanPeople" runat="server"></span>
                    </td>
                </tr>
                <tr>
                    <td class="ali03 " colspan="3">
                       摘要:
                    </td>
                    <td>
                        <span id="spanPlanContent" runat="server"></span>
                    </td>
                </tr>
                 <tr>
                    <td class="ali03 " colspan="3">
                       附件:
                    </td>
                    <td>
                         <asp:Repeater ID="Repeater1" runat="server">
                           <ItemTemplate>
                    <a title="查看附件"    target="view_window" href="<%#Eval("PlanAttachment")%>">
                               <%#Eval("AttachmentName")%>
                            </a>  &nbsp; &nbsp; &nbsp;
                                </ItemTemplate>
                           </asp:Repeater>
                    </td>
                </tr>
            </table>
        </fieldset>
    </div>
    </form>
</body>
</html>
CY_ECommercePlatform/CY.WebForm/Pages/work/MyvisitDetail.aspx.cs
New file
@@ -0,0 +1,68 @@
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.BLL.Sys;
using CY.BLL.EC;
using CY.Infrastructure.DESEncrypt;
using CY.Infrastructure.Query;
namespace CY.WebForm.Pages.work
{
    //吴辉
    //请示明细
    public partial class MyvisitDetail : BasePage
    {
        OA_CorporateClientsBLL bll_OA_CorporateClientsBLL = null;
        OA_StaffBLL staffBLL = null;
        public MyvisitDetail()
        {
            bll_OA_CorporateClientsBLL = new OA_CorporateClientsBLL();
            staffBLL = new OA_StaffBLL();
        }
        //页面加载
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InitData();
            }
        }
        //数据加载
        public void InitData()
        {
            var keyid = Request["keyid"].ToGuid2() ;
            var oA_CorporateClientsVisit  = bll_OA_CorporateClientsBLL.SelectVisitByKeyid(keyid);
            if (oA_CorporateClientsVisit != null)
            {
                var oA_Staff = staffBLL.GetModelByMemberId(oA_CorporateClientsVisit.Creater.Value);
                if (oA_Staff != null)
                {
                    spanPlanPeople.InnerText = oA_Staff.Name;
                }
                spanPlanContent.InnerHtml = oA_CorporateClientsVisit.Remark;
                spanDepart.InnerText = oA_CorporateClientsVisit.VisitTime.Value.ToString("yyyy-MM-dd");
                this.Repeater1.DataSource = bll_OA_CorporateClientsBLL.GetattachmentlList(Request["keyid"]);
                this.Repeater1.DataBind();
            }
        }
    }
}
CY_ECommercePlatform/CY.WebForm/Pages/work/MyvisitDetail.aspx.designer.cs
New file
@@ -0,0 +1,80 @@
//------------------------------------------------------------------------------
// <自动生成>
//     此代码由工具生成。
//
//     对此文件的更改可能导致不正确的行为,如果
//     重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace CY.WebForm.Pages.work
{
    public partial class MyvisitDetail
    {
        /// <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>
        /// spanDepart 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanDepart;
        /// <summary>
        /// spanPlanPeople 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanPlanPeople;
        /// <summary>
        /// spanPlanContent 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanPlanContent;
        /// <summary>
        /// Repeater1 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.WebControls.Repeater Repeater1;
    }
}