提交代码

This commit is contained in:
2023-10-31 15:22:02 +08:00
parent b0f60f4a58
commit 3eab5e32f6
28 changed files with 1730 additions and 96 deletions
@@ -0,0 +1,48 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OutDayEdit.aspx.cs" Inherits="FineUIPro.Web.CQMS.Performance.OutDayEdit" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>修改出差天数</title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" runat="server" />
<f:Window ID="Window1" runat="server" IsModal="false" EnableClose="false" EnableResize="true" ShowHeader="false"
AutoScroll="true" Width="1200px" Height="800px">
<Items>
<f:Form ID="SimpleForm2" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="出差天数">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtOutDay" runat="server" Label="出差天数" MaxLength="50" Required="true" ShowRedStar="true" LabelWidth="100px">
</f:NumberBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWorkRange" runat="server" Label="工作范围" MaxLength="50" LabelWidth="100px" Required="true" ShowRedStar="true">
</f:TextBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
<Toolbars>
<f:Toolbar ID="Toolbar4" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="Button2" Icon="SystemSave" Text="确认修改" ToolTip="确认修改" runat="server" ValidateForms="SimpleForm2"
OnClick="btnEdit_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Window>
</form>
</body>
</html>
@@ -0,0 +1,48 @@
using BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace FineUIPro.Web.CQMS.Performance
{
public partial class OutDayEdit : PageBase
{
//主键
public string PerformanceGid
{
get
{
return (string)ViewState["PerformanceGid"];
}
set
{
ViewState["PerformanceGid"] = value;
}
}
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
//主键
PerformanceGid = Request.Params["PerformanceGid"];
//根据主键加载主表
var pModel = Funs.DB.CQMS_Performance.FirstOrDefault(x => x.PerformanceGid == PerformanceGid);
txtOutDay.Text = pModel.OutDay.ToString();
txtWorkRange.Text = pModel.WorkRange;
}
}
protected void btnEdit_Click(object sender, EventArgs e)
{
var pModel = Funs.DB.CQMS_Performance.FirstOrDefault(x => x.PerformanceGid == PerformanceGid);
pModel.OutDay = Convert.ToInt32(txtOutDay.Text);
pModel.WorkRange = txtWorkRange.Text.Trim();
Funs.DB.SubmitChanges();
ShowNotify("修改成功。", MessageBoxIcon.Success);
}
}
}
@@ -0,0 +1,89 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.CQMS.Performance
{
public partial class OutDayEdit
{
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Window1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window1;
/// <summary>
/// SimpleForm2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form SimpleForm2;
/// <summary>
/// txtOutDay 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtOutDay;
/// <summary>
/// txtWorkRange 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtWorkRange;
/// <summary>
/// Toolbar4 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar4;
/// <summary>
/// Button2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button Button2;
}
}
@@ -34,6 +34,10 @@
<f:Button ID="btnSearch" runat="server" Icon="SystemSearch" ToolTip="查询" OnClick="btnBindGrid">
</f:Button>
<f:Button ID="Button2" ToolTip="修改出差天数" Hidden="false" Text="出差天数" Icon="Pencil" runat="server"
OnClick="btnDays_Click">
</f:Button>
<f:Button ID="btnUpdateMonth" ToolTip="修改月节点目标" Hidden="false" Text="月节点目标" Icon="Pencil" runat="server"
OnClick="btnMonthTarget">
</f:Button>
@@ -46,7 +50,7 @@
OnClick="btnWorkPlan">
</f:Button>
<f:Button ID="Button1" ToolTip="提交" Hidden="false" Text="提交报表" Icon="Pencil" runat="server" ConfirmText="请注意:提交后不可修改。是否确认提交数据?"
<f:Button ID="Button1" ToolTip="提交" Hidden="false" Text="提交报表" Icon="Pencil" runat="server"
OnClick="btnSubmit">
</f:Button>
@@ -100,6 +104,13 @@
Title="编辑" EnableIFrame="true" Height="650px"
Width="1200px">
</f:Window>
<f:Window ID="Window2" runat="server" Hidden="true" ShowHeader="true"
IsModal="true" Target="Parent" EnableMaximize="true" EnableResize="true" AutoScroll="true"
Title="修改出差天数" EnableIFrame="true" Height="650px"
Width="440px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<%-- <f:MenuButton ID="btnMenuEdit" OnClick="btnEdit_Click" EnablePostBack="true"
Hidden="true" runat="server" Text="编辑" Icon="TableEdit" >
@@ -238,7 +238,7 @@ namespace FineUIPro.Web.CQMS.Performance
}
else {
ShowNotify("当前日期未设置规则,请前往施工绩效设置页面进行操作。", MessageBoxIcon.Warning);
PageContext.RegisterStartupScript("CloseRefresh()");
//PageContext.RegisterStartupScript("CloseRefresh()");
return;
}
@@ -1185,6 +1185,24 @@ namespace FineUIPro.Web.CQMS.Performance
}
else
{
var NowDate = Convert.ToDateTime(drpCompileDateMonth.Text.Trim());
var Year = NowDate.Year;
var Month = 1;
if (NowDate.Month != 12)
{
Month = NowDate.Month + 1;
}
else
{
Year += 1;
}
//获取配置
var modelConfig = Funs.DB.CQMS_Performance_SetUp.FirstOrDefault(x => x.CreateYear == Year.ToString() && x.SortIndex == Month);
if (modelConfig==null)
{
return;
}
if (string.IsNullOrEmpty(CurrUser.LoginProjectId))
{
ShowNotify("未查询到当前项目,请刷新页面重试。", MessageBoxIcon.Warning);
@@ -1508,12 +1526,54 @@ namespace FineUIPro.Web.CQMS.Performance
return;
}
else {
model.States = "1";
Funs.DB.SubmitChanges();
ShowNotify("提交成功,请等待领导打分。", MessageBoxIcon.Success);
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("PerformanceSubmit.aspx?PerformanceGid=" + PerformanceGid + "&CreateDateMonth=" + drpCompileDateMonth.Text.Trim(), ""),
"提交报表", Unit.Parse("440px"), Unit.Parse("300px")));
//model.States = "1";
//Funs.DB.SubmitChanges();
//ShowNotify("提交成功,请等待领导打分。", MessageBoxIcon.Success);
}
}
}
/// <summary>
/// 修改出差天数
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnDays_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(PerformanceGid))
{
ShowNotify("未查询到数据,请先生成表单。", MessageBoxIcon.Warning);
return;
}
else
{
//查询状态是否是0 不是0的不允许修改
var model = Funs.DB.CQMS_Performance.FirstOrDefault(x => x.PerformanceGid == PerformanceGid);
if (model == null)
{
ShowNotify("未查询到数据,请先生成表单。", MessageBoxIcon.Warning);
return;
}
else
{
if (CurrUser.UserId != Const.sysglyId && CurrUser.UserId != Const.hfnbdId)
{
if (model.States != "0")
{
ShowNotify("当前数据已经提交,不允许修改。", MessageBoxIcon.Warning);
return;
}
}
}
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("OutDayEdit.aspx?PerformanceGid=" + PerformanceGid, ""),
"修改出差天数", Unit.Parse("440px"), Unit.Parse("300px")));
}
}
#region excel
@@ -86,6 +86,15 @@ namespace FineUIPro.Web.CQMS.Performance
/// </remarks>
protected global::FineUIPro.Button btnSearch;
/// <summary>
/// Button2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button Button2;
/// <summary>
/// btnUpdateMonth 控件。
/// </summary>
@@ -140,6 +149,15 @@ namespace FineUIPro.Web.CQMS.Performance
/// </remarks>
protected global::FineUIPro.Window Window1;
/// <summary>
/// Window2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window2;
/// <summary>
/// Menu1 控件。
/// </summary>
@@ -109,7 +109,16 @@ namespace FineUIPro.Web.CQMS.Performance
}
}
//根据projectid加载CQMS_Performance表中成功的user数据
BLL.PerformanceService.InitUserDropDownList(drpUser, CurrUser.LoginProjectId, true);
//超级管理员
if (CurrUser.UserId != Const.sysglyId && CurrUser.UserId != Const.hfnbdId)
{
BLL.PerformanceService.InitUserDropDownListByUser(drpUser, CurrUser.LoginProjectId,CurrUser.UserId, true);
}
else {
BLL.PerformanceService.InitUserDropDownList(drpUser, CurrUser.LoginProjectId, true);
}
CreateUser = Request.QueryString["CreateUser"];
if (!string.IsNullOrEmpty(CreateUser))
{
@@ -144,13 +153,17 @@ namespace FineUIPro.Web.CQMS.Performance
{
var NowDate = Convert.ToDateTime(drpCompileDateMonth.Text.Trim());
var Month = 1;
var Year = NowDate.Year;
if (NowDate.Month != 12)
{
Month = NowDate.Month + 1;
}
else {
Year += 1;
}
//获取配置
var modelConfig = Funs.DB.CQMS_Performance_SetUp.FirstOrDefault(x => x.CreateYear == NowDate.Year.ToString() && x.SortIndex == Month);
var modelConfig = Funs.DB.CQMS_Performance_SetUp.FirstOrDefault(x => x.CreateYear == Year.ToString() && x.SortIndex == Month);
if (modelConfig != null)
{
int child3Index = 1;
@@ -1095,12 +1108,16 @@ namespace FineUIPro.Web.CQMS.Performance
//获取周数
var NowDate = Convert.ToDateTime(drpCompileDateMonth.Text.Trim());
var Month = 1;
var Year = NowDate.Year;
if (NowDate.Month != 12)
{
Month = NowDate.Month + 1;
}
else {
Year += 1;
}
var modelConfig = Funs.DB.CQMS_Performance_SetUp.FirstOrDefault(x => x.CreateYear == NowDate.Year.ToString() && x.SortIndex == Month);
var modelConfig = Funs.DB.CQMS_Performance_SetUp.FirstOrDefault(x => x.CreateYear == Year.ToString() && x.SortIndex == Month);
for (int i = 0; i < listChild1.Count; i++)
{
@@ -22,6 +22,7 @@
<f:DatePicker runat="server" Label="请选择年月" DateFormatString="yyyy-MM" EmptyText="请选择年月"
ID="drpCompileDateMonth" DisplayType="Month" ShowTodayButton="false" Required="true" ShowRedStar="true" LabelWidth="110px">
</f:DatePicker>
</Items>
</f:FormRow>
@@ -29,8 +30,10 @@
<Items>
<f:TextBox ID="txtHeadUserid" runat="server" Label="五环负责人" MaxLength="50" LabelWidth="110px" Required="true" ShowRedStar="true">
</f:TextBox>
<f:NumberBox ID="txtProOutputValue" runat="server" Label="本月完成专业产值" MaxLength="50" LabelWidth="150px" >
</f:NumberBox>
<f:TextBox ID="txtWorkRange" runat="server" Label="工作范围" MaxLength="50" LabelWidth="150px" Required="true" ShowRedStar="true">
</f:TextBox>
<%-- <f:NumberBox ID="txtProOutputValue" runat="server" Label="本月完成专业产值" MaxLength="50" LabelWidth="150px" >
</f:NumberBox>--%>
</Items>
</f:FormRow>
@@ -191,14 +191,15 @@ namespace FineUIPro.Web.CQMS.Performance
PerformanceGid = Guid.NewGuid().ToString();
modelP.PerformanceGid = PerformanceGid;
modelP.HeadUserid = txtHeadUserid.Text.Trim();
if (!string.IsNullOrEmpty(txtProOutputValue.Text.Trim()))
{
modelP.ProOutputValue = Convert.ToDecimal(txtProOutputValue.Text.Trim());
}
else {
modelP.ProOutputValue = 0;
}
//if (!string.IsNullOrEmpty(txtProOutputValue.Text.Trim()))
//{
// modelP.ProOutputValue = Convert.ToDecimal(txtProOutputValue.Text.Trim());
//}
//else {
// modelP.ProOutputValue = 0;
//}
modelP.WorkRange = txtWorkRange.Text.Trim();
modelP.SubUserids = txtSubUserids.Text.Trim();
modelP.SubpackageUserids = txtSubpackageUserids.Text.Trim();
modelP.TotalScore = 0;
@@ -626,7 +627,7 @@ namespace FineUIPro.Web.CQMS.Performance
var OneWeekDate3 = Convert.ToDateTime(modelConfig.SetUpStartDate);
#endregion
var OneWeekStartDate = Convert.ToDateTime(modelConfig.SetUpStartDate);
foreach (var item in listChild2)
{
Model.CQMS_Performance_Child3 modelChild3 = new Model.CQMS_Performance_Child3();
@@ -679,7 +680,7 @@ namespace FineUIPro.Web.CQMS.Performance
#region
//循环的天数
var Xhi = 1;
switch (OneWeekDate.DayOfWeek)
switch (OneWeekStartDate.DayOfWeek)
{
//星期天
case DayOfWeek.Sunday:
@@ -69,13 +69,13 @@ namespace FineUIPro.Web.CQMS.Performance
protected global::FineUIPro.TextBox txtHeadUserid;
/// <summary>
/// txtProOutputValue 控件。
/// txtWorkRange 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtProOutputValue;
protected global::FineUIPro.TextBox txtWorkRange;
/// <summary>
/// txtSubUserids 控件。
@@ -0,0 +1,44 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PerformanceSubmit.aspx.cs" Inherits="FineUIPro.Web.CQMS.Performance.PerformanceSubmit" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>提交数据</title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" runat="server" />
<f:Window ID="Window1" runat="server" IsModal="false" EnableClose="false" EnableResize="true" ShowHeader="false"
AutoScroll="true" Width="1200px" Height="800px">
<Items>
<f:Form ID="SimpleForm2" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="出差天数">
<Rows>
<f:FormRow>
<Items>
<f:DropDownList ID="drpUser" runat="server" EnableEdit="false" Label="选择审核人"
ForceSelection="false"
AutoPostBack="true" >
</f:DropDownList>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
<Toolbars>
<f:Toolbar ID="Toolbar4" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="Button2" Icon="SystemSave" ConfirmText="请注意:提交后不可修改。是否确认提交数据?" Text="提交报表" ToolTip="提交报表" runat="server" ValidateForms="SimpleForm2"
OnClick="btnEdit_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Window>
</form>
</body>
</html>
@@ -0,0 +1,76 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Web.UI.WebControls;
using BLL;
using Model;
using Newtonsoft.Json.Linq;
namespace FineUIPro.Web.CQMS.Performance
{
public partial class PerformanceSubmit : PageBase
{
/// <summary>
/// 主键
/// </summary>
public string PerformanceGid
{
get
{
return (string)ViewState["PerformanceGid"];
}
set
{
ViewState["PerformanceGid"] = value;
}
}
/// <summary>
/// 日期
/// </summary>
public string CreateDateMonth
{
get
{
return (string)ViewState["CreateDateMonth"];
}
set
{
ViewState["CreateDateMonth"] = value;
}
}
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
//主键
PerformanceGid = Request.Params["PerformanceGid"];
CreateDateMonth = Request.Params["CreateDateMonth"];
//加载当前项目下的审核人
UserService.InitUserDropDownList(drpUser, CurrUser.LoginProjectId, true);
}
}
protected void btnEdit_Click(object sender, EventArgs e) {
if (drpUser.SelectedValue == Const._Null)
{
ShowNotify("请选择审核人。", MessageBoxIcon.Warning);
}
else {
var model = Funs.DB.CQMS_Performance.FirstOrDefault(x => x.PerformanceGid == PerformanceGid);
model.States = "1";
model.ScorMan = drpUser.SelectedValue;
Funs.DB.SubmitChanges();
ShowNotify("提交成功,请等待领导打分。", MessageBoxIcon.Success);
ViewState["CompileDateMonth"] = CreateDateMonth;
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
}
}
}
}
@@ -0,0 +1,80 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.CQMS.Performance
{
public partial class PerformanceSubmit
{
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Window1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window1;
/// <summary>
/// SimpleForm2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form SimpleForm2;
/// <summary>
/// drpUser 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpUser;
/// <summary>
/// Toolbar4 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar4;
/// <summary>
/// Button2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button Button2;
}
}
@@ -89,6 +89,19 @@
</f:FormRow>
</Rows>
</f:Form>
<f:Form ID="Form2" ShowBorder="false" ShowHeader="true" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" Title="7、工作负荷(60%)(专业完成产值)">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtWorkloads" runat="server" Label="专业完成产值" MaxLength="50" Required="true" ShowRedStar="true" LabelWidth="100px">
</f:NumberBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
<Toolbars>
@@ -39,6 +39,10 @@ namespace FineUIPro.Web.CQMS.Performance
txtScore4.Text = child1List[3].EvaScore.ToString();
txtScore5.Text = child1List[4].EvaScore.ToString();
txtScore6.Text = child1List[5].EvaScore.ToString();
//根据主键加载主表
var pModel = Funs.DB.CQMS_Performance.FirstOrDefault(x => x.PerformanceGid == PerformanceGid);
txtWorkloads.Text = pModel.Workloads.ToString();
}
else
{
@@ -76,6 +80,10 @@ namespace FineUIPro.Web.CQMS.Performance
child2Model6.EvaScore = Convert.ToDecimal(txtScore6.Text.Trim());
db.SubmitChanges();
var pModel = Funs.DB.CQMS_Performance.FirstOrDefault(x => x.PerformanceGid == PerformanceGid);
pModel.Workloads = Convert.ToDecimal(txtWorkloads.Text);
Funs.DB.SubmitChanges();
ShowNotify("保存成功。", MessageBoxIcon.Success);
}
}
@@ -149,6 +149,24 @@ namespace FineUIPro.Web.CQMS.Performance
/// </remarks>
protected global::FineUIPro.NumberBox txtScore6;
/// <summary>
/// Form2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form2;
/// <summary>
/// txtWorkloads 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtWorkloads;
/// <summary>
/// Toolbar4 控件。
/// </summary>
@@ -79,13 +79,17 @@ namespace FineUIPro.Web.CQMS.Performance
var CreateDateWeek = db.CQMS_Performance.FirstOrDefault(x => x.PerformanceGid == PerformanceGid).CreateDateMonth;
var datesConfig = Convert.ToDateTime(CreateDateMonth);
var Year = datesConfig.Year;
var Month = 1;
if (datesConfig.Month != 12)
{
Month = datesConfig.Month + 1;
}
else {
Year += 1;
}
//按照日期查询是否有设置
var modelConfig = Funs.DB.CQMS_Performance_SetUp.FirstOrDefault(x => x.CreateYear == datesConfig.Year.ToString() && x.SortIndex == Month);
var modelConfig = Funs.DB.CQMS_Performance_SetUp.FirstOrDefault(x => x.CreateYear == Year.ToString() && x.SortIndex == Month);
List<CustomClass> myList = new List<CustomClass>();
myList.Add(new CustomClass("1", "第一周"));
myList.Add(new CustomClass("2", "第二周"));
@@ -200,7 +200,7 @@
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtTaskCompletContent8" runat="server" Label="本周工作任务完成情况" MaxLength="500" LabelWidth="120px" Required="true" ShowRedStar="true">
<f:TextBox ID="txtTaskCompletContent8" runat="server" Label="本周工作任务完成情况" MaxLength="500" LabelWidth="120px" >
</f:TextBox>
</Items>
</f:FormRow>