This commit is contained in:
毕文静 2025-04-10 09:46:07 +08:00
parent 98e79d401c
commit 2245263c29
19 changed files with 258 additions and 25 deletions

View File

@ -1,4 +1,6 @@
using Newtonsoft.Json.Linq;
using NPOI.HSSF.Record.Chart;
using Org.BouncyCastle.Asn1.Ocsp;
using System;
using System.Collections.Generic;
using System.IO;

View File

@ -272,8 +272,34 @@ namespace FineUIPro.Web.AttachFile
{
attachUrl = attachUrl.Replace('/', '\\');
attachUrl = attachUrl.Substring(0, attachUrl.LastIndexOf(","));
}
}
var sour = from x in db.AttachFile where x.ToKeyId == ToKeyId select x;
//合同管理附件名重复提醒
if (MenuId == BLL.Const.SESRelatedDateMenuId)
{
string newName = attachUrl.Substring(attachUrl.LastIndexOf("\\"));
string n = newName.Substring(newName.IndexOf("_") + 1);
foreach (var item in sour)
{
if (item.AttachUrl.Contains(n))
{
Alert.ShowInTop(n + "已存在!", MessageBoxIcon.Warning);
return;
}
}
string fc_id = Request.QueryString["fcid"];
string fileTypeId = Request.QueryString["fileTypeId"];
var conLists = from x in Funs.DB.FC_ContractManagement where x.FC_ID.ToString() == fc_id && x.FileTypeId == fileTypeId select x;
foreach (var item in conLists)
{
if (item.AttachUrl.Contains(n))
{
Alert.ShowInTop(n + "已存在!", MessageBoxIcon.Warning);
return;
}
}
}
if (sour.Count() == 0)
{

View File

@ -87,7 +87,7 @@
}
// 框架承包商评估表的填写邮件通知
if (DateTime.Now.Hour == 11)
if (DateTime.Now.Hour == 15)
{
System.Timers.Timer aTimer = new System.Timers.Timer();
aTimer.Elapsed += new System.Timers.ElapsedEventHandler(aTimer_FC_AutoSend);
@ -812,10 +812,25 @@
mailCode = mailCode + "|" + fo.Expire_Date.Value.ToShortDateString();
//把CGP/S采购经理Purchasing Manager 改为fc list该合同的采购员buyer对应的部门leader
string deparatLeader = string.Empty;
if (!string.IsNullOrEmpty(fo.BuyerId))
{
var bu = from x in Funs.DB.Sys_User where x.UserId == fo.BuyerId select x;
if (bu != null && !string.IsNullOrEmpty(bu.FirstOrDefault().DepartId))
{
var de = from x in Funs.DB.Base_Depart where x.DepartId == bu.FirstOrDefault().DepartId select x;
if (de != null && !string.IsNullOrEmpty(de.FirstOrDefault().DepartLeader))
{
deparatLeader = de.FirstOrDefault().DepartLeader;
}
}
}
var cc = from x in Funs.DB.Sys_User
join y in Funs.DB.Sys_Role on x.RoleId equals y.RoleId
where x.Email != null && x.Email != ""
&& (y.RoleName == "CTE/D Manager" || y.RoleName == "Purchasing Manager" || y.RoleName == "CGP Director" || (y.RoleName== "CT Director" && x.DepartId== departId))
&& (y.RoleName == "CTE/D Manager" || x.UserId== deparatLeader || y.RoleName == "CGP Director" || (y.RoleName== "CT Director" && x.DepartId== departId))
select x;
mailTo = userList.Select(x => x.Email).ToArray();
@ -852,8 +867,8 @@
// 过期提示,30天范围
var foList = from x in Funs.DB.FC_SESRelatedData
where x.Expire_Date != null
&& x.Expire_Date.Value.AddMonths(-6).AddDays(-7).Date <= DateTime.Now.Date
&& x.Expire_Date.Value.AddMonths(-5).AddDays(-7).Date >= DateTime.Now.Date
&& x.Expire_Date.Value.AddMonths(-6).AddDays(-7) <= DateTime.Now.Date
&& x.Expire_Date.Value.AddMonths(-5).AddDays(-7) >= DateTime.Now.Date
select x;
if (foList.Count() > 0)
{

View File

@ -226,11 +226,11 @@ namespace FineUIPro.Web.SES
PunishmentId = string.Empty;
}
if (BLL.PunishmentService.IsExistSES_NO(PunishmentId, this.txtSESNo.Text.Trim(), "1"))
{
Alert.ShowInTop("The Backcharge SES NO. already exists!");
return;
}
//if (BLL.PunishmentService.IsExistSES_NO(PunishmentId, this.txtSESNo.Text.Trim(), "1"))
//{
// Alert.ShowInTop("The Backcharge SES NO. already exists!");
// return;
//}
if (txtViolationRelatedSes.Text != string.Empty && drpFO_No.SelectedValue != Const._Null)
{

View File

@ -6,6 +6,18 @@ namespace FineUIPro.Web.SES
{
public partial class SESRelatedDataContractManage1 : PageBase
{
public string FC_ID
{
get
{
return (string)ViewState["FC_ID"];
}
set
{
ViewState["FC_ID"] = value;
}
}
#region
/// <summary>
/// 加载页面
@ -36,6 +48,7 @@ namespace FineUIPro.Web.SES
Model.FC_ContractManagement file = BLL.ContractManagementService.GetContractManagementById(fileId);
if (file != null)
{
this.FC_ID = file.FC_ID.ToString();
this.hdId.Text = file.FileId;
this.txtFileName.Text = file.FileName;
if (!string.IsNullOrEmpty(file.UploadMan))
@ -78,6 +91,7 @@ namespace FineUIPro.Web.SES
string id = Request.Params["id"];
if (!string.IsNullOrEmpty(id))
{
this.FC_ID = id;
var data = BLL.SESRelatedDataService.GetSESRelatedDataById(id);
if (data != null)
{
@ -180,7 +194,7 @@ namespace FineUIPro.Web.SES
{
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.FC_ContractManagement));
}
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId)));
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}&fcid={2}&fileTypeId={3}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId, this.FC_ID, "1")));
}
#endregion
}

View File

@ -10,6 +10,18 @@ namespace FineUIPro.Web.SES
{
public partial class SESRelatedDataContractManage10 : PageBase
{
public string FC_ID
{
get
{
return (string)ViewState["FC_ID"];
}
set
{
ViewState["FC_ID"] = value;
}
}
#region
/// <summary>
/// 加载页面
@ -42,6 +54,7 @@ namespace FineUIPro.Web.SES
Model.FC_ContractManagement file = BLL.ContractManagementService.GetContractManagementById(fileId);
if (file != null)
{
this.FC_ID = file.FC_ID.ToString();
this.hdId.Text = file.FileId;
//if (!string.IsNullOrEmpty(file.FileTypeId))
//{
@ -93,6 +106,7 @@ namespace FineUIPro.Web.SES
string id = Request.Params["id"];
if (!string.IsNullOrEmpty(id))
{
this.FC_ID = id;
var data = BLL.SESRelatedDataService.GetSESRelatedDataById(id);
if (data != null)
{
@ -205,7 +219,7 @@ namespace FineUIPro.Web.SES
{
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.FC_ContractManagement));
}
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId)));
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}&fcid={2}&fileTypeId={3}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId, this.FC_ID, "10")));
}
#endregion
}

View File

@ -10,6 +10,18 @@ namespace FineUIPro.Web.SES
{
public partial class SESRelatedDataContractManage11 : PageBase
{
public string FC_ID
{
get
{
return (string)ViewState["FC_ID"];
}
set
{
ViewState["FC_ID"] = value;
}
}
#region
/// <summary>
/// 加载页面
@ -42,6 +54,7 @@ namespace FineUIPro.Web.SES
Model.FC_ContractManagement file = BLL.ContractManagementService.GetContractManagementById(fileId);
if (file != null)
{
this.FC_ID = file.FC_ID.ToString();
this.hdId.Text = file.FileId;
//if (!string.IsNullOrEmpty(file.FileTypeId))
//{
@ -93,6 +106,7 @@ namespace FineUIPro.Web.SES
string id = Request.Params["id"];
if (!string.IsNullOrEmpty(id))
{
this.FC_ID = id;
var data = BLL.SESRelatedDataService.GetSESRelatedDataById(id);
if (data != null)
{
@ -205,7 +219,7 @@ namespace FineUIPro.Web.SES
{
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.FC_ContractManagement));
}
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId)));
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}&fcid={2}&fileTypeId={3}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId, this.FC_ID, "11")));
}
#endregion
}

View File

@ -10,6 +10,18 @@ namespace FineUIPro.Web.SES
{
public partial class SESRelatedDataContractManage12 : PageBase
{
public string FC_ID
{
get
{
return (string)ViewState["FC_ID"];
}
set
{
ViewState["FC_ID"] = value;
}
}
#region
/// <summary>
/// 加载页面
@ -42,6 +54,7 @@ namespace FineUIPro.Web.SES
Model.FC_ContractManagement file = BLL.ContractManagementService.GetContractManagementById(fileId);
if (file != null)
{
this.FC_ID = file.FC_ID.ToString();
this.hdId.Text = file.FileId;
//if (!string.IsNullOrEmpty(file.FileTypeId))
//{
@ -93,6 +106,7 @@ namespace FineUIPro.Web.SES
string id = Request.Params["id"];
if (!string.IsNullOrEmpty(id))
{
this.FC_ID = id;
var data = BLL.SESRelatedDataService.GetSESRelatedDataById(id);
if (data != null)
{
@ -205,7 +219,7 @@ namespace FineUIPro.Web.SES
{
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.FC_ContractManagement));
}
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId)));
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}&fcid={2}&fileTypeId={3}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId, this.FC_ID, "12")));
}
#endregion
}

View File

@ -10,6 +10,18 @@ namespace FineUIPro.Web.SES
{
public partial class SESRelatedDataContractManage13 : PageBase
{
public string FC_ID
{
get
{
return (string)ViewState["FC_ID"];
}
set
{
ViewState["FC_ID"] = value;
}
}
#region
/// <summary>
/// 加载页面
@ -42,6 +54,7 @@ namespace FineUIPro.Web.SES
Model.FC_ContractManagement file = BLL.ContractManagementService.GetContractManagementById(fileId);
if (file != null)
{
this.FC_ID = file.FC_ID.ToString();
this.hdId.Text = file.FileId;
//if (!string.IsNullOrEmpty(file.FileTypeId))
//{
@ -93,6 +106,7 @@ namespace FineUIPro.Web.SES
string id = Request.Params["id"];
if (!string.IsNullOrEmpty(id))
{
this.FC_ID = id;
var data = BLL.SESRelatedDataService.GetSESRelatedDataById(id);
if (data != null)
{
@ -205,7 +219,7 @@ namespace FineUIPro.Web.SES
{
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.FC_ContractManagement));
}
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId)));
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}&fcid={2}&fileTypeId={3}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId, this.FC_ID, "13")));
}
#endregion
}

View File

@ -11,6 +11,18 @@ namespace FineUIPro.Web.SES
{
public partial class SESRelatedDataContractManage2 : PageBase
{
public string FC_ID
{
get
{
return (string)ViewState["FC_ID"];
}
set
{
ViewState["FC_ID"] = value;
}
}
#region
/// <summary>
/// 加载页面
@ -41,6 +53,7 @@ namespace FineUIPro.Web.SES
Model.FC_ContractManagement file = BLL.ContractManagementService.GetContractManagementById(fileId);
if (file != null)
{
this.FC_ID = file.FC_ID.ToString();
this.hdId.Text = file.FileId;
this.txtFileName.Text = file.FileName;
if (!string.IsNullOrEmpty(file.UploadMan))
@ -85,6 +98,7 @@ namespace FineUIPro.Web.SES
string id = Request.Params["id"];
if (!string.IsNullOrEmpty(id))
{
this.FC_ID = id;
var data = BLL.SESRelatedDataService.GetSESRelatedDataById(id);
if (data != null)
{
@ -203,7 +217,7 @@ namespace FineUIPro.Web.SES
{
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.FC_ContractManagement));
}
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId)));
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}&fcid={2}&fileTypeId={3}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId, this.FC_ID, "2")));
}
#endregion

View File

@ -10,6 +10,18 @@ namespace FineUIPro.Web.SES
{
public partial class SESRelatedDataContractManage3 : PageBase
{
public string FC_ID
{
get
{
return (string)ViewState["FC_ID"];
}
set
{
ViewState["FC_ID"] = value;
}
}
#region
/// <summary>
/// 加载页面
@ -40,6 +52,7 @@ namespace FineUIPro.Web.SES
Model.FC_ContractManagement file = BLL.ContractManagementService.GetContractManagementById(fileId);
if (file != null)
{
this.FC_ID = file.FC_ID.ToString();
this.hdId.Text = file.FileId;
this.txtFileName.Text = file.FileName;
if (!string.IsNullOrEmpty(file.UploadMan))
@ -83,6 +96,7 @@ namespace FineUIPro.Web.SES
string id = Request.Params["id"];
if (!string.IsNullOrEmpty(id))
{
this.FC_ID = id;
var data = BLL.SESRelatedDataService.GetSESRelatedDataById(id);
if (data != null)
{
@ -197,7 +211,7 @@ namespace FineUIPro.Web.SES
{
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.FC_ContractManagement));
}
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId)));
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}&fcid={2}&fileTypeId={3}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId, this.FC_ID, "3")));
}
#endregion
}

View File

@ -11,6 +11,18 @@ namespace FineUIPro.Web.SES
{
public partial class SESRelatedDataContractManage4 : PageBase
{
public string FC_ID
{
get
{
return (string)ViewState["FC_ID"];
}
set
{
ViewState["FC_ID"] = value;
}
}
#region
/// <summary>
/// 加载页面
@ -41,6 +53,7 @@ namespace FineUIPro.Web.SES
Model.FC_ContractManagement file = BLL.ContractManagementService.GetContractManagementById(fileId);
if (file != null)
{
this.FC_ID = file.FC_ID.ToString();
this.hdId.Text = file.FileId;
this.txtFileName.Text = file.FileName;
if (!string.IsNullOrEmpty(file.UploadMan))
@ -84,6 +97,7 @@ namespace FineUIPro.Web.SES
string id = Request.Params["id"];
if (!string.IsNullOrEmpty(id))
{
this.FC_ID = id;
var data = BLL.SESRelatedDataService.GetSESRelatedDataById(id);
if (data != null)
{
@ -197,7 +211,7 @@ namespace FineUIPro.Web.SES
{
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.FC_ContractManagement));
}
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId)));
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}&fcid={2}&fileTypeId={3}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId, this.FC_ID, "4")));
}
#endregion
}

View File

@ -11,6 +11,18 @@ namespace FineUIPro.Web.SES
{
public partial class SESRelatedDataContractManage5 : PageBase
{
public string FC_ID
{
get
{
return (string)ViewState["FC_ID"];
}
set
{
ViewState["FC_ID"] = value;
}
}
#region
/// <summary>
/// 加载页面
@ -46,6 +58,7 @@ namespace FineUIPro.Web.SES
Model.FC_ContractManagement file = BLL.ContractManagementService.GetContractManagementById(fileId);
if (file != null)
{
this.FC_ID = file.FC_ID.ToString();
this.hdId.Text = file.FileId;
this.txtFileName.Text = file.FileName;
if (!string.IsNullOrEmpty(file.UploadMan))
@ -99,6 +112,7 @@ namespace FineUIPro.Web.SES
string id = Request.Params["id"];
if (!string.IsNullOrEmpty(id))
{
this.FC_ID = id;
var data = BLL.SESRelatedDataService.GetSESRelatedDataById(id);
if (data != null)
{
@ -228,7 +242,7 @@ namespace FineUIPro.Web.SES
{
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.FC_ContractManagement));
}
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId)));
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}&fcid={2}&fileTypeId={3}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId, this.FC_ID, "5")));
}
#endregion
}

View File

@ -10,6 +10,18 @@ namespace FineUIPro.Web.SES
{
public partial class SESRelatedDataContractManage6 : PageBase
{
public string FC_ID
{
get
{
return (string)ViewState["FC_ID"];
}
set
{
ViewState["FC_ID"] = value;
}
}
#region
/// <summary>
/// 加载页面
@ -42,6 +54,7 @@ namespace FineUIPro.Web.SES
Model.FC_ContractManagement file = BLL.ContractManagementService.GetContractManagementById(fileId);
if (file != null)
{
this.FC_ID = file.FC_ID.ToString();
this.hdId.Text = file.FileId;
//if (!string.IsNullOrEmpty(file.FileTypeId))
//{
@ -93,6 +106,7 @@ namespace FineUIPro.Web.SES
string id = Request.Params["id"];
if (!string.IsNullOrEmpty(id))
{
this.FC_ID = id;
var data = BLL.SESRelatedDataService.GetSESRelatedDataById(id);
if (data != null)
{
@ -205,7 +219,7 @@ namespace FineUIPro.Web.SES
{
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.FC_ContractManagement));
}
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId)));
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}&fcid={2}&fileTypeId={3}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId, this.FC_ID, "6")));
}
#endregion

View File

@ -10,6 +10,18 @@ namespace FineUIPro.Web.SES
{
public partial class SESRelatedDataContractManage7 : PageBase
{
public string FC_ID
{
get
{
return (string)ViewState["FC_ID"];
}
set
{
ViewState["FC_ID"] = value;
}
}
#region
/// <summary>
/// 加载页面
@ -42,6 +54,7 @@ namespace FineUIPro.Web.SES
Model.FC_ContractManagement file = BLL.ContractManagementService.GetContractManagementById(fileId);
if (file != null)
{
this.FC_ID = file.FC_ID.ToString();
this.hdId.Text = file.FileId;
//if (!string.IsNullOrEmpty(file.FileTypeId))
//{
@ -93,6 +106,7 @@ namespace FineUIPro.Web.SES
string id = Request.Params["id"];
if (!string.IsNullOrEmpty(id))
{
this.FC_ID = id;
var data = BLL.SESRelatedDataService.GetSESRelatedDataById(id);
if (data != null)
{
@ -205,7 +219,7 @@ namespace FineUIPro.Web.SES
{
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.FC_ContractManagement));
}
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId)));
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}&fcid={2}&fileTypeId={3}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId, this.FC_ID, "7")));
}
#endregion
}

View File

@ -10,6 +10,18 @@ namespace FineUIPro.Web.SES
{
public partial class SESRelatedDataContractManage8 :PageBase
{
public string FC_ID
{
get
{
return (string)ViewState["FC_ID"];
}
set
{
ViewState["FC_ID"] = value;
}
}
#region
/// <summary>
/// 加载页面
@ -42,6 +54,7 @@ namespace FineUIPro.Web.SES
Model.FC_ContractManagement file = BLL.ContractManagementService.GetContractManagementById(fileId);
if (file != null)
{
this.FC_ID = file.FC_ID.ToString();
this.hdId.Text = file.FileId;
//if (!string.IsNullOrEmpty(file.FileTypeId))
//{
@ -93,6 +106,7 @@ namespace FineUIPro.Web.SES
string id = Request.Params["id"];
if (!string.IsNullOrEmpty(id))
{
this.FC_ID = id;
var data = BLL.SESRelatedDataService.GetSESRelatedDataById(id);
if (data != null)
{
@ -205,7 +219,7 @@ namespace FineUIPro.Web.SES
{
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.FC_ContractManagement));
}
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId)));
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}&fcid={2}&fileTypeId={3}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId, this.FC_ID, "8")));
}
#endregion
}

View File

@ -10,6 +10,18 @@ namespace FineUIPro.Web.SES
{
public partial class SESRelatedDataContractManage9 : PageBase
{
public string FC_ID
{
get
{
return (string)ViewState["FC_ID"];
}
set
{
ViewState["FC_ID"] = value;
}
}
#region
/// <summary>
/// 加载页面
@ -42,6 +54,7 @@ namespace FineUIPro.Web.SES
Model.FC_ContractManagement file = BLL.ContractManagementService.GetContractManagementById(fileId);
if (file != null)
{
this.FC_ID = file.FC_ID.ToString();
this.hdId.Text = file.FileId;
//if (!string.IsNullOrEmpty(file.FileTypeId))
//{
@ -93,6 +106,7 @@ namespace FineUIPro.Web.SES
string id = Request.Params["id"];
if (!string.IsNullOrEmpty(id))
{
this.FC_ID = id;
var data = BLL.SESRelatedDataService.GetSESRelatedDataById(id);
if (data != null)
{
@ -205,7 +219,7 @@ namespace FineUIPro.Web.SES
{
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.FC_ContractManagement));
}
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId)));
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}&fcid={2}&fileTypeId={3}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId, this.FC_ID, "9")));
}
#endregion
}

View File

@ -104,7 +104,7 @@
<Items>
<f:NumberBox ID="numProportion_of_FC_Definition" runat="server" Label="Current Allocation%" LabelWidth="160px" DecimalPrecision="2"></f:NumberBox>
<f:NumberBox ID="txtInitial_Budget" runat="server" Label="Initial Budget" LabelWidth="160px" NoNegative="true" EnableCommas="true">
<f:NumberBox ID="txtInitial_Budget" runat="server" Label="Initial Budget" LabelWidth="160px" NoNegative="true" EnableCommas="true" AutoPostBack="true" OnTextChanged="txtInitial_Budget_TextChanged">
</f:NumberBox>
<f:NumberBox ID="txtActual_Budget" runat="server" Label="Contract Budget" LabelWidth="160px" NoNegative="true" EnableCommas="true" Readonly="true">
</f:NumberBox>

View File

@ -361,7 +361,7 @@ namespace FineUIPro.Web.SES
this.numProportion_of_FC_Definition.Text = "";
}
this.txtInitial_Budget.Text = data.InitialBudget.HasValue ? data.InitialBudget.Value.ToString() : "";
this.txtActual_Budget.Text = data.Actual_Budget.HasValue ? data.Actual_Budget.Value.ToString() : "";
this.txtActual_Budget.Text = this.txtInitial_Budget.Text;//data.Actual_Budget.HasValue ? data.Actual_Budget.Value.ToString() : "";
this.txtRemark.Text = data.Remark;
if (!string.IsNullOrEmpty(data.ConstRecords))
{
@ -741,5 +741,13 @@ namespace FineUIPro.Web.SES
}
}
#endregion
protected void txtInitial_Budget_TextChanged(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(this.txtInitial_Budget.Text.Trim()))
{
this.txtActual_Budget.Text = this.txtInitial_Budget.Text.Trim();
}
}
}
}