五环大屏;进度管理;等
This commit is contained in:
@@ -72,6 +72,10 @@
|
||||
<f:RenderField Width="95px" ColumnID="RealDate" DataField="RealDate" SortField="RealDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="实际完成时间" TextAlign="Center" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="IsOKStr" DataField="IsOKStr"
|
||||
SortField="IsOKStr" FieldType="String" HeaderText="完成状态" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="Remark" DataField="Remark"
|
||||
SortField="Remark" FieldType="String" HeaderText="备注" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
@@ -89,7 +93,7 @@
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<Items>
|
||||
<f:MenuButton ID="btnMenuModify" EnablePostBack="true" runat="server" Hidden="true" Icon="Pencil" Text="修改"
|
||||
<f:MenuButton ID="btnMenuModify" EnablePostBack="true" runat="server" Hidden="true" Icon="Pencil" Text="修改"
|
||||
OnClick="btnMenuModify_Click">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDel" EnablePostBack="true" runat="server" Hidden="true" Icon="Delete" Text="删除" ConfirmText="确定删除当前数据?"
|
||||
|
||||
@@ -123,7 +123,7 @@ namespace FineUIPro.Web.JDGL.Check
|
||||
/// <returns></returns>
|
||||
private DataTable BindData()
|
||||
{
|
||||
string strSql = @"select mp.*,u.UnitName
|
||||
string strSql = @"select mp.*,u.UnitName,case mp.IsOK when 1 then '已完成' when 0 then '未完成' else '' end as IsOKStr
|
||||
,DutyPersonName = STUFF((SELECT ',' + p.UserName FROM dbo.Sys_User as p where PATINDEX('%,' + RTRIM(p.UserId) + ',%', ',' + mp.DutyPerson + ',') > 0 FOR XML PATH('')), 1, 1,'')
|
||||
from [dbo].[JDGL_MonthPlan] mp
|
||||
left join Base_Unit u on u.UnitId=mp.UnitId
|
||||
@@ -318,6 +318,9 @@ where mp.ProjectId=@ProjectId and mp.Months=@month order by mp.SortIndex";
|
||||
cell.SetCellValue(realDate);
|
||||
cell = row.CreateCell(6);
|
||||
cell.CellStyle = cellStyle;
|
||||
cell.SetCellValue(tb.Rows[j]["IsOKStr"].ToString());
|
||||
cell = row.CreateCell(7);
|
||||
cell.CellStyle = cellStyle;
|
||||
cell.SetCellValue(tb.Rows[j]["Remark"].ToString());
|
||||
i++;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpUnit" runat="server" Label="责任单位" LabelWidth="150px" AutoSelectFirstItem="false" Required="true" ShowRedStar="true">
|
||||
<f:DropDownList ID="drpUnit" runat="server" Label="责任单位" LabelWidth="150px" AutoSelectFirstItem="false" Required="true" ShowRedStar="true">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
@@ -37,13 +37,16 @@
|
||||
<f:TextArea ID="txtNodeContent" runat="server" Label="节点内容" LabelAlign="Right" LabelWidth="150px" Required="true" ShowRedStar="true"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DatePicker ID="txtPlanDate" runat="server" Label="计划完成时间" LabelAlign="Right" LabelWidth="150px" Required="true" ShowRedStar="true">
|
||||
</f:DatePicker>
|
||||
<f:DatePicker ID="txtRealDate" runat="server" Label="实际完成时间" LabelAlign="Right" LabelWidth="150px">
|
||||
<f:DatePicker ID="txtRealDate" runat="server" Label="实际完成时间" LabelAlign="Right" LabelWidth="150px" AutoPostBack="true" OnTextChanged="RealDate_TextChanged" >
|
||||
</f:DatePicker>
|
||||
<f:DropDownList ID="drpIsOK" runat="server" Label="完成状态" LabelAlign="Right" AutoSelectFirstItem="false" LabelWidth="150px">
|
||||
<f:ListItem Text="已完成" Value="已完成" />
|
||||
<f:ListItem Text="未完成" Value="未完成" />
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
|
||||
@@ -78,7 +78,14 @@ namespace FineUIPro.Web.JDGL.Check
|
||||
txtMonths.Text = string.Format("{0:yyyy-MM}", model.Months);
|
||||
txtMonths.Readonly = true;
|
||||
drpUnit.SelectedValue = model.UnitId;
|
||||
|
||||
if (model.IsOK == true)
|
||||
{
|
||||
this.drpIsOK.SelectedValue = "已完成";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.drpIsOK.SelectedValue = "未完成";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(model.DutyPerson))
|
||||
{
|
||||
List<string> listPersonId = model.DutyPerson.Split(',').ToList();
|
||||
@@ -100,6 +107,20 @@ namespace FineUIPro.Web.JDGL.Check
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 完成时间选择后触发事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void RealDate_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
var txtRealDate = this.txtRealDate.Text.Trim();
|
||||
if (!string.IsNullOrWhiteSpace(txtRealDate))
|
||||
{
|
||||
this.drpIsOK.SelectedValue = "已完成";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存
|
||||
/// </summary>
|
||||
@@ -118,6 +139,7 @@ namespace FineUIPro.Web.JDGL.Check
|
||||
CompileMan = this.CurrUser.UserId,
|
||||
CompileDate = DateTime.Now,
|
||||
};
|
||||
model.IsOK = this.drpIsOK.SelectedValue == "已完成";
|
||||
if (!string.IsNullOrWhiteSpace(this.txtRealDate.Text))
|
||||
{
|
||||
model.RealDate = Funs.GetNewDateTime(this.txtRealDate.Text);
|
||||
|
||||
@@ -95,6 +95,15 @@ namespace FineUIPro.Web.JDGL.Check
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtRealDate;
|
||||
|
||||
/// <summary>
|
||||
/// drpIsOK 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpIsOK;
|
||||
|
||||
/// <summary>
|
||||
/// txtRemark 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -76,6 +76,12 @@
|
||||
<f:RenderField Width="95px" ColumnID="RealDate" DataField="RealDate" SortField="RealDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="实际完成时间" TextAlign="Center" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:TemplateField ColumnID="IsOK" Width="100px" HeaderText="完成状态" HeaderTextAlign="Center"
|
||||
TextAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label5" runat="server" Text='<%# ConvertIsOK(Eval("IsOK")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="100px" ColumnID="Remark" DataField="Remark"
|
||||
SortField="Remark" FieldType="String" HeaderText="备注" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
|
||||
@@ -267,8 +267,6 @@ namespace FineUIPro.Web.JDGL.Check
|
||||
Target = Target.Self
|
||||
};
|
||||
alert.Show();
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -396,6 +394,7 @@ namespace FineUIPro.Web.JDGL.Check
|
||||
string col3 = pds.Rows[i][3].ToString().Trim();
|
||||
string col4 = pds.Rows[i][4].ToString().Trim();
|
||||
string col5 = pds.Rows[i][5].ToString().Trim();
|
||||
string col6 = pds.Rows[i][6].ToString().Trim();
|
||||
if (!string.IsNullOrEmpty(col0))//责任单位
|
||||
{
|
||||
var projectUnit = projectUnits.FirstOrDefault(x => x.UnitName == col0);
|
||||
@@ -428,13 +427,18 @@ namespace FineUIPro.Web.JDGL.Check
|
||||
}
|
||||
MonthPlan.DutyPerson = lstUserIds;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(col5))//完成状态
|
||||
{
|
||||
MonthPlan.IsOK = col5 == "已完成";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(col4))//实际完成时间
|
||||
{
|
||||
MonthPlan.RealDate = Funs.GetNewDateTime(col4);
|
||||
MonthPlan.IsOK = true;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(col5))//备注
|
||||
if (!string.IsNullOrEmpty(col6))//备注
|
||||
{
|
||||
MonthPlan.Remark = col5;
|
||||
MonthPlan.Remark = col6;
|
||||
}
|
||||
MonthPlan.SortIndex = i + 1;
|
||||
MonthPlan.MonthPlanId = SQLHelper.GetNewID(typeof(Model.JDGL_MonthPlan));
|
||||
@@ -489,6 +493,7 @@ namespace FineUIPro.Web.JDGL.Check
|
||||
newMonthPlan.PlanDate = MonthPlans[i].PlanDate;
|
||||
newMonthPlan.DutyPerson = MonthPlans[i].DutyPerson;
|
||||
newMonthPlan.RealDate = MonthPlans[i].RealDate;
|
||||
newMonthPlan.IsOK = MonthPlans[i].IsOK;
|
||||
newMonthPlan.Remark = MonthPlans[i].Remark;
|
||||
newMonthPlan.SortIndex = MonthPlans[i].SortIndex;
|
||||
newMonthPlan.CompileMan = this.CurrUser.UserId;
|
||||
@@ -501,6 +506,7 @@ namespace FineUIPro.Web.JDGL.Check
|
||||
oldMonthPlan.PlanDate = MonthPlans[i].PlanDate;
|
||||
oldMonthPlan.DutyPerson = MonthPlans[i].DutyPerson;
|
||||
oldMonthPlan.RealDate = MonthPlans[i].RealDate;
|
||||
oldMonthPlan.IsOK = MonthPlans[i].IsOK;
|
||||
oldMonthPlan.Remark = MonthPlans[i].Remark;
|
||||
BLL.MonthPlanService.UpdateMonthPlan(oldMonthPlan);
|
||||
}
|
||||
@@ -593,6 +599,27 @@ namespace FineUIPro.Web.JDGL.Check
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 完成状态
|
||||
/// </summary>
|
||||
/// <param name="registrationId"></param>
|
||||
/// <returns></returns>
|
||||
protected string ConvertIsOK(object IsOK)
|
||||
{
|
||||
string name = string.Empty;
|
||||
if (IsOK != null)
|
||||
{
|
||||
if (IsOK.ToString() == "True")
|
||||
{
|
||||
name = "已完成";
|
||||
}
|
||||
else
|
||||
{
|
||||
name = "未完成";
|
||||
}
|
||||
}
|
||||
return name;
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
|
||||
+31
-20
@@ -7,11 +7,13 @@
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.JDGL.Check {
|
||||
|
||||
|
||||
public partial class MonthPlanIn {
|
||||
|
||||
namespace FineUIPro.Web.JDGL.Check
|
||||
{
|
||||
|
||||
|
||||
public partial class MonthPlanIn
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.JDGL.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.JDGL.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.JDGL.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.JDGL.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtMonth 控件。
|
||||
/// </summary>
|
||||
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.JDGL.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtMonth;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnAudit 控件。
|
||||
/// </summary>
|
||||
@@ -65,7 +67,7 @@ namespace FineUIPro.Web.JDGL.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAudit;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnImport 控件。
|
||||
/// </summary>
|
||||
@@ -74,7 +76,7 @@ namespace FineUIPro.Web.JDGL.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnImport;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
@@ -83,7 +85,7 @@ namespace FineUIPro.Web.JDGL.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnDownLoad 控件。
|
||||
/// </summary>
|
||||
@@ -92,7 +94,7 @@ namespace FineUIPro.Web.JDGL.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnDownLoad;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// fuAttachUrl 控件。
|
||||
/// </summary>
|
||||
@@ -101,7 +103,7 @@ namespace FineUIPro.Web.JDGL.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.FileUpload fuAttachUrl;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
@@ -110,7 +112,7 @@ namespace FineUIPro.Web.JDGL.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Label2 控件。
|
||||
/// </summary>
|
||||
@@ -119,7 +121,7 @@ namespace FineUIPro.Web.JDGL.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lbImageUrl 控件。
|
||||
/// </summary>
|
||||
@@ -128,7 +130,7 @@ namespace FineUIPro.Web.JDGL.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lbImageUrl;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
@@ -137,7 +139,16 @@ namespace FineUIPro.Web.JDGL.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Label5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label5;
|
||||
|
||||
/// <summary>
|
||||
/// hdFileName 控件。
|
||||
/// </summary>
|
||||
@@ -146,7 +157,7 @@ namespace FineUIPro.Web.JDGL.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdFileName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// hdCheckResult 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -775,7 +775,7 @@ namespace FineUIPro.Web.JDGL.Check
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// 完成状态
|
||||
/// </summary>
|
||||
/// <param name="registrationId"></param>
|
||||
/// <returns></returns>
|
||||
|
||||
Reference in New Issue
Block a user