diff --git a/CreateModel.bat b/CreateModel.bat index 7f29540..2b82dc5 100644 --- a/CreateModel.bat +++ b/CreateModel.bat @@ -27,7 +27,7 @@ REM -------------- @echo. @call "%VS100COMNTOOLS%"vsvars32.bat -SqlMetal /views /server:.\SQL2016 /database:EProjectDB /code:%Model_ROOT%\Model.cs /namespace:Model +SqlMetal /views /server:.\SQL2022 /database:EProjectDB /code:%Model_ROOT%\Model.cs /namespace:Model @ECHO pause diff --git a/EProject/BLL/BLL.csproj b/EProject/BLL/BLL.csproj index e9c8cdf..5c92bb8 100644 --- a/EProject/BLL/BLL.csproj +++ b/EProject/BLL/BLL.csproj @@ -158,6 +158,7 @@ + @@ -165,6 +166,7 @@ + diff --git a/EProject/BLL/BaseInfo/QuantityDesctiptionService.cs b/EProject/BLL/BaseInfo/QuantityDesctiptionService.cs new file mode 100644 index 0000000..4ad0a3d --- /dev/null +++ b/EProject/BLL/BaseInfo/QuantityDesctiptionService.cs @@ -0,0 +1,178 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Security.Cryptography; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + public class QuantityDesctiptionService + { + public static Model.Base_QuantityDesctiption GetQuantityDesctiptionById(string keyId) + { + return Funs.DB.Base_QuantityDesctiption.FirstOrDefault(e => e.KeyId == keyId); + } + + /// + /// 增加 + /// + /// + public static void AddQuantityDesctiption(Model.Base_QuantityDesctiption des) + { + Model.Base_QuantityDesctiption newDes = new Model.Base_QuantityDesctiption(); + newDes.KeyId = des.KeyId; + newDes.DepartId = des.DepartId; + newDes.DisciplinesWBSId = des.DisciplinesWBSId; + newDes.QuantityDesctiption = des.QuantityDesctiption; + newDes.PlanMHRsUnit = des.PlanMHRsUnit; + Funs.DB.Base_QuantityDesctiption.InsertOnSubmit(newDes); + Funs.DB.SubmitChanges(); + } + + /// + /// 修改 + /// + /// + public static void UpdateQuantityDesctiption(Model.Base_QuantityDesctiption des) + { + Model.Base_QuantityDesctiption newDes = Funs.DB.Base_QuantityDesctiption.FirstOrDefault(e => e.KeyId == des.KeyId); + if (newDes != null) + { + newDes.DepartId = des.DepartId; + newDes.DisciplinesWBSId = des.DisciplinesWBSId; + newDes.QuantityDesctiption = des.QuantityDesctiption; + newDes.PlanMHRsUnit = des.PlanMHRsUnit; + Funs.DB.SubmitChanges(); + } + } + + /// + /// 删除 + /// + /// + public static void DeleteQuantityDesctiptionById(string keyId) + { + Model.Base_QuantityDesctiption newDes = Funs.DB.Base_QuantityDesctiption.FirstOrDefault(e => e.KeyId == keyId); + if (newDes != null) + { + Funs.DB.Base_QuantityDesctiption.DeleteOnSubmit(newDes); + Funs.DB.SubmitChanges(); + } + } + + /// + /// 验证是否存在 + /// + /// + /// + /// + /// + /// + public static bool IsExitQuantityDesctiption(string departId, string DisciplinesWBSId, string quantityDesctiption, string id) + { + var q = Funs.DB.Base_QuantityDesctiption.FirstOrDefault(x => x.DepartId == departId && x.DisciplinesWBSId == DisciplinesWBSId && x.QuantityDesctiption == quantityDesctiption && x.KeyId != id); + if (q != null) + { + return true; + } + else + { + return false; + } + } + + #region Identifier下拉值加载 + public static void InitIdentifierDropDownList(FineUIPro.DropDownList dropName,string type, bool isShowPlease) + { + dropName.DataValueField = "DisciplinesWBSCode"; + dropName.DataTextField = "DisciplinesWBSCode"; + dropName.DataSource = GetDisciplinesWBSCodeList(type); + dropName.DataBind(); + if (isShowPlease) + { + Funs.FineUIPleaseSelect(dropName,"-请选择-"); + } + } + + public static List GetDisciplinesWBSCodeList(string type) + { + return (from x in Funs.DB.Base_QuantityDesctiption + join y in Funs.DB.Base_DisciplinesWBS on x.DisciplinesWBSId equals y.DisciplinesWBSId + where x.DepartId == type + orderby y.DisciplinesWBSCode + select y.DisciplinesWBSCode).Distinct().ToList(); + } + #endregion + + #region Descipline下拉值加载 + public static void InitDesciplineDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease,string type, string disciplinesWBSCode) + { + dropName.DataValueField = "DisciplinesWBSName"; + dropName.DataTextField = "DisciplinesWBSName"; + dropName.DataSource = GetDesciplineList(type,disciplinesWBSCode); + dropName.DataBind(); + if (isShowPlease) + { + Funs.FineUIPleaseSelect(dropName, "-请选择-"); + } + } + + public static List GetDesciplineList(string type,string disciplinesWBSCode) + { + return (from x in Funs.DB.Base_QuantityDesctiption + join y in Funs.DB.Base_DisciplinesWBS on x.DisciplinesWBSId equals y.DisciplinesWBSId + where y.DisciplinesWBSCode == disciplinesWBSCode && x.DepartId == type + orderby y.DisciplinesWBSName + select y.DisciplinesWBSName).Distinct().ToList(); + } + #endregion + + #region Quantity Desctiption 下拉值加载 + public static void InitQuantityDesctiptionDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease,string type, string disciplinesWBSCode, string disciplinesWBSName) + { + dropName.DataValueField = "QuantityDesctiption"; + dropName.DataTextField = "QuantityDesctiption"; + dropName.DataSource = GetQuantityDesctiptionList(type,disciplinesWBSCode, disciplinesWBSName); + dropName.DataBind(); + if (isShowPlease) + { + Funs.FineUIPleaseSelect(dropName, "-请选择-"); + } + } + + public static List GetQuantityDesctiptionList(string type, string disciplinesWBSCode, string disciplinesWBSName) + { + return (from x in Funs.DB.Base_QuantityDesctiption + join y in Funs.DB.Base_DisciplinesWBS on x.DisciplinesWBSId equals y.DisciplinesWBSId + where x.DepartId == type && y.DisciplinesWBSCode == disciplinesWBSCode && y.DisciplinesWBSName == disciplinesWBSName + orderby x.QuantityDesctiption + select x.QuantityDesctiption).Distinct().ToList(); + } + #endregion + + #region PlanMHRsUnit 下拉值加载 + public static void InitPlanMHRsUnitDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease,string type, string disciplinesWBSCode, string disciplinesWBSName, string quantityDesctiption) + { + dropName.DataValueField = "PlanMHRsUnit"; + dropName.DataTextField = "PlanMHRsUnit"; + dropName.DataSource = GetPlanMHRsUnitList(type,disciplinesWBSCode, disciplinesWBSName, quantityDesctiption); + dropName.DataBind(); + if (isShowPlease) + { + Funs.FineUIPleaseSelect(dropName, "-请选择-"); + } + } + + public static List GetPlanMHRsUnitList(string type, string disciplinesWBSCode, string disciplinesWBSName, string quantityDesctiption) + { + return (from x in Funs.DB.Base_QuantityDesctiption + join y in Funs.DB.Base_DisciplinesWBS on x.DisciplinesWBSId equals y.DisciplinesWBSId + where x.DepartId == type && y.DisciplinesWBSCode == disciplinesWBSCode && y.DisciplinesWBSName == disciplinesWBSName + && x.QuantityDesctiption == quantityDesctiption + orderby x.PlanMHRsUnit + select x.PlanMHRsUnit.ToString()).Distinct().ToList(); + } + #endregion + } +} diff --git a/EProject/BLL/Common/CommonService.cs b/EProject/BLL/Common/CommonService.cs index 1270efa..149bd2c 100644 --- a/EProject/BLL/Common/CommonService.cs +++ b/EProject/BLL/Common/CommonService.cs @@ -293,7 +293,10 @@ namespace BLL if (user.UserId == Const.GlyId) //// 如果是管理员或者本部人员返回所有菜单 { var sysMenu = from x in Funs.DB.Sys_Menu orderby x.SortIndex select x; - reMenuList = sysMenu.ToList(); + if (sysMenu.Count() > 0) + { + reMenuList = sysMenu.ToList(); + } } else { @@ -302,7 +305,10 @@ namespace BLL where y.RoleId == user.RoleId orderby x.SortIndex select x; - reMenuList = sysMenuRole.ToList(); + if (sysMenuRole.Count() > 0) + { + reMenuList = sysMenuRole.ToList(); + } // PM,EM,CM权限特殊处理 List pm = (from x in Funs.DB.Editor_EProject select x.ProjectControl_ProjectManagerId).ToList(); @@ -312,13 +318,19 @@ namespace BLL { Model.Sys_Menu addSupMenu = (from x in Funs.DB.Sys_Menu where x.MenuId == "1FA19FE4-D8B9-4D1B-8EB0-CAC05B71AFBB" select x).First(); Model.Sys_Menu addMenu = (from x in Funs.DB.Sys_Menu where x.MenuId == Const.PMEditorMenuId select x).First(); - reMenuList.Add(addMenu); + if (addMenu != null) + { + reMenuList.Add(addMenu); + } } if (cm.Contains(user.UserId)) { Model.Sys_Menu addSupMenu = (from x in Funs.DB.Sys_Menu where x.MenuId == "1FA19FE4-D8B9-4D1B-8EB0-CAC05B71AFBB" select x).First(); Model.Sys_Menu addMenu = (from x in Funs.DB.Sys_Menu where x.MenuId == Const.CMEditorMenuId select x).First(); - reMenuList.Add(addMenu); + if (addMenu != null) + { + reMenuList.Add(addMenu); + } } // 对资源模块的特殊处理:CTE/M具有RP权限 @@ -326,8 +338,14 @@ namespace BLL { Model.Sys_Menu addSupMenu = (from x in Funs.DB.Sys_Menu where x.MenuId == "72CDB9E2-F44B-4F96-A578-3271211FDC15" select x).First(); Model.Sys_Menu addMenu = (from x in Funs.DB.Sys_Menu where x.MenuId == Const.ResourcePlanMenuId select x).First(); - reMenuList.Add(addSupMenu); - reMenuList.Add(addMenu); + if (addSupMenu != null) + { + reMenuList.Add(addSupMenu); + } + if (addMenu != null) + { + reMenuList.Add(addMenu); + } } } diff --git a/EProject/BLL/Common/Const.cs b/EProject/BLL/Common/Const.cs index 8a5b19e..f237347 100644 --- a/EProject/BLL/Common/Const.cs +++ b/EProject/BLL/Common/Const.cs @@ -299,6 +299,12 @@ namespace BLL /// 超链接设置 /// public const string HyperLinkSetMenuId = "CE289C0B-7E32-4DD3-B02E-60368EE47CCB"; + + /// + /// Key Quantity-QuantityDesctiption + /// + public const string QuantityDesctiptionMenuId = "17E4B346-13C4-4751-8C8A-8F8A3C7CF9DD"; + #endregion #region 编辑器 @@ -356,6 +362,11 @@ namespace BLL /// 成本报告 /// public const string CostReportMenuId = "02069175-4901-4325-8019-3442D409233E"; + + /// + /// Key Quantity Editor + /// + public const string KeyQuantityMenuId = "070C3436-1408-430B-B8BD-C6D2CCB80103"; #endregion #region 资源计划 @@ -736,6 +747,11 @@ namespace BLL /// public const string CMTDCString = "CMTDC"; + /// + /// 设计输入策划 + /// + public const string DesignPlanString = "DesignPlan"; + /// /// 设计输入提醒 /// diff --git a/EProject/BLL/EditorManage/EProjectService.cs b/EProject/BLL/EditorManage/EProjectService.cs index 20a4c96..cfbb276 100644 --- a/EProject/BLL/EditorManage/EProjectService.cs +++ b/EProject/BLL/EditorManage/EProjectService.cs @@ -122,6 +122,7 @@ namespace BLL newEProject.StudyWo = eProject.StudyWo; newEProject.CreateDate = eProject.CreateDate; newEProject.CreatePerson = eProject.CreatePerson; + newEProject.ProjectControl_RFSU_CloseDate = eProject.ProjectControl_RFSU_CloseDate; db.Editor_EProject.InsertOnSubmit(newEProject); db.SubmitChanges(); @@ -211,6 +212,7 @@ namespace BLL newEProject.StudyWo = eProject.StudyWo; newEProject.CreateDate = eProject.CreateDate; newEProject.CreatePerson = eProject.CreatePerson; + newEProject.ProjectControl_RFSU_CloseDate = eProject.ProjectControl_RFSU_CloseDate; //if (eProject.ProjectControl_JobStatus != "Hold") //{ // newEProject.Job_Hold =null; diff --git a/EProject/BLL/EditorManage/KeyQuantityService.cs b/EProject/BLL/EditorManage/KeyQuantityService.cs new file mode 100644 index 0000000..790787f --- /dev/null +++ b/EProject/BLL/EditorManage/KeyQuantityService.cs @@ -0,0 +1,89 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Web.UI.WebControls; +using System.Windows.Forms; + +namespace BLL +{ + /// + /// Key Quantity + /// + public class KeyQuantityService + { + /// + /// 根据主键获取Key Quantity + /// + /// + /// + public static Model.Editor_KeyQuantity GetKeyQuantityById(string keyQuantityId) + { + return Funs.DB.Editor_KeyQuantity.FirstOrDefault(e => e.KeyQuantityId == keyQuantityId); + } + + public static decimal? GetSumPlanMHRsByKeyId(string eprojectId, string identifier, string descipline) + { + decimal? sum = 0; + sum = (from x in Funs.DB.Editor_KeyQuantity where x.EProjectId == eprojectId && x.Identifier == identifier && x.Descipline == descipline select x.PlanMHRs).Sum(); + return sum; + } + + /// + /// 添加Key Quantity + /// + /// + public static void AddKeyQuantity(Model.Editor_KeyQuantity keyQuantity) + { + Model.Editor_KeyQuantity newKeyQuantity = new Model.Editor_KeyQuantity(); + newKeyQuantity.KeyQuantityId = keyQuantity.KeyQuantityId; + newKeyQuantity.EProjectId = keyQuantity.EProjectId; + newKeyQuantity.KeyId = keyQuantity.KeyId; + newKeyQuantity.InputQuantity = keyQuantity.InputQuantity; + newKeyQuantity.PlanMHRs = keyQuantity.PlanMHRs; + newKeyQuantity.Identifier = keyQuantity.Identifier; + newKeyQuantity.Descipline = keyQuantity.Descipline; + newKeyQuantity.QuantityDesctiption = keyQuantity.QuantityDesctiption; + newKeyQuantity.PlanMHRsUnit = keyQuantity.PlanMHRsUnit; + newKeyQuantity.Type = keyQuantity.Type; + Funs.DB.Editor_KeyQuantity.InsertOnSubmit(newKeyQuantity); + Funs.DB.SubmitChanges(); + } + + /// + /// 修改key Quantity + /// + /// + public static void UpdateKeyQuantity(Model.Editor_KeyQuantity keyQuantity) + { + Model.Editor_KeyQuantity newKeyQuantity = Funs.DB.Editor_KeyQuantity.FirstOrDefault(e => e.KeyQuantityId == keyQuantity.KeyQuantityId); + if (newKeyQuantity != null) + { + newKeyQuantity.KeyId = keyQuantity.KeyId; + newKeyQuantity.InputQuantity = keyQuantity.InputQuantity; + newKeyQuantity.PlanMHRs = keyQuantity.PlanMHRs; + newKeyQuantity.Identifier = keyQuantity.Identifier; + newKeyQuantity.Descipline = keyQuantity.Descipline; + newKeyQuantity.QuantityDesctiption = keyQuantity.QuantityDesctiption; + newKeyQuantity.PlanMHRsUnit = keyQuantity.PlanMHRsUnit; + newKeyQuantity.Type = keyQuantity.Type; + Funs.DB.SubmitChanges(); + } + } + + /// + /// 根据主键删除Key Quantity + /// + /// + public static void DeleteKeyQuantityById(string keyQuantityId) + { + Model.Editor_KeyQuantity keyQuantity = Funs.DB.Editor_KeyQuantity.FirstOrDefault(e => e.KeyQuantityId == keyQuantityId); + if (keyQuantity != null) + { + Funs.DB.Editor_KeyQuantity.DeleteOnSubmit(keyQuantity); + Funs.DB.SubmitChanges(); + } + } + } +} diff --git a/EProject/BLL/ManHours/PlanService.cs b/EProject/BLL/ManHours/PlanService.cs index dec7067..42f2dbd 100644 --- a/EProject/BLL/ManHours/PlanService.cs +++ b/EProject/BLL/ManHours/PlanService.cs @@ -72,6 +72,7 @@ namespace BLL newPlan.ManHours = plan.ManHours; newPlan.AccountDisabled = plan.AccountDisabled; newPlan.IsClose = plan.IsClose; + newPlan.Phase = plan.Phase; Funs.DB.ManHours_Plan.InsertOnSubmit(newPlan); Funs.DB.SubmitChanges(); } diff --git a/EProject/BLL/SysManage/Sys_UserService.cs b/EProject/BLL/SysManage/Sys_UserService.cs index e9c4096..f111f3f 100644 --- a/EProject/BLL/SysManage/Sys_UserService.cs +++ b/EProject/BLL/SysManage/Sys_UserService.cs @@ -413,6 +413,15 @@ namespace BLL return (from x in Funs.DB.View_Sys_Users where x.IsPost == true orderby x.DepartName, x.UserName select x).ToList(); } + /// + /// ȡûбϢ + /// + /// + public static List GetAllUserViewList() + { + return (from x in Funs.DB.View_Sys_Users orderby x.DepartName, x.UserName select x).ToList(); + } + /// /// ȡCTEû /// @@ -448,7 +457,7 @@ namespace BLL dropName.DataGroupField = "DepartName"; dropName.DataValueField = "UserId"; dropName.DataTextField = "UserName"; - dropName.DataSource = BLL.Sys_UserService.GetUserViewList(); + dropName.DataSource = BLL.Sys_UserService.GetAllUserViewList(); dropName.DataBind(); if (isShowPlease) { diff --git a/EProject/EProject.sln b/EProject/EProject.sln index 06bbbcc..31f4cbf 100644 --- a/EProject/EProject.sln +++ b/EProject/EProject.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.28307.572 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35312.102 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FineUIPro.Web", "FineUIPro.Web\FineUIPro.Web.csproj", "{C88D3156-2D56-4DB0-922E-1995FB61C9BD}" EndProject diff --git a/EProject/FineUIPro.Web/BaseInfo/QuantityDesctiption.aspx b/EProject/FineUIPro.Web/BaseInfo/QuantityDesctiption.aspx new file mode 100644 index 0000000..69fa6e5 --- /dev/null +++ b/EProject/FineUIPro.Web/BaseInfo/QuantityDesctiption.aspx @@ -0,0 +1,124 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QuantityDesctiption.aspx.cs" Inherits="FineUIPro.Web.BaseInfo.QuantityDesctiption" %> + + + + + + + Key Quantity-QuantityDesctiption + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/EProject/FineUIPro.Web/BaseInfo/QuantityDesctiption.aspx.cs b/EProject/FineUIPro.Web/BaseInfo/QuantityDesctiption.aspx.cs new file mode 100644 index 0000000..37c3bc4 --- /dev/null +++ b/EProject/FineUIPro.Web/BaseInfo/QuantityDesctiption.aspx.cs @@ -0,0 +1,374 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Data; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using Model; +using static NPOI.HSSF.Util.HSSFColor; + +namespace FineUIPro.Web.BaseInfo +{ + public partial class QuantityDesctiption : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + GetButtonPower();//按钮权限 + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + + //部门(查询) + //this.drpDepartmentIdS.DataTextField = "DepartName"; + //this.drpDepartmentIdS.DataValueField = "DepartId"; + //this.drpDepartmentIdS.DataSource = BLL.DepartService.GetDepartList(); + //this.drpDepartmentIdS.DataBind(); + //Funs.FineUIPleaseSelect(this.drpDepartmentIdS); + BLL.ConstValue.InitSysConstDropDownList(this.drpTypes, "KeyQuantityType", true); + + //部门 + //this.drpDepartId.DataTextField = "DepartName"; + //this.drpDepartId.DataValueField = "DepartId"; + //this.drpDepartId.DataSource = BLL.DepartService.GetDepartList(); + //this.drpDepartId.DataBind(); + //Funs.FineUIPleaseSelect(this.drpDepartId); + BLL.ConstValue.InitSysConstDropDownList(this.drpType, "KeyQuantityType", false); + + //专业(查询) + this.drpDescipline.DataTextField = "DisciplinesWBSName"; + this.drpDescipline.DataValueField = "DisciplinesWBSId"; + this.drpDescipline.DataSource = from x in Funs.DB.Base_DisciplinesWBS select x; + this.drpDescipline.DataBind(); + Funs.FineUIPleaseSelect(this.drpDescipline); + + //专业 + this.drpDisciplinesWBSId.DataTextField = "DisciplinesWBSName"; + this.drpDisciplinesWBSId.DataValueField = "DisciplinesWBSId"; + this.drpDisciplinesWBSId.DataSource = from x in Funs.DB.Base_DisciplinesWBS select x; + this.drpDisciplinesWBSId.DataBind(); + Funs.FineUIPleaseSelect(this.drpDisciplinesWBSId); + + // 绑定表格 + BindGrid(); + } + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"SELECT qua.KeyId, + qua.DepartId, + qua.DisciplinesWBSId, + qua.QuantityDesctiption, + qua.PlanMHRsUnit, + wbs.DisciplinesWBSCode, + wbs.DisciplinesWBSName + FROM Base_QuantityDesctiption as qua + left join Base_DisciplinesWBS as wbs on wbs.DisciplinesWBSId = qua.DisciplinesWBSId where 1=1"; + List listStr = new List(); + if (this.drpTypes.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpTypes.SelectedValue)) + { + strSql += " AND qua.DepartId=@DepartId "; + listStr.Add(new SqlParameter("@DepartId", this.drpTypes.SelectedValue)); + } + if (this.drpDescipline.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpDescipline.SelectedValue)) + { + strSql += " AND qua.DisciplinesWBSId=@disciplinesWBSId "; + listStr.Add(new SqlParameter("@disciplinesWBSId", this.drpDescipline.SelectedValue)); + } + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + + /// + /// 改变索引事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + Grid1.PageIndex = e.NewPageIndex; + BindGrid(); + } + #endregion + + #region 分页下拉选择 + /// + /// 分页下拉选择 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + #endregion + + #region 增加 + /// + /// 增加按钮 + /// + /// + /// + protected void btnAdd_Click(object sender, EventArgs e) + { + EmptyText(); + } + #endregion + + #region 清空文本框 + /// + /// 清空文本框 + /// + private void EmptyText() + { + this.hfFormID.Text = string.Empty; + this.drpType.SelectedValue = Const._Null; + this.drpDisciplinesWBSId.SelectedValue = Const._Null; + this.txtDisciplinesWBSCode.Text = string.Empty; + this.txtQuantityDesctiption.Text = string.Empty; + this.txtPlanMHRsUnit.Text = string.Empty; + this.btnDelete.Enabled = false; + } + #endregion + + #region 选择行事件 + /// + /// 选择行事件 + /// + /// + /// + protected void Grid1_RowSelect(object sender, GridRowSelectEventArgs e) + { + EditData(); + } + #endregion + + #region 删除 + /// + /// 删除 + /// + /// + /// + protected void btnDelete_Click(object sender, EventArgs e) + { + BLL.QuantityDesctiptionService.DeleteQuantityDesctiptionById(hfFormID.Text); + BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "Delete the Key Quantity-QuantityDesctiption"); + // 重新绑定表格,并模拟点击[新增按钮] + BindGrid(); + //PageContext.RegisterStartupScript("onNewButtonClick();"); + + } + /// + /// 右键删除事件 + /// + /// + /// + protected void btnMenuDelete_Click(object sender, EventArgs e) + { + this.DeleteData(); + } + + /// + /// 删除方法 + /// + private void DeleteData() + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + + BLL.QuantityDesctiptionService.DeleteQuantityDesctiptionById(rowID); + BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "Delete the Key Quantity-QuantityDesctiption"); + } + + BindGrid(); + EmptyText(); + //PageContext.RegisterStartupScript("onNewButtonClick();"); + } + } + #endregion + + #region 编辑 + /// + /// 右键编辑事件 + /// + /// + /// + protected void btnMenuEdit_Click(object sender, EventArgs e) + { + this.EditData(); + } + + /// + /// 编辑数据方法 + /// + private void EditData() + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("Please select at least one record!", MessageBoxIcon.Warning); + return; + } + string Id = Grid1.SelectedRowID; + var cons = BLL.QuantityDesctiptionService.GetQuantityDesctiptionById(Id); + if (cons != null) + { + if (!string.IsNullOrEmpty(cons.DepartId)) + { + this.drpType.SelectedValue = cons.DepartId; + } + if (!string.IsNullOrEmpty(cons.DisciplinesWBSId)) + { + this.drpDisciplinesWBSId.SelectedValue = cons.DisciplinesWBSId; + var wbs = BLL.DisciplinesWBSService.GetDisciplinesWBSById(cons.DisciplinesWBSId); + if (wbs != null) + { + this.txtDisciplinesWBSCode.Text = wbs.DisciplinesWBSCode; + } + this.txtQuantityDesctiption.Text = cons.QuantityDesctiption; + this.txtPlanMHRsUnit.Text = cons.PlanMHRsUnit.HasValue ? cons.PlanMHRsUnit.ToString() : ""; + } + hfFormID.Text = Id; + this.btnDelete.Enabled = true; + } + } + #endregion + + #region 保存 + /// + /// 保存按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + string strRowID = hfFormID.Text; + //if (this.drpDepartId.SelectedValue == BLL.Const._Null) + //{ + // ShowNotify("Please select Department!", MessageBoxIcon.Warning); + // return; + //} + if (this.drpDisciplinesWBSId.SelectedValue == BLL.Const._Null) + { + ShowNotify("Please select Descipline!", MessageBoxIcon.Warning); + return; + } + if (!BLL.QuantityDesctiptionService.IsExitQuantityDesctiption(this.drpType.SelectedValue, this.drpDisciplinesWBSId.SelectedValue, this.txtQuantityDesctiption.Text.Trim(), strRowID)) + { + Model.Base_QuantityDesctiption cons = new Model.Base_QuantityDesctiption + { + QuantityDesctiption = this.txtQuantityDesctiption.Text.Trim(), + PlanMHRsUnit = Funs.GetNewDecimal(this.txtPlanMHRsUnit.Text) + }; + + if (this.drpType.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpType.SelectedValue)) + { + cons.DepartId = this.drpType.SelectedValue; + } + if (this.drpDisciplinesWBSId.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpDisciplinesWBSId.SelectedValue)) + { + cons.DisciplinesWBSId = this.drpDisciplinesWBSId.SelectedValue; + } + if (string.IsNullOrEmpty(strRowID)) + { + cons.KeyId = SQLHelper.GetNewID(typeof(Model.Base_QuantityDesctiption)); + BLL.QuantityDesctiptionService.AddQuantityDesctiption(cons); + BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "Add the Key Quantity-QuantityDesctiption"); + ShowNotify("Save Successfully!", MessageBoxIcon.Success); + + } + else + { + cons.KeyId = strRowID; + BLL.QuantityDesctiptionService.UpdateQuantityDesctiption(cons); + BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "Modify the Key Quantity-QuantityDesctiption"); + ShowNotify("Save Successfully!", MessageBoxIcon.Success); + } + this.SimpleForm1.Reset(); + // 重新绑定表格,并点击当前编辑或者新增的行 + BindGrid(); + //PageContext.RegisterStartupScript(String.Format("F('{0}').selectRow('{1}');", Grid1.ClientID, cons.DisciplinesWBSId)); + PageContext.RegisterStartupScript("onNewButtonClick();"); + } + else + { + Alert.ShowInTop("The Quantity Desctiption already exists!", MessageBoxIcon.Warning); + } + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void Text_TextChanged(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + #region 权限设置 + /// + /// 菜单按钮权限 + /// + private void GetButtonPower() + { + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.UserId, BLL.Const.QuantityDesctiptionMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnAdd)) + { + this.btnAdd.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnModify)) + { + this.btnMenuEdit.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnSave)) + { + this.btnSave.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnDelete)) + { + this.btnDelete.Hidden = false; + } + } + } + #endregion + + protected void drpDisciplinesWBSId_SelectedIndexChanged(object sender, EventArgs e) + { + this.txtDisciplinesWBSCode.Text = string.Empty; + if (this.drpDisciplinesWBSId.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpDisciplinesWBSId.SelectedValue)) + { + var dis = BLL.DisciplinesWBSService.GetDisciplinesWBSById(this.drpDisciplinesWBSId.SelectedValue); + if (dis != null) + { + this.txtDisciplinesWBSCode.Text = dis.DisciplinesWBSCode; + } + } + } + } +} \ No newline at end of file diff --git a/EProject/FineUIPro.Web/BaseInfo/QuantityDesctiption.aspx.designer.cs b/EProject/FineUIPro.Web/BaseInfo/QuantityDesctiption.aspx.designer.cs new file mode 100644 index 0000000..f857d40 --- /dev/null +++ b/EProject/FineUIPro.Web/BaseInfo/QuantityDesctiption.aspx.designer.cs @@ -0,0 +1,242 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.BaseInfo +{ + + + public partial class QuantityDesctiption + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// drpTypes 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpTypes; + + /// + /// drpDescipline 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpDescipline; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.SimpleForm SimpleForm1; + + /// + /// hfFormID 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hfFormID; + + /// + /// drpType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpType; + + /// + /// drpDisciplinesWBSId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpDisciplinesWBSId; + + /// + /// txtDisciplinesWBSCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDisciplinesWBSCode; + + /// + /// txtQuantityDesctiption 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtQuantityDesctiption; + + /// + /// txtPlanMHRsUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtPlanMHRsUnit; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnAdd 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAdd; + + /// + /// btnDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDelete; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + + /// + /// btnMenuDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDelete; + } +} diff --git a/EProject/FineUIPro.Web/Design/DesignInputPlan.aspx.cs b/EProject/FineUIPro.Web/Design/DesignInputPlan.aspx.cs index e050b5d..baff42b 100644 --- a/EProject/FineUIPro.Web/Design/DesignInputPlan.aspx.cs +++ b/EProject/FineUIPro.Web/Design/DesignInputPlan.aspx.cs @@ -21,7 +21,7 @@ namespace FineUIPro.Web.Design string designInputId = Request.Params["designInputId"]; if (!string.IsNullOrEmpty(designInputId)) { - + var input = BLL.DesignInputService.GetDesignInputById(designInputId); var project = BLL.EProjectService.GeteProjectById(input.EProjectId); @@ -159,7 +159,7 @@ namespace FineUIPro.Web.Design Alert.ShowInTop("请选择提出人!", MessageBoxIcon.Warning); return; } - + if (drpReceivedMan.SelectedValue != BLL.Const._Null) { receivedMan = drpReceivedMan.SelectedValue; @@ -196,21 +196,23 @@ namespace FineUIPro.Web.Design var input = BLL.DesignInputService.GetDesignInputById(designInputId); var project = BLL.EProjectService.GeteProjectById(input.EProjectId); - - NameValueCollection nameValue = new NameValueCollection(); - nameValue.Add("projectNo", project.ProjectControl_JobNo); - nameValue.Add("IssuedDiscOrNo", project.ProjectControl_JobNo + "-" + project.ProjectControl_JobTitle + "," + input.DesignInputChName + " " + input.DesignInputEnName + " " + input.DesignInputNo); - nameValue.Add("Person_Ch", CurrUser.ChineseName); - nameValue.Add("Person_En", CurrUser.UserName); - if (!string.IsNullOrEmpty(issuedMan)) + if (input != null) { - Model.Sys_User sys_User = new Model.Sys_User(); - sys_User = BLL.Sys_UserService.GetUsersByUserId(issuedMan); - nameValue.Add("UserName", sys_User.UserName); - List list = new List(); + NameValueCollection nameValue = new NameValueCollection(); + nameValue.Add("projectNo", project.ProjectControl_JobNo); + nameValue.Add("IssuedDiscOrNo", project.ProjectControl_JobNo + "-" + project.ProjectControl_JobTitle + "," + input.DesignInputChName + " " + input.DesignInputEnName + " " + input.DesignInputNo); + nameValue.Add("Person_Ch", CurrUser.ChineseName); + nameValue.Add("Person_En", CurrUser.UserName); + if (!string.IsNullOrEmpty(issuedMan)) + { + Model.Sys_User sys_User = new Model.Sys_User(); + sys_User = BLL.Sys_UserService.GetUsersByUserId(issuedMan); + nameValue.Add("UserName", sys_User.UserName); + List list = new List(); - list.Add(sys_User); - EmailSendMessage(BLL.Const.DesignInputString, nameValue, BLL.Const.CustomString, list, ""); + list.Add(sys_User); + EmailSendMessage(BLL.Const.DesignInputString, nameValue, BLL.Const.CustomString, list, ""); + } } #endregion ShowNotify("Save Successfully!", MessageBoxIcon.Success); diff --git a/EProject/FineUIPro.Web/EditorManage/EProjectDetail.aspx b/EProject/FineUIPro.Web/EditorManage/EProjectDetail.aspx index 0e13dcb..d151eb7 100644 --- a/EProject/FineUIPro.Web/EditorManage/EProjectDetail.aspx +++ b/EProject/FineUIPro.Web/EditorManage/EProjectDetail.aspx @@ -22,7 +22,7 @@ - + @@ -966,6 +966,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/EProject/FineUIPro.Web/EditorManage/EProjectDetail.aspx.cs b/EProject/FineUIPro.Web/EditorManage/EProjectDetail.aspx.cs index 2ee0115..068f5bb 100644 --- a/EProject/FineUIPro.Web/EditorManage/EProjectDetail.aspx.cs +++ b/EProject/FineUIPro.Web/EditorManage/EProjectDetail.aspx.cs @@ -406,6 +406,10 @@ namespace FineUIPro.Web.EditorManage #region FCR Log BindGridFCRLog(); #endregion + + #region Key Quantity + BindGridKeyQuantity(); + #endregion } } } @@ -698,6 +702,58 @@ namespace FineUIPro.Web.EditorManage } #endregion #endregion + + #region Key Quantity + private void BindGridKeyQuantity() + { + List listStr = new List + { + new SqlParameter("@eprojectId", Request.Params["eProjectId"]) + }; + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunProc("Proc_KeyQuantityLists", parameter); + this.GridKeyQuantity.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(GridKeyQuantity, tb); + GridKeyQuantity.DataSource = table; + GridKeyQuantity.DataBind(); + } + + #region 分页、排序 + /// + /// 分页 + /// + /// + /// + protected void GridKeyQuantity_PageIndexChange(object sender, GridPageEventArgs e) + { + GridKeyQuantity.PageIndex = e.NewPageIndex; + BindGridKeyQuantity(); + } + + /// + /// 分页显示条数下拉框 + /// + /// + /// + protected void ddlKeyQuantity_SelectedIndexChanged(object sender, EventArgs e) + { + GridKeyQuantity.PageSize = Convert.ToInt32(ddlKeyQuantity.SelectedValue); + BindGridKeyQuantity(); + } + + /// + /// 排序 + /// + /// + /// + protected void GridKeyQuantity_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + GridKeyQuantity.SortDirection = e.SortDirection; + GridKeyQuantity.SortField = e.SortField; + BindGridKeyQuantity(); + } + #endregion + #endregion #endregion #endregion } diff --git a/EProject/FineUIPro.Web/EditorManage/EProjectDetail.aspx.designer.cs b/EProject/FineUIPro.Web/EditorManage/EProjectDetail.aspx.designer.cs index 57032ef..2151c1b 100644 --- a/EProject/FineUIPro.Web/EditorManage/EProjectDetail.aspx.designer.cs +++ b/EProject/FineUIPro.Web/EditorManage/EProjectDetail.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.EditorManage { - - - public partial class EProjectDetail { - +namespace FineUIPro.Web.EditorManage +{ + + + public partial class EProjectDetail + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// GroupPanelProjectPlanner 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanelProjectPlanner; - + /// /// GroupPanel1 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel1; - + /// /// Form2 控件。 /// @@ -65,7 +67,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form2; - + /// /// txtJobNo 控件。 /// @@ -74,7 +76,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtJobNo; - + /// /// txtNotesLink 控件。 /// @@ -83,7 +85,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtNotesLink; - + /// /// txtProjectManager 控件。 /// @@ -92,7 +94,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtProjectManager; - + /// /// txtAccount 控件。 /// @@ -101,7 +103,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtAccount; - + /// /// txtJobType 控件。 /// @@ -110,7 +112,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtJobType; - + /// /// txtFilesLink 控件。 /// @@ -119,7 +121,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtFilesLink; - + /// /// txtEMManger 控件。 /// @@ -128,7 +130,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtEMManger; - + /// /// txtNetworkNo 控件。 /// @@ -137,7 +139,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtNetworkNo; - + /// /// txtJobStatus 控件。 /// @@ -146,7 +148,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtJobStatus; - + /// /// txtOrginalBudget 控件。 /// @@ -155,7 +157,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.NumberBox txtOrginalBudget; - + /// /// txtConstManger 控件。 /// @@ -164,7 +166,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtConstManger; - + /// /// txtMOCFormNO 控件。 /// @@ -173,7 +175,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtMOCFormNO; - + /// /// txtJobTitle 控件。 /// @@ -182,7 +184,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtJobTitle; - + /// /// txtCostEffectvitity 控件。 /// @@ -191,7 +193,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtCostEffectvitity; - + /// /// txtLeadBy 控件。 /// @@ -200,7 +202,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtLeadBy; - + /// /// txtCAPEXPlanNo 控件。 /// @@ -209,7 +211,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtCAPEXPlanNo; - + /// /// txtBuCode 控件。 /// @@ -218,7 +220,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtBuCode; - + /// /// txtPVIPrediction 控件。 /// @@ -227,7 +229,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtPVIPrediction; - + /// /// txtOprerationRep 控件。 /// @@ -236,7 +238,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtOprerationRep; - + /// /// txtRemark 控件。 /// @@ -245,7 +247,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtRemark; - + /// /// GroupPanel2 控件。 /// @@ -254,7 +256,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel2; - + /// /// Form3 控件。 /// @@ -263,7 +265,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form3; - + /// /// txtLPSchStart 控件。 /// @@ -272,7 +274,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtLPSchStart; - + /// /// txtLPSchEnd 控件。 /// @@ -281,7 +283,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtLPSchEnd; - + /// /// txtLPProgress 控件。 /// @@ -290,7 +292,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtLPProgress; - + /// /// Label1 控件。 /// @@ -299,7 +301,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label Label1; - + /// /// GroupPanel3 控件。 /// @@ -308,7 +310,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel3; - + /// /// Form4 控件。 /// @@ -317,7 +319,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form4; - + /// /// txtCCSchStart 控件。 /// @@ -326,7 +328,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtCCSchStart; - + /// /// txtCCSchEnd 控件。 /// @@ -335,7 +337,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtCCSchEnd; - + /// /// txtCCProgress 控件。 /// @@ -344,7 +346,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtCCProgress; - + /// /// Label10 控件。 /// @@ -353,7 +355,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label Label10; - + /// /// GroupPanel4 控件。 /// @@ -362,7 +364,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel4; - + /// /// Form5 控件。 /// @@ -371,7 +373,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form5; - + /// /// txtCMSchStart 控件。 /// @@ -380,7 +382,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtCMSchStart; - + /// /// txtCMSchEnd 控件。 /// @@ -389,7 +391,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtCMSchEnd; - + /// /// txtCMProgress 控件。 /// @@ -398,7 +400,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtCMProgress; - + /// /// Label11 控件。 /// @@ -407,7 +409,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label Label11; - + /// /// GroupPanel5 控件。 /// @@ -416,7 +418,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel5; - + /// /// Form6 控件。 /// @@ -425,7 +427,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form6; - + /// /// txtCIProcess 控件。 /// @@ -434,7 +436,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtCIProcess; - + /// /// txtEquipment 控件。 /// @@ -443,7 +445,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtEquipment; - + /// /// txtInstrument 控件。 /// @@ -452,7 +454,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtInstrument; - + /// /// txtElectrical 控件。 /// @@ -461,7 +463,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtElectrical; - + /// /// txtCivil 控件。 /// @@ -470,7 +472,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtCivil; - + /// /// GroupPanel6 控件。 /// @@ -479,7 +481,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel6; - + /// /// Form7 控件。 /// @@ -488,7 +490,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form7; - + /// /// txtChangedBudget 控件。 /// @@ -497,7 +499,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.NumberBox txtChangedBudget; - + /// /// txtCommitted_PRPO 控件。 /// @@ -506,7 +508,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtCommitted_PRPO; - + /// /// txtCommitted_SSRs 控件。 /// @@ -515,7 +517,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtCommitted_SSRs; - + /// /// txtActual 控件。 /// @@ -524,7 +526,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtActual; - + /// /// GroupPanel7 控件。 /// @@ -533,7 +535,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel7; - + /// /// Form8 控件。 /// @@ -542,7 +544,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form8; - + /// /// txtMS_SR 控件。 /// @@ -551,7 +553,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtMS_SR; - + /// /// txtMS_Approval 控件。 /// @@ -560,7 +562,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtMS_Approval; - + /// /// txtMS_MC 控件。 /// @@ -569,7 +571,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtMS_MC; - + /// /// txtMS_Close 控件。 /// @@ -578,7 +580,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtMS_Close; - + /// /// GroupPanel8 控件。 /// @@ -587,7 +589,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel8; - + /// /// Form9 控件。 /// @@ -596,7 +598,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form9; - + /// /// txtBC_CloseDate 控件。 /// @@ -605,7 +607,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtBC_CloseDate; - + /// /// GroupPanel9 控件。 /// @@ -614,7 +616,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel9; - + /// /// Form10 控件。 /// @@ -623,7 +625,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form10; - + /// /// txtCancelDate 控件。 /// @@ -632,7 +634,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtCancelDate; - + /// /// GroupPanel22 控件。 /// @@ -641,7 +643,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel22; - + /// /// Form22 控件。 /// @@ -650,7 +652,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form22; - + /// /// txtResourcePlanReceived 控件。 /// @@ -659,7 +661,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtResourcePlanReceived; - + /// /// GroupPanel10 控件。 /// @@ -668,7 +670,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel10; - + /// /// GroupPanel17 控件。 /// @@ -677,7 +679,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel17; - + /// /// Form18 控件。 /// @@ -686,7 +688,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form18; - + /// /// txtGeneral_CDI 控件。 /// @@ -695,7 +697,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtGeneral_CDI; - + /// /// txtGeneral_CostToComplete 控件。 /// @@ -704,7 +706,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtGeneral_CostToComplete; - + /// /// txtGeneral_Priority 控件。 /// @@ -713,7 +715,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtGeneral_Priority; - + /// /// txtGeneral_Category 控件。 /// @@ -722,7 +724,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtGeneral_Category; - + /// /// GroupPanel19 控件。 /// @@ -731,7 +733,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel19; - + /// /// Form21 控件。 /// @@ -740,7 +742,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form21; - + /// /// cbPM_PressureVessel 控件。 /// @@ -749,7 +751,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.CheckBox cbPM_PressureVessel; - + /// /// txtPM_PressureVessel 控件。 /// @@ -758,7 +760,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtPM_PressureVessel; - + /// /// cbPM_PressurePiping 控件。 /// @@ -767,7 +769,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.CheckBox cbPM_PressurePiping; - + /// /// txtPM_PressurePiping 控件。 /// @@ -776,7 +778,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtPM_PressurePiping; - + /// /// cbPM_SQIB 控件。 /// @@ -785,7 +787,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.CheckBox cbPM_SQIB; - + /// /// txtPM_SQIB 控件。 /// @@ -794,7 +796,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtPM_SQIB; - + /// /// Label26 控件。 /// @@ -803,7 +805,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label Label26; - + /// /// GroupPanel23 控件。 /// @@ -812,7 +814,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel23; - + /// /// Form23 控件。 /// @@ -821,7 +823,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form23; - + /// /// txtSC_ApprovedQty 控件。 /// @@ -830,7 +832,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtSC_ApprovedQty; - + /// /// txtSC_ApprovedCost 控件。 /// @@ -839,7 +841,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtSC_ApprovedCost; - + /// /// txtSC_PendingQty 控件。 /// @@ -848,7 +850,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtSC_PendingQty; - + /// /// txtSC_PendingCost 控件。 /// @@ -857,7 +859,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtSC_PendingCost; - + /// /// GroupPanel24 控件。 /// @@ -866,7 +868,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel24; - + /// /// Form24 控件。 /// @@ -875,7 +877,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form24; - + /// /// txtMA_JobReveive 控件。 /// @@ -884,7 +886,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtMA_JobReveive; - + /// /// txtMA_KickOffMeeting 控件。 /// @@ -893,7 +895,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtMA_KickOffMeeting; - + /// /// txtMA_SR 控件。 /// @@ -902,7 +904,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtMA_SR; - + /// /// txtProjectApproval 控件。 /// @@ -911,7 +913,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtProjectApproval; - + /// /// GroupPanel25 控件。 /// @@ -920,7 +922,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel25; - + /// /// Form25 控件。 /// @@ -929,7 +931,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form25; - + /// /// txtLLEP_RevisedStart 控件。 /// @@ -938,7 +940,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtLLEP_RevisedStart; - + /// /// txtLLEP_RevisedEnd 控件。 /// @@ -947,7 +949,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtLLEP_RevisedEnd; - + /// /// txtLLEP_ActualProgress 控件。 /// @@ -956,7 +958,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtLLEP_ActualProgress; - + /// /// Label28 控件。 /// @@ -965,7 +967,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label Label28; - + /// /// GroupPanel20 控件。 /// @@ -974,7 +976,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel20; - + /// /// Form27 控件。 /// @@ -983,7 +985,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form27; - + /// /// txtStartDate 控件。 /// @@ -992,7 +994,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtStartDate; - + /// /// txtEndDate 控件。 /// @@ -1001,7 +1003,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtEndDate; - + /// /// Label32 控件。 /// @@ -1010,7 +1012,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label Label32; - + /// /// Label33 控件。 /// @@ -1019,7 +1021,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label Label33; - + /// /// GroupPanel26 控件。 /// @@ -1028,7 +1030,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel26; - + /// /// Form26 控件。 /// @@ -1037,7 +1039,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form26; - + /// /// txtRemarks_Engineering 控件。 /// @@ -1046,7 +1048,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextArea txtRemarks_Engineering; - + /// /// lblCMProcurement 控件。 /// @@ -1055,7 +1057,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lblCMProcurement; - + /// /// txtRemarks_Procurement 控件。 /// @@ -1064,7 +1066,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextArea txtRemarks_Procurement; - + /// /// GroupPanel21 控件。 /// @@ -1073,7 +1075,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel21; - + /// /// Grid2 控件。 /// @@ -1082,7 +1084,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid2; - + /// /// GroupPanelCM 控件。 /// @@ -1091,7 +1093,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanelCM; - + /// /// GroupPanel11 控件。 /// @@ -1100,7 +1102,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel11; - + /// /// Form12 控件。 /// @@ -1109,7 +1111,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form12; - + /// /// txtCCRevisedStart 控件。 /// @@ -1118,7 +1120,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtCCRevisedStart; - + /// /// txtCCRevisedEnd 控件。 /// @@ -1127,7 +1129,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtCCRevisedEnd; - + /// /// txtCCAcutalProgress 控件。 /// @@ -1136,7 +1138,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtCCAcutalProgress; - + /// /// GroupPanel12 控件。 /// @@ -1145,7 +1147,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel12; - + /// /// Form13 控件。 /// @@ -1154,7 +1156,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form13; - + /// /// txtCM_RevisedStart 控件。 /// @@ -1163,7 +1165,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtCM_RevisedStart; - + /// /// txtCM_RevisedEnd 控件。 /// @@ -1172,7 +1174,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtCM_RevisedEnd; - + /// /// txtCM_AcutalProgress 控件。 /// @@ -1181,7 +1183,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtCM_AcutalProgress; - + /// /// GroupPanel18 控件。 /// @@ -1190,7 +1192,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel18; - + /// /// Form20 控件。 /// @@ -1199,7 +1201,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form20; - + /// /// txtCM_KickOffMetting 控件。 /// @@ -1208,7 +1210,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtCM_KickOffMetting; - + /// /// txtCM_MA_MC 控件。 /// @@ -1217,7 +1219,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtCM_MA_MC; - + /// /// txtCM_FC 控件。 /// @@ -1226,7 +1228,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtCM_FC; - + /// /// GroupPanel13 控件。 /// @@ -1235,7 +1237,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel13; - + /// /// Form14 控件。 /// @@ -1244,7 +1246,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form14; - + /// /// txtCM_Cost 控件。 /// @@ -1253,7 +1255,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.NumberBox txtCM_Cost; - + /// /// GroupPanel14 控件。 /// @@ -1262,7 +1264,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel14; - + /// /// Form15 控件。 /// @@ -1271,7 +1273,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form15; - + /// /// txtCM_Punch_CKilledDate 控件。 /// @@ -1280,7 +1282,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtCM_Punch_CKilledDate; - + /// /// GroupPanel15 控件。 /// @@ -1289,7 +1291,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel15; - + /// /// Form16 控件。 /// @@ -1298,7 +1300,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form16; - + /// /// txtDate_of_Registration 控件。 /// @@ -1307,7 +1309,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtDate_of_Registration; - + /// /// GroupPanel16 控件。 /// @@ -1316,7 +1318,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanel16; - + /// /// Form17 控件。 /// @@ -1325,7 +1327,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form17; - + /// /// txtConstruction 控件。 /// @@ -1334,7 +1336,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextArea txtConstruction; - + /// /// Label15 控件。 /// @@ -1343,7 +1345,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label Label15; - + /// /// lblPMProcurement 控件。 /// @@ -1352,7 +1354,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lblPMProcurement; - + /// /// txtProcurement 控件。 /// @@ -1361,7 +1363,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextArea txtProcurement; - + /// /// txtQualityHSE 控件。 /// @@ -1370,7 +1372,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextArea txtQualityHSE; - + /// /// GroupPanelSQIB 控件。 /// @@ -1379,7 +1381,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanelSQIB; - + /// /// Form11 控件。 /// @@ -1388,7 +1390,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form11; - + /// /// txtPressureVessel 控件。 /// @@ -1397,7 +1399,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtPressureVessel; - + /// /// txtPressurePiping 控件。 /// @@ -1406,7 +1408,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtPressurePiping; - + /// /// txtSQIB 控件。 /// @@ -1415,7 +1417,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtSQIB; - + /// /// GroupPanelPermit 控件。 /// @@ -1424,7 +1426,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanelPermit; - + /// /// Form19 控件。 /// @@ -1433,7 +1435,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form19; - + /// /// Label25 控件。 /// @@ -1442,7 +1444,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label Label25; - + /// /// Label27 控件。 /// @@ -1451,7 +1453,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label Label27; - + /// /// Label34 控件。 /// @@ -1460,7 +1462,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label Label34; - + /// /// chkPermit_PS_EnvAssess 控件。 /// @@ -1469,7 +1471,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.CheckBox chkPermit_PS_EnvAssess; - + /// /// txtPermit_PS_EnvAssess 控件。 /// @@ -1478,7 +1480,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPermit_PS_EnvAssess; - + /// /// txtPermit_PPA_EnvAssess 控件。 /// @@ -1487,7 +1489,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPermit_PPA_EnvAssess; - + /// /// chkPermit_PS_EnergySaving 控件。 /// @@ -1496,7 +1498,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.CheckBox chkPermit_PS_EnergySaving; - + /// /// txtPermit_PS_EnergySaving 控件。 /// @@ -1505,7 +1507,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPermit_PS_EnergySaving; - + /// /// txtPermit_PPA_EnergySaving 控件。 /// @@ -1514,7 +1516,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPermit_PPA_EnergySaving; - + /// /// chkPermit_PS_ProjectRegistr 控件。 /// @@ -1523,7 +1525,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.CheckBox chkPermit_PS_ProjectRegistr; - + /// /// txtPermit_PS_ProjectRegistr 控件。 /// @@ -1532,7 +1534,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPermit_PS_ProjectRegistr; - + /// /// txtPermit_PPA_ProjectRegistration 控件。 /// @@ -1541,7 +1543,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPermit_PPA_ProjectRegistration; - + /// /// chkPermit_PS_PlanningPermit 控件。 /// @@ -1550,7 +1552,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.CheckBox chkPermit_PS_PlanningPermit; - + /// /// txtPermit_PS_PlanningPermit 控件。 /// @@ -1559,7 +1561,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPermit_PS_PlanningPermit; - + /// /// txtPermit_PPA_PlanningPermit 控件。 /// @@ -1568,7 +1570,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPermit_PPA_PlanningPermit; - + /// /// chkPermit_PS_SafetyConReview 控件。 /// @@ -1577,7 +1579,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.CheckBox chkPermit_PS_SafetyConReview; - + /// /// txtPermit_PS_SafetyConReview 控件。 /// @@ -1586,7 +1588,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPermit_PS_SafetyConReview; - + /// /// txtPermit_PPA_SafetyConRev 控件。 /// @@ -1595,7 +1597,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPermit_PPA_SafetyConRev; - + /// /// chkPermit_PS_SafetyDesginReview 控件。 /// @@ -1604,7 +1606,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.CheckBox chkPermit_PS_SafetyDesginReview; - + /// /// txtPermit_PS_SafetyDesginReview 控件。 /// @@ -1613,7 +1615,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPermit_PS_SafetyDesginReview; - + /// /// txtPermit_PPA_SafetyDesignRev 控件。 /// @@ -1622,7 +1624,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPermit_PPA_SafetyDesignRev; - + /// /// chkPermit_PS_FFDesginReview 控件。 /// @@ -1631,7 +1633,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.CheckBox chkPermit_PS_FFDesginReview; - + /// /// txtPermit_PS_FFDesginReview 控件。 /// @@ -1640,7 +1642,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPermit_PS_FFDesginReview; - + /// /// txtPermit_PPA_FFDesignReview 控件。 /// @@ -1649,7 +1651,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPermit_PPA_FFDesignReview; - + /// /// chkPermit_PS_ConstPermit 控件。 /// @@ -1658,7 +1660,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.CheckBox chkPermit_PS_ConstPermit; - + /// /// txtPermit_PS_ConstPermit 控件。 /// @@ -1667,7 +1669,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPermit_PS_ConstPermit; - + /// /// txtPermit_PA_ConstPermit 控件。 /// @@ -1676,7 +1678,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPermit_PA_ConstPermit; - + /// /// chkPermit_PS_SafetyFinalAcc 控件。 /// @@ -1685,7 +1687,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.CheckBox chkPermit_PS_SafetyFinalAcc; - + /// /// txtPermit_PS_SafetyFinalAcc 控件。 /// @@ -1694,7 +1696,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPermit_PS_SafetyFinalAcc; - + /// /// txtPermit_PA_SafetyFinalACC 控件。 /// @@ -1703,7 +1705,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPermit_PA_SafetyFinalACC; - + /// /// chkPermit_PS_FFFinalAcc 控件。 /// @@ -1712,7 +1714,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.CheckBox chkPermit_PS_FFFinalAcc; - + /// /// txtPermit_PS_FFFinalAcc 控件。 /// @@ -1721,7 +1723,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPermit_PS_FFFinalAcc; - + /// /// txtPermit_PA_FFFinalACC 控件。 /// @@ -1730,7 +1732,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPermit_PA_FFFinalACC; - + /// /// chkPermit_PS_EnvFinalAcc 控件。 /// @@ -1739,7 +1741,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.CheckBox chkPermit_PS_EnvFinalAcc; - + /// /// txtPermit_PS_EnvFinalAcc 控件。 /// @@ -1748,7 +1750,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPermit_PS_EnvFinalAcc; - + /// /// txtPermit_PA_EnvFinalACC 控件。 /// @@ -1757,7 +1759,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPermit_PA_EnvFinalACC; - + /// /// chkPermit_PS_ArchiveAccep 控件。 /// @@ -1766,7 +1768,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.CheckBox chkPermit_PS_ArchiveAccep; - + /// /// txtPermit_PS_ArchiveAccep 控件。 /// @@ -1775,7 +1777,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPermit_PS_ArchiveAccep; - + /// /// Label35 控件。 /// @@ -1784,7 +1786,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label Label35; - + /// /// chkPermit_PS_3rdConstJian 控件。 /// @@ -1793,7 +1795,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.CheckBox chkPermit_PS_3rdConstJian; - + /// /// txtPermit_PS_3rdConstJian 控件。 /// @@ -1802,7 +1804,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPermit_PS_3rdConstJian; - + /// /// Label36 控件。 /// @@ -1811,7 +1813,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label Label36; - + /// /// GroupPanelTDC 控件。 /// @@ -1820,7 +1822,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanelTDC; - + /// /// GridTDC 控件。 /// @@ -1829,7 +1831,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid GridTDC; - + /// /// ToolbarSeparator2 控件。 /// @@ -1838,7 +1840,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator2; - + /// /// ToolbarText2 控件。 /// @@ -1847,7 +1849,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText2; - + /// /// ddlTDCPageSize 控件。 /// @@ -1856,7 +1858,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlTDCPageSize; - + /// /// GroupPanelLessonLearned 控件。 /// @@ -1865,7 +1867,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanelLessonLearned; - + /// /// GridLessonLearned 控件。 /// @@ -1874,7 +1876,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid GridLessonLearned; - + /// /// ToolbarSeparator1 控件。 /// @@ -1883,7 +1885,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; - + /// /// ToolbarText1 控件。 /// @@ -1892,7 +1894,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// @@ -1901,7 +1903,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; - + /// /// GroupPanelAreaConcern 控件。 /// @@ -1910,7 +1912,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanelAreaConcern; - + /// /// GridAreaConcern 控件。 /// @@ -1919,7 +1921,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid GridAreaConcern; - + /// /// ToolbarSeparator3 控件。 /// @@ -1928,7 +1930,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator3; - + /// /// ToolbarText3 控件。 /// @@ -1937,7 +1939,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText3; - + /// /// ddlAreaConcern 控件。 /// @@ -1946,7 +1948,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlAreaConcern; - + /// /// GroupPanelPunch 控件。 /// @@ -1955,7 +1957,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanelPunch; - + /// /// GridPunch 控件。 /// @@ -1964,7 +1966,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid GridPunch; - + /// /// ToolbarSeparator4 控件。 /// @@ -1973,7 +1975,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator4; - + /// /// ToolbarText4 控件。 /// @@ -1982,7 +1984,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText4; - + /// /// ddlPunch 控件。 /// @@ -1991,7 +1993,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPunch; - + /// /// GroupPanelFCRLog 控件。 /// @@ -2000,7 +2002,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GroupPanelFCRLog; - + /// /// GridFCRLog 控件。 /// @@ -2009,7 +2011,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid GridFCRLog; - + /// /// ToolbarSeparator5 控件。 /// @@ -2018,7 +2020,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator5; - + /// /// ToolbarText5 控件。 /// @@ -2027,7 +2029,7 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText5; - + /// /// ddlFCRLog 控件。 /// @@ -2036,5 +2038,50 @@ namespace FineUIPro.Web.EditorManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlFCRLog; + + /// + /// GroupPanelKeyQuantity 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanelKeyQuantity; + + /// + /// GridKeyQuantity 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid GridKeyQuantity; + + /// + /// ToolbarSeparator6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator6; + + /// + /// ToolbarText6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText6; + + /// + /// ddlKeyQuantity 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlKeyQuantity; } } diff --git a/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditor.aspx b/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditor.aspx new file mode 100644 index 0000000..cd35b8d --- /dev/null +++ b/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditor.aspx @@ -0,0 +1,214 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="KeyQuantityEditor.aspx.cs" Inherits="FineUIPro.Web.EditorManage.KeyQuantityEditor" %> + + + + + + + Key Quantity Editor + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditor.aspx.cs b/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditor.aspx.cs new file mode 100644 index 0000000..fb02798 --- /dev/null +++ b/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditor.aspx.cs @@ -0,0 +1,460 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Data; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace FineUIPro.Web.EditorManage +{ + public partial class KeyQuantityEditor : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + // 表头过滤 + FilterDataRowItem = FilterDataRowItemImplement; + if (!IsPostBack) + { + GetButtonPower();//权限设置 + + //项目类型 + this.drpJobType.DataTextField = "ConstText"; + this.drpJobType.DataValueField = "ConstValue"; + this.drpJobType.DataSource = BLL.ConstService.GetConstListByGroupId(BLL.Const.ProjectPlanner_JobType); + this.drpJobType.DataBind(); + Funs.FineUIPleaseSelectJobType(this.drpJobType); + + //项目状态 + this.drpJobStatus.DataTextField = "ConstText"; + this.drpJobStatus.DataValueField = "ConstValue"; + this.drpJobStatus.DataSource = BLL.ConstService.GetConstListByGroupId(BLL.Const.ProjectPlanner_JobStatus); + this.drpJobStatus.DataBind(); + Funs.FineUIPleaseSelectJobStatus(this.drpJobStatus); + + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + // 绑定表格 + BindGrid(); + } + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = "SELECT EProjectId," + + "ProjectControl_JobNo," + + "ProjectControl_JobType," + + "ProjectControl_JobStatus," + + "ProjectControl_JobTitle," + + "ProjectControl_BUCode," + + "PM_General_Priority," + + "PM_General_Category " + + "FROM dbo.Editor_EProject WHERE 1=1 "; + List listStr = new List(); + if (this.drpJobType.SelectedValue != BLL.Const._Null) + { + strSql += " AND ProjectControl_JobType=@JobType "; + listStr.Add(new SqlParameter("@JobType", this.drpJobType.SelectedItem.Text)); + } + if (this.drpJobStatus.SelectedValue != BLL.Const._Null && this.drpJobStatus.SelectedValue != null) + { + strSql += " AND ProjectControl_JobStatus=@Status "; + listStr.Add(new SqlParameter("@Status", this.drpJobStatus.SelectedItem.Text)); + } + if (!string.IsNullOrEmpty(this.txtJobNO.Text.Trim())) + { + strSql += " AND ProjectControl_JobNo LIKE @jobNO "; + listStr.Add(new SqlParameter("@jobNO", this.txtJobNO.Text.Trim() + "%")); + } + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + // 2.获取当前分页数据 + //var table = this.GetPagedDataTable(Grid1, tb1); + Grid1.RecordCount = tb.Rows.Count; + tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 过滤表头 + /// + /// 过滤表头 + /// + /// + /// + protected void Grid1_FilterChange(object sender, EventArgs e) + { + BindGrid(); + } + + /// + /// 根据表头信息过滤列表数据 + /// + /// + /// + /// + /// + /// + private bool FilterDataRowItemImplement(object sourceObj, string fillteredOperator, object fillteredObj, string column) + { + bool valid = false; + if (column == "ProjectControl_JobNo") + { + string sourceValue = sourceObj.ToString(); + string fillteredValue = fillteredObj.ToString(); + if (fillteredOperator == "equal" && sourceValue == fillteredValue) + { + valid = true; + } + else if (fillteredOperator == "contain" && sourceValue.Contains(fillteredValue)) + { + valid = true; + } + } + if (column == "ProjectControl_JobType") + { + string sourceValue = sourceObj.ToString(); + string fillteredValue = fillteredObj.ToString(); + if (fillteredOperator == "equal" && sourceValue == fillteredValue) + { + valid = true; + } + else if (fillteredOperator == "contain" && sourceValue.Contains(fillteredValue)) + { + valid = true; + } + } + if (column == "ProjectControl_JobTitle") + { + string sourceValue = sourceObj.ToString(); + string fillteredValue = fillteredObj.ToString(); + if (fillteredOperator == "equal" && sourceValue == fillteredValue) + { + valid = true; + } + else if (fillteredOperator == "contain" && sourceValue.Contains(fillteredValue)) + { + valid = true; + } + } + if (column == "ProjectControl_JobStatus") + { + string sourceValue = sourceObj.ToString(); + string fillteredValue = fillteredObj.ToString(); + if (fillteredOperator == "equal" && sourceValue == fillteredValue) + { + valid = true; + } + else if (fillteredOperator == "contain" && sourceValue.Contains(fillteredValue)) + { + valid = true; + } + } + if (column == "ProjectControl_BUCode") + { + string sourceValue = sourceObj.ToString(); + string fillteredValue = fillteredObj.ToString(); + if (fillteredOperator == "equal" && sourceValue == fillteredValue) + { + valid = true; + } + else if (fillteredOperator == "contain" && sourceValue.Contains(fillteredValue)) + { + valid = true; + } + } + if (column == "PM_General_Priority") + { + string sourceValue = sourceObj.ToString(); + string fillteredValue = fillteredObj.ToString(); + if (fillteredOperator == "equal" && sourceValue == fillteredValue) + { + valid = true; + } + else if (fillteredOperator == "contain" && sourceValue.Contains(fillteredValue)) + { + valid = true; + } + } + if (column == "PM_General_Category") + { + string sourceValue = sourceObj.ToString(); + string fillteredValue = fillteredObj.ToString(); + if (fillteredOperator == "equal" && sourceValue == fillteredValue) + { + valid = true; + } + else if (fillteredOperator == "contain" && sourceValue.Contains(fillteredValue)) + { + valid = true; + } + } + return valid; + } + #endregion + + #region 分页、排序 + /// + /// 分页 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + Grid1.PageIndex = e.NewPageIndex; + BindGrid(); + } + + /// + /// 分页显示条数下拉框 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + Grid1.SortDirection = e.SortDirection; + Grid1.SortField = e.SortField; + BindGrid(); + } + #endregion + + #region 关闭弹出窗口 + /// + /// 关闭窗口 + /// + /// + /// + protected void Window1_Close(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + #region 编辑 + /// + /// 编辑 + /// + /// + /// + protected void btnEdit_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInParent("Please select at least one record!"); + return; + } + string Id = Grid1.SelectedRowID; + var eproject = BLL.EProjectService.GeteProjectById(Id); + if (eproject != null) + { + Window1.Title = "Key Quantity Editor(Job No. " + eproject.ProjectControl_JobNo + ")"; + } + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("KeyQuantityEditorList.aspx?eProjectId={0}", Id, "编辑 - "))); + } + + /// + /// 右键编辑事件 + /// + /// + /// + protected void btnMenuEdit_Click(object sender, EventArgs e) + { + btnEdit_Click(null, null); + } + + /// + /// Grid行双击事件 + /// + /// + /// + protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + btnEdit_Click(null, null); + } + #endregion + + #region 判断是否可删除 + /// + /// 判断是否可以删除 + /// + /// + private bool judgementDelete(string id, bool isShow) + { + string content = string.Empty; + + if (string.IsNullOrEmpty(content)) + { + return true; + } + else + { + if (isShow) + { + Alert.ShowInTop(content); + } + return false; + } + } + #endregion + + #region 查询 + protected void drpJobType_SelectedIndexChanged(object sender, EventArgs e) + { + this.drpJobStatus.Items.Clear(); + if (drpJobType.SelectedText == "Other") + { + BLL.ConstService.InitConstValueProjectStatus(this.drpJobStatus, BLL.Const.ProjectPlanner_JobStatus, "3", true); + } + if (drpJobType.SelectedText != "Other") + { + BLL.ConstService.InitConstValueProjectStatus(this.drpJobStatus, BLL.Const.ProjectPlanner_JobStatus, "2", true); + } + } + /// + /// 下拉框选择事件 + /// + /// + /// + protected void btnSearch_Click(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + #region 权限设置 + /// + /// 菜单按钮权限 + /// + private void GetButtonPower() + { + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.UserId, BLL.Const.KeyQuantityMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnModify)) + { + this.btnEdit.Hidden = false; + this.btnMenuEdit.Hidden = false; + this.Grid1.EnableRowDoubleClickEvent = true; + } + else + { + this.Grid1.EnableRowDoubleClickEvent = false; + } + } + } + #endregion + + #region 点击Grid1加载Grid2 + /// + /// Grid1行选择事件 + /// + /// + /// + protected void Grid1_RowSelect(object sender, GridRowSelectEventArgs e) + { + string eProjectId = this.Grid1.SelectedRowID; + BindGrid2(eProjectId); + } + + /// + /// 绑定数据 + /// + private void BindGrid2(string eProjectId) + { + List listStr = new List + { + new SqlParameter("@eprojectId", eProjectId) + }; + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunProc("Proc_KeyQuantityLists", parameter); + this.Grid2.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid2, tb); + Grid2.DataSource = table; + Grid2.DataBind(); + } + + #region 分页、排序 + /// + /// 分页 + /// + /// + /// + protected void Grid2_PageIndexChange(object sender, GridPageEventArgs e) + { + Grid2.PageIndex = e.NewPageIndex; + BindGrid2(this.Grid1.SelectedRowID); + } + + /// + /// 分页显示条数下拉框 + /// + /// + /// + protected void ddlPageSize2_SelectedIndexChanged(object sender, EventArgs e) + { + Grid2.PageSize = Convert.ToInt32(ddlPageSize2.SelectedValue); + BindGrid2(this.Grid1.SelectedRowID); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid2_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + Grid2.SortDirection = e.SortDirection; + Grid2.SortField = e.SortField; + BindGrid2(this.Grid1.SelectedRowID); + } + #endregion + #endregion + + #region 查看 + /// + /// 查看 + /// + /// + /// + protected void btnMenuView_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInParent("Please select at least one record!"); + return; + } + string Id = Grid1.SelectedRowID; + var eproject = BLL.EProjectService.GeteProjectById(Id); + if (eproject != null) + { + Window1.Title = "Key Quantity Editor(Job No. " + eproject.ProjectControl_JobNo + ")"; + } + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("KeyQuantityEditorList.aspx?eProjectId={0}&view=1", Id, "编辑 - "))); + + } + #endregion + } +} \ No newline at end of file diff --git a/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditor.aspx.designer.cs b/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditor.aspx.designer.cs new file mode 100644 index 0000000..a9dd716 --- /dev/null +++ b/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditor.aspx.designer.cs @@ -0,0 +1,287 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.EditorManage +{ + + + public partial class KeyQuantityEditor + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// drpJobType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpJobType; + + /// + /// drpJobStatus 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpJobStatus; + + /// + /// txtJobNO 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtJobNO; + + /// + /// btnSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSearch; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnEdit; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label1; + + /// + /// DropDownList1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList DropDownList1; + + /// + /// DropDownList2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList DropDownList2; + + /// + /// DropDownList3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList DropDownList3; + + /// + /// DropDownList4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList DropDownList4; + + /// + /// DropDownList5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList DropDownList5; + + /// + /// DropDownList6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList DropDownList6; + + /// + /// DropDownList7 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList DropDownList7; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Grid2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid2; + + /// + /// ToolbarSeparator2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator2; + + /// + /// ToolbarText2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText2; + + /// + /// ddlPageSize2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize2; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + + /// + /// btnMenuView 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuView; + } +} diff --git a/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditorEdit.aspx b/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditorEdit.aspx new file mode 100644 index 0000000..80a1134 --- /dev/null +++ b/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditorEdit.aspx @@ -0,0 +1,106 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="KeyQuantityEditorEdit.aspx.cs" Inherits="FineUIPro.Web.EditorManage.KeyQuantityEditorEdit" %> + + + + + + + Key Quantity Editor Edit + + +
+ + + + + + + + <%-- + + + + --%> + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditorEdit.aspx.cs b/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditorEdit.aspx.cs new file mode 100644 index 0000000..d4ae6da --- /dev/null +++ b/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditorEdit.aspx.cs @@ -0,0 +1,601 @@ +using BLL; +using NPOI.SS.Formula.Functions; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; + +namespace FineUIPro.Web.EditorManage +{ + public partial class KeyQuantityEditorEdit : PageBase + { + #region 定义项 + /// + /// 主键 + /// + public string KeyQuantityId + { + get + { + return (string)ViewState["KeyQuantityId"]; + } + set + { + ViewState["KeyQuantityId"] = value; + } + } + + /// + /// 项目Id + /// + public string ProjectId + { + get + { + return (string)ViewState["ProjectId"]; + } + set + { + ViewState["ProjectId"] = value; + } + } + #endregion + + #region 加载 + /// + /// 加载 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); + //BindGrid(); + string view = Request.Params["view"]; + if (view == "1") + { + this.btnSave.Hidden = true; + } + else + { + GetButtonPower(); + } + + BLL.ConstValue.InitSysConstDropDownList(this.drpType, "KeyQuantityType", false); + if (!string.IsNullOrEmpty(this.drpType.SelectedValue) && this.drpType.SelectedValue != BLL.Const._Null) + { + BLL.QuantityDesctiptionService.InitIdentifierDropDownList(this.drpIdentifier, this.drpType.SelectedValue, true); + } + else + { + Funs.FineUIPleaseSelect(this.drpIdentifier,"-请选择-"); + } + Funs.FineUIPleaseSelect(this.drpDescipline, "-请选择-"); + Funs.FineUIPleaseSelect(this.drpQuantityDesctiption, "-请选择-"); + Funs.FineUIPleaseSelect(this.drpPlanMHRsUnit, "-请选择-"); + + this.ProjectId = Request.Params["eProjectId"]; + this.KeyQuantityId = Request.Params["keyQuantityId"]; + if (!string.IsNullOrEmpty(this.KeyQuantityId)) + { + Model.Editor_KeyQuantity keyQuantity = BLL.KeyQuantityService.GetKeyQuantityById(this.KeyQuantityId); + if (keyQuantity != null) + { + this.ProjectId = keyQuantity.EProjectId; + //this.drpKeyId.Value = keyQuantity.KeyId; + //var key = BLL.QuantityDesctiptionService.GetQuantityDesctiptionById(this.drpKeyId.Value); + //if (key != null) + //{ + // if (!string.IsNullOrEmpty(key.DisciplinesWBSId)) + // { + // var wbs = BLL.DisciplinesWBSService.GetDisciplinesWBSById(key.DisciplinesWBSId); + // if (wbs != null) + // { + // this.txtIdentifier.Text = wbs.DisciplinesWBSCode; + // this.txtDescipline.Text = wbs.DisciplinesWBSName; + // } + + // this.txtPlanMHRsSummary.Text = BLL.KeyQuantityService.GetSumPlanMHRsByKeyId(this.drpKeyId.Value).ToString(); + // double? actualHoursSum = (from x in Funs.DB.ManHours_Actual + // where x.EProjectId == this.ProjectId + // && x.Discipline == wbs.DisciplinesWBSName + // select x.Hours).Sum(); + // this.txtActualMHRs.Text = actualHoursSum.ToString(); + // } + // txtQuantityDesctiption.Text = key.QuantityDesctiption; + // txtPlanMHRsUnit.Text = key.PlanMHRsUnit.HasValue ? key.PlanMHRsUnit.ToString() : ""; + //} + if (!string.IsNullOrEmpty(keyQuantity.Type)) + { + this.drpType.SelectedValue = keyQuantity.Type; + + if (!string.IsNullOrEmpty(keyQuantity.Identifier)) + { + this.drpIdentifier.Items.Clear(); + BLL.QuantityDesctiptionService.InitIdentifierDropDownList(this.drpIdentifier, keyQuantity.Type, true); + this.drpIdentifier.SelectedValue = keyQuantity.Identifier; + + if (!string.IsNullOrEmpty(keyQuantity.Descipline)) + { + this.drpDescipline.Items.Clear(); + BLL.QuantityDesctiptionService.InitDesciplineDropDownList(this.drpDescipline, true, keyQuantity.Type, keyQuantity.Identifier); + this.drpDescipline.SelectedValue = keyQuantity.Descipline; + + if (!string.IsNullOrEmpty(keyQuantity.QuantityDesctiption)) + { + this.drpQuantityDesctiption.Items.Clear(); + BLL.QuantityDesctiptionService.InitQuantityDesctiptionDropDownList(this.drpQuantityDesctiption, true, keyQuantity.Type, keyQuantity.Identifier, keyQuantity.Descipline); + this.drpQuantityDesctiption.SelectedValue = keyQuantity.QuantityDesctiption; + + if (keyQuantity.PlanMHRsUnit.HasValue) + { + this.drpPlanMHRsUnit.Items.Clear(); + BLL.QuantityDesctiptionService.InitPlanMHRsUnitDropDownList(this.drpPlanMHRsUnit, true, keyQuantity.Type, keyQuantity.Identifier, keyQuantity.Descipline, keyQuantity.QuantityDesctiption); + this.drpPlanMHRsUnit.SelectedValue = keyQuantity.PlanMHRsUnit.ToString(); + } + } + } + } + } + this.txtPlanMHRsSummary.Text = BLL.KeyQuantityService.GetSumPlanMHRsByKeyId(keyQuantity.EProjectId, keyQuantity.Identifier, keyQuantity.Descipline).ToString(); + this.txtInputQuantity.Text = keyQuantity.InputQuantity.HasValue ? keyQuantity.InputQuantity.ToString() : ""; + this.txtPlanMHRs.Text = keyQuantity.PlanMHRs.HasValue ? keyQuantity.PlanMHRs.ToString() : ""; + double? actualHoursSum = (from x in Funs.DB.ManHours_Actual + where x.EProjectId == this.ProjectId + && x.Discipline == keyQuantity.Descipline + select x.Hours).Sum(); + this.txtActualMHRs.Text = actualHoursSum.ToString(); + } + } + } + } + #endregion + + #region 绑定数据 + /// + /// 数据绑定 + /// + //private void BindGrid() + //{ + // string strSql = @"SELECT qd.KeyId, + // qd.DepartId, + // qd.DisciplinesWBSId, + // qd.QuantityDesctiption, + // qd.PlanMHRsUnit, + // d.DepartName, + // wbs.DisciplinesWBSCode, + // wbs.DisciplinesWBSName + // FROM Base_QuantityDesctiption qd + // left join Base_Depart as d on qd.DepartId = d.DepartId + // left join Base_DisciplinesWBS as wbs on wbs.DisciplinesWBSId = qd.DisciplinesWBSId WHERE 1=1"; + // List listStr = new List(); + // if (!string.IsNullOrEmpty(this.txtSearch.Text.Trim())) + // { + // strSql += " AND d.DepartName like @DepartName "; + // listStr.Add(new SqlParameter("@DepartName", "%" + this.txtSearch.Text.Trim() + "%")); + // } + // SqlParameter[] parameter = listStr.ToArray(); + // DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + // // 2.获取当前分页数据 + // //var table = this.GetPagedDataTable(Grid1, tb1); + // Grid1.RecordCount = tb.Rows.Count; + // var table = this.GetPagedDataTable(Grid1, tb); + // Grid1.DataSource = table; + // Grid1.DataBind(); + //} + #endregion + + #region 分页、排序 + /// + /// 分页 + /// + /// + /// + //protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + //{ + // Grid1.PageIndex = e.NewPageIndex; + // BindGrid(); + //} + + /// + /// 分页显示条数下拉框 + /// + /// + /// + //protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + //{ + // Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + // BindGrid(); + //} + + /// + /// 排序 + /// + /// + /// + //protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + //{ + // Grid1.SortDirection = e.SortDirection; + // Grid1.SortField = e.SortField; + // BindGrid(); + //} + + /// + /// 筛选 + /// + /// + /// + //protected void txtSearch_TextChanged(object sender, EventArgs e) + //{ + // BindGrid(); + //} + #endregion + + #region 保存 + protected void btnSave_Click(object sender, EventArgs e) + { + if (this.drpType.SelectedValue == BLL.Const._Null || string.IsNullOrEmpty(this.drpType.SelectedValue)) + { + ShowAlert("Please select Type!", MessageBoxIcon.Warning); + return; + } + if (this.drpIdentifier.SelectedValue == BLL.Const._Null || string.IsNullOrEmpty(this.drpIdentifier.SelectedValue)) + { + ShowAlert("Please select Identifier!", MessageBoxIcon.Warning); + return; + } + if (this.drpDescipline.SelectedValue == BLL.Const._Null || string.IsNullOrEmpty(this.drpDescipline.SelectedValue)) + { + ShowAlert("Please select Descipline!", MessageBoxIcon.Warning); + return; + } + if (this.drpQuantityDesctiption.SelectedValue == BLL.Const._Null || string.IsNullOrEmpty(this.drpQuantityDesctiption.SelectedValue)) + { + ShowAlert("Please select Quantity Desctiption!", MessageBoxIcon.Warning); + return; + } + Model.Editor_KeyQuantity newKeyQuantity = new Model.Editor_KeyQuantity(); + newKeyQuantity.Type = this.drpType.SelectedValue; + newKeyQuantity.InputQuantity = Funs.GetNewDecimal(this.txtInputQuantity.Text); + newKeyQuantity.PlanMHRs = Funs.GetNewDecimal(this.txtPlanMHRs.Text); + newKeyQuantity.Identifier = this.drpIdentifier.SelectedText; + newKeyQuantity.Descipline = this.drpDescipline.SelectedText; + newKeyQuantity.QuantityDesctiption = this.drpQuantityDesctiption.SelectedText; + newKeyQuantity.PlanMHRsUnit = Funs.GetNewDecimal(this.drpPlanMHRsUnit.SelectedText); + + if (!string.IsNullOrEmpty(this.KeyQuantityId)) + { + newKeyQuantity.KeyQuantityId = this.KeyQuantityId; + BLL.KeyQuantityService.UpdateKeyQuantity(newKeyQuantity); + BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "Modify Key Quantity Editor information!"); + ShowNotify("Save Successfully!", MessageBoxIcon.Success); + } + else + { + newKeyQuantity.EProjectId = ProjectId; + this.KeyQuantityId = SQLHelper.GetNewID(typeof(Model.Editor_KeyQuantity)); + newKeyQuantity.KeyQuantityId = this.KeyQuantityId; + BLL.KeyQuantityService.AddKeyQuantity(newKeyQuantity); + BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "Add Key Quantity Editor information!"); + ShowNotify("Save Successfully!", MessageBoxIcon.Success); + } + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + #endregion + + #region DropDownList下拉选择事件 + /// + /// 部门下拉选择事件 + /// + /// + /// + //protected void drpKeyId_TextChanged(object sender, EventArgs e) + //{ + // this.txtIdentifier.Text = string.Empty; + // this.txtDescipline.Text = string.Empty; + // this.txtQuantityDesctiption.Text = string.Empty; + // this.txtPlanMHRsUnit.Text = string.Empty; + // this.txtPlanMHRsSummary.Text = string.Empty; + // if (!string.IsNullOrEmpty(this.drpKeyId.Value)) + // { + // var key = BLL.QuantityDesctiptionService.GetQuantityDesctiptionById(this.drpKeyId.Value); + // if (key != null) + // { + // if (!string.IsNullOrEmpty(key.DisciplinesWBSId)) + // { + // var wbs = BLL.DisciplinesWBSService.GetDisciplinesWBSById(key.DisciplinesWBSId); + // if (wbs != null) + // { + // this.txtIdentifier.Text = wbs.DisciplinesWBSCode; + // this.txtDescipline.Text = wbs.DisciplinesWBSName; + // } + + // decimal? s = BLL.KeyQuantityService.GetSumPlanMHRsByKeyId(this.drpKeyId.Value); + // this.txtPlanMHRsSummary.Text = (s + Funs.GetNewDecimal(this.txtPlanMHRs.Text)).ToString(); + + // double? actualHoursSum = (from x in Funs.DB.ManHours_Actual + // where x.EProjectId == this.ProjectId + // && x.Discipline == wbs.DisciplinesWBSName + // select x.Hours).Sum(); + // this.txtActualMHRs.Text = actualHoursSum.ToString(); + // } + // txtQuantityDesctiption.Text = key.QuantityDesctiption; + // txtPlanMHRsUnit.Text = key.PlanMHRsUnit.HasValue ? key.PlanMHRsUnit.ToString() : ""; + // } + // } + //} + + /// + /// Input Quantity输入事件 + /// + /// + /// + protected void txtInputQuantity_TextChanged(object sender, EventArgs e) + { + this.txtPlanMHRs.Text = string.Empty; + this.txtPlanMHRsSummary.Text = string.Empty; + if (!string.IsNullOrEmpty(this.txtInputQuantity.Text.Trim())) + { + this.txtPlanMHRs.Text = (Funs.GetNewDecimal(this.txtInputQuantity.Text) * Funs.GetNewDecimal(this.drpPlanMHRsUnit.SelectedText)).ToString(); + + decimal? s = BLL.KeyQuantityService.GetSumPlanMHRsByKeyId(this.ProjectId ,this.drpIdentifier.SelectedValue, this.drpDescipline.SelectedValue); + if (s > 0) + { + this.txtPlanMHRsSummary.Text = (s + Funs.GetNewDecimal(this.txtPlanMHRs.Text)).ToString(); + } + else + { + this.txtPlanMHRsSummary.Text = this.txtPlanMHRs.Text; + } + } + } + + /// + /// Type 下拉选择 + /// + /// + /// + protected void drpType_SelectedIndexChanged(object sender, EventArgs e) + { + this.drpIdentifier.Items.Clear(); + this.drpDescipline.Items.Clear(); + this.drpQuantityDesctiption.Items.Clear(); + this.drpPlanMHRsUnit.Items.Clear(); + if (this.drpType.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpType.SelectedValue)) + { + BLL.QuantityDesctiptionService.InitIdentifierDropDownList(this.drpIdentifier, this.drpType.SelectedValue, true); + if (this.drpIdentifier.Items.Count == 2) + { + this.drpIdentifier.SelectedIndex = 1; + + BLL.QuantityDesctiptionService.InitDesciplineDropDownList(this.drpDescipline, true, this.drpType.SelectedValue, this.drpIdentifier.SelectedValue); + if (this.drpDescipline.Items.Count == 2) + { + this.drpDescipline.SelectedIndex = 1; + BLL.QuantityDesctiptionService.InitQuantityDesctiptionDropDownList(this.drpQuantityDesctiption, true, this.drpType.SelectedValue, this.drpIdentifier.SelectedValue, this.drpDescipline.SelectedValue); + if (this.drpQuantityDesctiption.Items.Count == 2) + { + this.drpQuantityDesctiption.SelectedIndex = 1; + BLL.QuantityDesctiptionService.InitPlanMHRsUnitDropDownList(this.drpPlanMHRsUnit, true, this.drpType.SelectedValue, this.drpIdentifier.SelectedValue, this.drpDescipline.SelectedValue, this.drpQuantityDesctiption.SelectedValue); + if (this.drpPlanMHRsUnit.Items.Count == 2) + { + this.drpPlanMHRsUnit.SelectedIndex = 1; + double? actualHoursSum = (from x in Funs.DB.ManHours_Actual + where x.EProjectId == this.ProjectId + && x.Discipline == this.drpDescipline.SelectedValue + select x.Hours).Sum(); + this.txtActualMHRs.Text = actualHoursSum.ToString(); + } + else + { + this.drpPlanMHRsUnit.SelectedIndex = 0; + } + } + else + { + this.drpQuantityDesctiption.SelectedIndex = 0; + Funs.FineUIPleaseSelect(this.drpPlanMHRsUnit, "-请选择-"); + this.drpPlanMHRsUnit.SelectedIndex = 0; + } + } + else + { + this.drpDescipline.SelectedIndex = 0; + Funs.FineUIPleaseSelect(this.drpQuantityDesctiption, "-请选择-"); + this.drpQuantityDesctiption.SelectedIndex = 0; + Funs.FineUIPleaseSelect(this.drpPlanMHRsUnit, "-请选择-"); + this.drpPlanMHRsUnit.SelectedIndex = 0; + } + } + else + { + this.drpIdentifier.SelectedIndex = 0; + Funs.FineUIPleaseSelect(this.drpDescipline, "-请选择-"); + this.drpDescipline.SelectedIndex = 0; + Funs.FineUIPleaseSelect(this.drpQuantityDesctiption, "-请选择-"); + this.drpQuantityDesctiption.SelectedIndex = 0; + Funs.FineUIPleaseSelect(this.drpPlanMHRsUnit, "-请选择-"); + this.drpPlanMHRsUnit.SelectedIndex = 0; + } + } + else + { + Funs.FineUIPleaseSelect(this.drpIdentifier, "-请选择-"); + this.drpIdentifier.SelectedIndex = 0; + Funs.FineUIPleaseSelect(this.drpDescipline, "-请选择-"); + this.drpDescipline.SelectedIndex = 0; + Funs.FineUIPleaseSelect(this.drpQuantityDesctiption, "-请选择-"); + this.drpQuantityDesctiption.SelectedIndex = 0; + Funs.FineUIPleaseSelect(this.drpPlanMHRsUnit, "-请选择-"); + this.drpPlanMHRsUnit.SelectedIndex = 0; + } + } + + /// + /// Identifier 下拉选择 + /// + /// + /// + protected void drpIdentifier_SelectedIndexChanged(object sender, EventArgs e) + { + this.drpDescipline.Items.Clear(); + this.drpQuantityDesctiption.Items.Clear(); + this.drpPlanMHRsUnit.Items.Clear(); + if (this.drpIdentifier.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpIdentifier.SelectedValue) && this.drpType.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpType.SelectedValue)) + { + BLL.QuantityDesctiptionService.InitDesciplineDropDownList(this.drpDescipline, true, this.drpType.SelectedValue, this.drpIdentifier.SelectedValue); + if (this.drpDescipline.Items.Count == 2) + { + this.drpDescipline.SelectedIndex = 1; + + double? actualHoursSum = (from x in Funs.DB.ManHours_Actual + where x.EProjectId == this.ProjectId + && x.Discipline == this.drpDescipline.SelectedValue + select x.Hours).Sum(); + this.txtActualMHRs.Text = actualHoursSum.ToString(); + + BLL.QuantityDesctiptionService.InitQuantityDesctiptionDropDownList(this.drpQuantityDesctiption, true, this.drpType.SelectedValue, this.drpIdentifier.SelectedValue, this.drpDescipline.SelectedValue); + if (this.drpQuantityDesctiption.Items.Count == 2) + { + this.drpQuantityDesctiption.SelectedIndex = 1; + BLL.QuantityDesctiptionService.InitPlanMHRsUnitDropDownList(this.drpPlanMHRsUnit, true, this.drpType.SelectedValue, this.drpIdentifier.SelectedValue, this.drpDescipline.SelectedValue, this.drpQuantityDesctiption.SelectedValue); + if (this.drpPlanMHRsUnit.Items.Count == 2) + { + this.drpPlanMHRsUnit.SelectedIndex = 1; + + double? actualHoursSum2 = (from x in Funs.DB.ManHours_Actual + where x.EProjectId == this.ProjectId + && x.Discipline == this.drpDescipline.SelectedValue + select x.Hours).Sum(); + this.txtActualMHRs.Text = actualHoursSum2.ToString(); + } + else + { + this.drpPlanMHRsUnit.SelectedIndex = 0; + } + } + else + { + this.drpQuantityDesctiption.SelectedIndex = 0; + Funs.FineUIPleaseSelect(this.drpPlanMHRsUnit, "-请选择-"); + this.drpPlanMHRsUnit.SelectedIndex = 0; + } + } + else + { + this.drpDescipline.SelectedIndex = 0; + Funs.FineUIPleaseSelect(this.drpQuantityDesctiption, "-请选择-"); + this.drpQuantityDesctiption.SelectedIndex = 0; + Funs.FineUIPleaseSelect(this.drpPlanMHRsUnit, "-请选择-"); + this.drpPlanMHRsUnit.SelectedIndex = 0; + } + } + else + { + Funs.FineUIPleaseSelect(this.drpDescipline, "-请选择-"); + this.drpDescipline.SelectedIndex = 0; + Funs.FineUIPleaseSelect(this.drpQuantityDesctiption, "-请选择-"); + this.drpQuantityDesctiption.SelectedIndex = 0; + Funs.FineUIPleaseSelect(this.drpPlanMHRsUnit, "-请选择-"); + this.drpPlanMHRsUnit.SelectedIndex = 0; + } + } + + /// + /// Descipline下拉选择 + /// + /// + /// + protected void drpDescipline_SelectedIndexChanged(object sender, EventArgs e) + { + this.txtActualMHRs.Text = string.Empty; + this.drpQuantityDesctiption.Items.Clear(); + this.drpPlanMHRsUnit.Items.Clear(); + if (this.drpType.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpType.SelectedValue) && this.drpIdentifier.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpIdentifier.SelectedValue) && this.drpDescipline.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpDescipline.SelectedValue)) + { + BLL.QuantityDesctiptionService.InitQuantityDesctiptionDropDownList(this.drpQuantityDesctiption, true, this.drpType.SelectedValue, this.drpIdentifier.SelectedValue, this.drpDescipline.SelectedValue); + if (this.drpQuantityDesctiption.Items.Count == 2) + { + this.drpQuantityDesctiption.SelectedIndex = 1; + BLL.QuantityDesctiptionService.InitPlanMHRsUnitDropDownList(this.drpPlanMHRsUnit, true, this.drpType.SelectedValue, this.drpIdentifier.SelectedValue, this.drpDescipline.SelectedValue, this.drpQuantityDesctiption.SelectedValue); + if (this.drpPlanMHRsUnit.Items.Count == 2) + { + this.drpPlanMHRsUnit.SelectedIndex = 1; + } + else + { + this.drpPlanMHRsUnit.SelectedIndex = 0; + } + } + else + { + this.drpQuantityDesctiption.SelectedIndex = 0; + Funs.FineUIPleaseSelect(this.drpPlanMHRsUnit, "-请选择-"); + this.drpPlanMHRsUnit.SelectedIndex = 0; + } + + double? actualHoursSum = (from x in Funs.DB.ManHours_Actual + where x.EProjectId == this.ProjectId + && x.Discipline == this.drpDescipline.SelectedValue + select x.Hours).Sum(); + this.txtActualMHRs.Text = actualHoursSum.ToString(); + } + else + { + Funs.FineUIPleaseSelect(this.drpQuantityDesctiption, "-请选择-"); + this.drpQuantityDesctiption.SelectedIndex = 0; + Funs.FineUIPleaseSelect(this.drpPlanMHRsUnit, "-请选择-"); + this.drpPlanMHRsUnit.SelectedIndex = 0; + } + } + + /// + /// Quantity Desctiption下拉选择 + /// + /// + /// + protected void drpQuantityDesctiption_SelectedIndexChanged(object sender, EventArgs e) + { + this.drpPlanMHRsUnit.Items.Clear(); + if (this.drpType.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpType.SelectedValue) && this.drpIdentifier.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpIdentifier.SelectedValue) && this.drpDescipline.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpDescipline.SelectedValue) && this.drpQuantityDesctiption.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpQuantityDesctiption.SelectedValue)) + { + BLL.QuantityDesctiptionService.InitPlanMHRsUnitDropDownList(this.drpPlanMHRsUnit, true, this.drpType.SelectedValue, this.drpIdentifier.SelectedValue, this.drpDescipline.SelectedValue, this.drpQuantityDesctiption.SelectedValue); + if (this.drpPlanMHRsUnit.Items.Count == 2) + { + this.drpPlanMHRsUnit.SelectedIndex = 1; + } + else + { + this.drpPlanMHRsUnit.SelectedIndex = 0; + } + } + else + { + Funs.FineUIPleaseSelect(this.drpPlanMHRsUnit, "-请选择-"); + this.drpPlanMHRsUnit.SelectedIndex = 0; + } + } + #endregion + + #region 权限设置 + /// + /// 菜单按钮权限 + /// + private void GetButtonPower() + { + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.UserId, BLL.Const.KeyQuantityMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnSave)) + { + this.btnSave.Hidden = false; + } + } + } + #endregion + + } +} \ No newline at end of file diff --git a/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditorEdit.aspx.designer.cs b/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditorEdit.aspx.designer.cs new file mode 100644 index 0000000..aaa1caa --- /dev/null +++ b/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditorEdit.aspx.designer.cs @@ -0,0 +1,170 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.EditorManage +{ + + + public partial class KeyQuantityEditorEdit + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// Form2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form2; + + /// + /// drpType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpType; + + /// + /// drpIdentifier 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpIdentifier; + + /// + /// drpDescipline 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpDescipline; + + /// + /// drpQuantityDesctiption 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpQuantityDesctiption; + + /// + /// drpPlanMHRsUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpPlanMHRsUnit; + + /// + /// txtInputQuantity 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtInputQuantity; + + /// + /// txtPlanMHRs 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtPlanMHRs; + + /// + /// txtPlanMHRsSummary 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtPlanMHRsSummary; + + /// + /// txtActualMHRs 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtActualMHRs; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label1; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + } +} diff --git a/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditorList.aspx b/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditorList.aspx new file mode 100644 index 0000000..3f9f566 --- /dev/null +++ b/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditorList.aspx @@ -0,0 +1,114 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="KeyQuantityEditorList.aspx.cs" Inherits="FineUIPro.Web.EditorManage.KeyQuantityEditorList" %> + + + + + + + Key Quantity Editor List + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditorList.aspx.cs b/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditorList.aspx.cs new file mode 100644 index 0000000..0e45740 --- /dev/null +++ b/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditorList.aspx.cs @@ -0,0 +1,277 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Data; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace FineUIPro.Web.EditorManage +{ + public partial class KeyQuantityEditorList : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + string view = Request.Params["view"]; + if (view == "1") + { + this.btnNew.Hidden = true; + this.btnEdit.Hidden = true; + this.btnMenuEdit.Hidden = true; + this.btnDelete.Hidden = true; + this.btnMenuDelete.Hidden = true; + } + else + { + GetButtonPower();//权限设置 + } + + + btnNew.OnClientClick = Window1.GetShowReference("KeyQuantityEditorEdit.aspx?eProjectId=" + Request.Params["eProjectId"]) + "return false;"; + btnDelete.OnClientClick = Grid1.GetNoSelectionAlertReference("Please select at least one item!"); + btnDelete.ConfirmText = String.Format("Are you sure you want to delete the selected   rows?", Grid1.GetSelectedCountReference()); + + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + // 绑定表格 + BindGrid(); + } + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + List listStr = new List + { + new SqlParameter("@eprojectId", Request.Params["eProjectId"]) + }; + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunProc("Proc_KeyQuantityLists", parameter); + this.Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 删除数据 + /// + /// 批量删除数据 + /// + /// + /// + protected void btnDelete_Click(object sender, EventArgs e) + { + this.DeleteData(); + } + + /// + /// 右键删除事件 + /// + /// + /// + protected void btnMenuDelete_Click(object sender, EventArgs e) + { + this.DeleteData(); + } + + /// + /// 删除方法 + /// + private void DeleteData() + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + var role = BLL.KeyQuantityService.GetKeyQuantityById(rowID); + if (role != null) + { + if (judgementDelete(rowID, false)) + { + BLL.KeyQuantityService.DeleteKeyQuantityById(rowID); + BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "Delete Key Quantity Editor information"); + ShowNotify("Deleted successfully!"); + BindGrid(); + } + } + } + } + } + #endregion + + #region 分页、排序 + /// + /// 分页 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + Grid1.PageIndex = e.NewPageIndex; + BindGrid(); + } + + /// + /// 分页显示条数下拉框 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + Grid1.SortDirection = e.SortDirection; + Grid1.SortField = e.SortField; + BindGrid(); + } + #endregion + + #region 关闭弹出窗口 + /// + /// 关闭窗口 + /// + /// + /// + protected void Window1_Close(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + #region 编辑 + /// + /// 编辑 + /// + /// + /// + protected void btnEdit_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInParent("Please select at least one record!"); + return; + } + string Id = Grid1.SelectedRowID; + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("KeyQuantityEditorEdit.aspx?keyQuantityId={0}", Id, "编辑 - "))); + + } + + /// + /// 右键编辑事件 + /// + /// + /// + protected void btnMenuEdit_Click(object sender, EventArgs e) + { + btnEdit_Click(null, null); + } + + /// + /// Grid行双击事件 + /// + /// + /// + protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + btnEdit_Click(null, null); + } + #endregion + + #region 判断是否可删除 + /// + /// 判断是否可以删除 + /// + /// + private bool judgementDelete(string id, bool isShow) + { + string content = string.Empty; + + if (string.IsNullOrEmpty(content)) + { + return true; + } + else + { + if (isShow) + { + Alert.ShowInTop(content); + } + return false; + } + } + #endregion + + #region 权限设置 + /// + /// 菜单按钮权限 + /// + private void GetButtonPower() + { + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.UserId, BLL.Const.KeyQuantityMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnAdd)) + { + this.btnNew.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnModify)) + { + this.btnEdit.Hidden = false; + this.btnMenuEdit.Hidden = false; + this.Grid1.EnableRowDoubleClickEvent = true; + } + else + { + this.Grid1.EnableRowDoubleClickEvent = false; + } + if (buttonList.Contains(BLL.Const.BtnDelete)) + { + this.btnDelete.Hidden = false; + this.btnMenuDelete.Hidden = false; + } + } + } + #endregion + + #region 查看 + /// + /// 查看 + /// + /// + /// + protected void btnMenuView_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInParent("Please select at least one record!"); + return; + } + string Id = Grid1.SelectedRowID; + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("KeyQuantityEditorEdit.aspx?keyQuantityId={0}&view=1", Id, "编辑 - "))); + + } + #endregion + } +} \ No newline at end of file diff --git a/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditorList.aspx.designer.cs b/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditorList.aspx.designer.cs new file mode 100644 index 0000000..10df363 --- /dev/null +++ b/EProject/FineUIPro.Web/EditorManage/KeyQuantityEditorList.aspx.designer.cs @@ -0,0 +1,161 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.EditorManage +{ + + + public partial class KeyQuantityEditorList + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnEdit; + + /// + /// btnDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDelete; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + + /// + /// btnMenuDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDelete; + + /// + /// btnMenuView 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuView; + } +} diff --git a/EProject/FineUIPro.Web/EditorManage/PMEditorEdit.aspx b/EProject/FineUIPro.Web/EditorManage/PMEditorEdit.aspx index c283d65..6e8ce87 100644 --- a/EProject/FineUIPro.Web/EditorManage/PMEditorEdit.aspx +++ b/EProject/FineUIPro.Web/EditorManage/PMEditorEdit.aspx @@ -19,15 +19,15 @@ - + - - - - - + + + + + @@ -69,13 +69,13 @@ - - + @@ -183,7 +183,7 @@ - + - + @@ -224,7 +224,7 @@ - + @@ -239,30 +239,31 @@ - + + + + + + - - - - - - - - - - - - - - - - - - + + - + + + + + + + + + + + + + @@ -275,7 +276,7 @@ + HeaderText="Identifier" HeaderTextAlign="Center"> @@ -284,7 +285,7 @@ ExpandUnusedSpace="true"> - + @@ -301,8 +302,8 @@ - - + + @@ -314,7 +315,7 @@ - + @@ -328,10 +329,10 @@ + OnClick="btnCalculated_Click" Text="Calculated Progress"> + OnClick="btnSave_Click"> diff --git a/EProject/FineUIPro.Web/EditorManage/PMEditorEdit.aspx.cs b/EProject/FineUIPro.Web/EditorManage/PMEditorEdit.aspx.cs index 2220fd9..98babe5 100644 --- a/EProject/FineUIPro.Web/EditorManage/PMEditorEdit.aspx.cs +++ b/EProject/FineUIPro.Web/EditorManage/PMEditorEdit.aspx.cs @@ -602,10 +602,18 @@ namespace FineUIPro.Web.EditorManage // epro.ProjectControl_JobStatus = "In Construction"; //} - - //当项目类型为projects或moc时PM中Milestone(Actual)的Project Approval不为空,并且Resource_Plan有记录时,状态为Not Approved 修改于2024.07.04 - var resourcePlans = BLL.ResourcePlanService.GetResourcePlanByEProjectId(epro.EProjectId); - if ((epro.PM_MA_ProjectApproval == null || epro.PM_MA_ProjectApproval.ToString() == "") && resourcePlans.Count() > 0) + + ////当项目类型为projects或moc时PM中Milestone(Actual)的Project Approval不为空,并且Resource_Plan有记录时,状态为Not Approved 修改于2024.07.04 + //var resourcePlans = BLL.ResourcePlanService.GetResourcePlanByEProjectId(epro.EProjectId); + //if ((epro.PM_MA_ProjectApproval == null || epro.PM_MA_ProjectApproval.ToString() == "") && resourcePlans.Count() > 0) + //{ + // if (eproject.ProjectControl_JobStatus == null || eproject.ProjectControl_JobStatus == "" || eproject.ProjectControl_JobStatus == "Not Start") + // { + // epro.ProjectControl_JobStatus = "Study"; + // } + //} + //由原先Project Approval为空且有第一个rp修改状态为Study 改为 Project Approval为空,并且Planning Cost Approval不为空,状态改为Study 修改于2025.8.22 + if ((epro.PM_MA_ProjectApproval == null || epro.PM_MA_ProjectApproval.ToString() == "") && epro.PM_Planning_Approval.HasValue) { if (eproject.ProjectControl_JobStatus == null || eproject.ProjectControl_JobStatus == "" || eproject.ProjectControl_JobStatus == "Not Start") { @@ -643,8 +651,10 @@ namespace FineUIPro.Web.EditorManage } // 后加:当PM中Milestone(Actual)的Project Approval不为空并且IFC ALL的ReceiveHC不为空,状态为In Procurement + //或者当PM中Milestone(Actual)的Project Approval不为空并且IFC NA的ReceiveHC不为空,状态为In Procurement var con_all = from x in Funs.DB.Editor_TDC where x.EProjectId == epro.EProjectId && x.Type == "D01_IFC" && x.Disc == "00_ALL" && x.ReceiveHC.HasValue select x; - if (epro.ProjectControl_JobType != "Other" && epro.PM_MA_ProjectApproval.HasValue && con_all.Count() > 0) + var con_na = from x in Funs.DB.Editor_TDC where x.EProjectId == epro.EProjectId && x.Type == "D01_IFC" && x.Disc == "90_NA" select x; + if (epro.ProjectControl_JobType != "Other" && epro.PM_MA_ProjectApproval.HasValue && (con_all.Count() > 0 || con_na.Count() > 0)) { if (eproject.ProjectControl_JobStatus == null || eproject.ProjectControl_JobStatus == "" || eproject.ProjectControl_JobStatus == "Detailed Design" || eproject.ProjectControl_JobStatus == "On Going" || eproject.ProjectControl_JobStatus == "Study" || eproject.ProjectControl_JobStatus == "Not Start") { diff --git a/EProject/FineUIPro.Web/EditorManage/ProjectControlEditorEdit.aspx b/EProject/FineUIPro.Web/EditorManage/ProjectControlEditorEdit.aspx index f019ebf..ca223d7 100644 --- a/EProject/FineUIPro.Web/EditorManage/ProjectControlEditorEdit.aspx +++ b/EProject/FineUIPro.Web/EditorManage/ProjectControlEditorEdit.aspx @@ -20,7 +20,7 @@ - + @@ -33,7 +33,7 @@ - + @@ -41,7 +41,7 @@ - + @@ -49,9 +49,9 @@ - - + + + @@ -59,21 +59,21 @@ - - + + - - + + - + @@ -146,7 +146,7 @@ - + @@ -212,7 +212,23 @@ - + + + + + + + + + + + + + + + + @@ -228,14 +244,14 @@ - + - + @@ -243,7 +259,7 @@ - + @@ -258,7 +274,7 @@ - + diff --git a/EProject/FineUIPro.Web/EditorManage/ProjectControlEditorEdit.aspx.cs b/EProject/FineUIPro.Web/EditorManage/ProjectControlEditorEdit.aspx.cs index 11d1839..8cab470 100644 --- a/EProject/FineUIPro.Web/EditorManage/ProjectControlEditorEdit.aspx.cs +++ b/EProject/FineUIPro.Web/EditorManage/ProjectControlEditorEdit.aspx.cs @@ -32,9 +32,9 @@ namespace FineUIPro.Web.EditorManage BLL.ConstService.InitConstValueDropDownList(this.drpJobType, BLL.Const.ProjectPlanner_JobType, true);//项目类型 //BLL.ConstService.InitConstValueDropDownList(this.drpJobStatus, BLL.Const.ProjectPlanner_JobStatus, false); //项目状态 BLL.DepartService.InitDepartDropDownList(this.drpBuCode, true);//部门 - BLL.Sys_UserService.InitUserDrpNA(this.drpProjectManager, true); //项目经理 - BLL.Sys_UserService.InitUserDrpNA(this.drpEMManager, true); //EM - BLL.Sys_UserService.InitUserDrpNA(this.drpConstManager, true);//施工经理 + BLL.Sys_UserService.InitUserDropDownList(this.drpProjectManager, true); //项目经理 + BLL.Sys_UserService.InitUserDropDownList(this.drpEMManager, true); //EM + BLL.Sys_UserService.InitUserDropDownList(this.drpConstManager, true);//施工经理 BLL.Sys_UserService.InitUserDropDownList(this.drpOpre, true);//操作代表 BLL.Sys_UserService.InitDropDownList(this.drpLeadBy, true); BLL.Sys_UserService.InitUserDropDownList(this.drpCIProcess, true); @@ -184,6 +184,7 @@ namespace FineUIPro.Web.EditorManage txtPM_SC_PendingQty.Text = Convert.ToString(eproject.PM_SC_PendingQty); txtPM_SC_PendingCost.Text = Convert.ToString(eproject.PM_SC_PendingCost); + this.txtRFSUCloseDate.Text = eproject.ProjectControl_RFSU_CloseDate == null ? "" : string.Format("{0:yyyy-MM-dd}", eproject.ProjectControl_RFSU_CloseDate); this.txtBC_CloseDate.Text = eproject.ProjectControl_BC_CloseDate == null ? "" : string.Format("{0:yyyy-MM-dd}", eproject.ProjectControl_BC_CloseDate); this.txtCancelDate.Text = eproject.ProjectControl_PC_CancelDate == null ? "" : string.Format("{0:yyyy-MM-dd}", eproject.ProjectControl_PC_CancelDate); this.txtHold.Text = eproject.Job_Hold == null ? "" : string.Format("{0:yyyy-MM-dd}", eproject.Job_Hold); @@ -566,6 +567,8 @@ namespace FineUIPro.Web.EditorManage eProject.PM_SC_PendingQty = Funs.GetNewInt(txtPM_SC_PendingQty.Text.Trim()); eProject.PM_SC_PendingCost = Funs.GetNewDecimal(txtPM_SC_PendingCost.Text.Trim()); + eProject.ProjectControl_RFSU_CloseDate = Funs.GetNewDateTime(this.txtRFSUCloseDate.Text.Trim()); + if (!string.IsNullOrEmpty(this.txtBC_CloseDate.Text.Trim())) { eProject.ProjectControl_BC_CloseDate = Funs.GetNewDateTime(this.txtBC_CloseDate.Text.Trim()); diff --git a/EProject/FineUIPro.Web/EditorManage/ProjectControlEditorEdit.aspx.designer.cs b/EProject/FineUIPro.Web/EditorManage/ProjectControlEditorEdit.aspx.designer.cs index bb42cc2..d53f4f4 100644 --- a/EProject/FineUIPro.Web/EditorManage/ProjectControlEditorEdit.aspx.designer.cs +++ b/EProject/FineUIPro.Web/EditorManage/ProjectControlEditorEdit.aspx.designer.cs @@ -671,6 +671,33 @@ namespace FineUIPro.Web.EditorManage /// protected global::FineUIPro.NumberBox txtPM_SC_PendingCost; + /// + /// GroupPanel12 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel12; + + /// + /// Form14 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form14; + + /// + /// txtRFSUCloseDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtRFSUCloseDate; + /// /// GroupPanel8 控件。 /// diff --git a/EProject/FineUIPro.Web/EditorManage/TDCEditorEdit.aspx.cs b/EProject/FineUIPro.Web/EditorManage/TDCEditorEdit.aspx.cs index 8bce810..44b48ce 100644 --- a/EProject/FineUIPro.Web/EditorManage/TDCEditorEdit.aspx.cs +++ b/EProject/FineUIPro.Web/EditorManage/TDCEditorEdit.aspx.cs @@ -223,14 +223,14 @@ namespace FineUIPro.Web.EditorManage // 后加:当PM中Milestone(Actual)的Project Approval不为空并且IFC ALL的ReceiveHC不为空,状态为In Procurement var con_all = from x in Funs.DB.Editor_TDC where x.EProjectId == eproject.EProjectId && x.Type == "D01_IFC" && x.Disc == "00_ALL" && x.ReceiveHC.HasValue select x; - if (eproject.ProjectControl_JobType != "Other" && eproject.PM_MA_ProjectApproval.HasValue && con_all.Count() > 0) + var con_na = from x in Funs.DB.Editor_TDC where x.EProjectId == eproject.EProjectId && x.Type == "D01_IFC" && x.Disc == "90_NA" select x; + if (eproject.ProjectControl_JobType != "Other" && eproject.PM_MA_ProjectApproval.HasValue && (con_all.Count() > 0 || con_na.Count() > 0)) { if (eproject.ProjectControl_JobStatus == null || eproject.ProjectControl_JobStatus == "" || eproject.ProjectControl_JobStatus == "Detailed Design" || eproject.ProjectControl_JobStatus == "On Going" || eproject.ProjectControl_JobStatus == "Study" || eproject.ProjectControl_JobStatus == "Not Start") { eproject.ProjectControl_JobStatus = "In Procurement"; } } - #endregion if ((eproject.Permit_PS_SafetyFinalAcc.HasValue && eproject.Permit_PA_SafetyFinalACC.HasValue diff --git a/EProject/FineUIPro.Web/File/Excel/Project_List_Report.xlsx b/EProject/FineUIPro.Web/File/Excel/Project_List_Report.xlsx index 03677e3..16e8e02 100644 Binary files a/EProject/FineUIPro.Web/File/Excel/Project_List_Report.xlsx and b/EProject/FineUIPro.Web/File/Excel/Project_List_Report.xlsx differ diff --git a/EProject/FineUIPro.Web/FineUIPro.Web.csproj b/EProject/FineUIPro.Web/FineUIPro.Web.csproj index 0fd0a2f..57f027c 100644 --- a/EProject/FineUIPro.Web/FineUIPro.Web.csproj +++ b/EProject/FineUIPro.Web/FineUIPro.Web.csproj @@ -40,7 +40,7 @@ bin\ DEBUG;TRACE prompt - 5 + 4 7.3 false @@ -50,7 +50,7 @@ bin\ TRACE prompt - 4 + 1 7.2 false @@ -138,6 +138,7 @@ ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll + @@ -231,6 +232,7 @@ + @@ -259,6 +261,9 @@ + + + @@ -980,6 +985,13 @@ PunchDetailsDiscipline.aspx + + QuantityDesctiption.aspx + ASPXCodeBehind + + + QuantityDesctiption.aspx + ResoursesClass.aspx ASPXCodeBehind @@ -1171,6 +1183,27 @@ FCRLogEditorList.aspx + + KeyQuantityEditor.aspx + ASPXCodeBehind + + + KeyQuantityEditor.aspx + + + KeyQuantityEditorEdit.aspx + ASPXCodeBehind + + + KeyQuantityEditorEdit.aspx + + + KeyQuantityEditorList.aspx + ASPXCodeBehind + + + KeyQuantityEditorList.aspx + LessonsLearnedEditor.aspx ASPXCodeBehind diff --git a/EProject/FineUIPro.Web/FineUIPro.Web.csproj.user b/EProject/FineUIPro.Web/FineUIPro.Web.csproj.user index 3f55043..dc767e7 100644 --- a/EProject/FineUIPro.Web/FineUIPro.Web.csproj.user +++ b/EProject/FineUIPro.Web/FineUIPro.Web.csproj.user @@ -2,7 +2,7 @@ ProjectFiles - Debug|Any CPU + Release|Any CPU true true diff --git a/EProject/FineUIPro.Web/ManHours/AccountDisabled.aspx b/EProject/FineUIPro.Web/ManHours/AccountDisabled.aspx index 45b95eb..b909a0f 100644 --- a/EProject/FineUIPro.Web/ManHours/AccountDisabled.aspx +++ b/EProject/FineUIPro.Web/ManHours/AccountDisabled.aspx @@ -46,9 +46,9 @@ - - + + diff --git a/EProject/FineUIPro.Web/ManHours/AccountDisabled.aspx.designer.cs b/EProject/FineUIPro.Web/ManHours/AccountDisabled.aspx.designer.cs index bc17ee3..c999560 100644 --- a/EProject/FineUIPro.Web/ManHours/AccountDisabled.aspx.designer.cs +++ b/EProject/FineUIPro.Web/ManHours/AccountDisabled.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.ManHours { - - - public partial class AccountDisabled { - +namespace FineUIPro.Web.ManHours +{ + + + public partial class AccountDisabled + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.ManHours { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.ManHours { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// SimpleForm1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.ManHours { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form SimpleForm1; - + /// /// txtJobNo 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.ManHours { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtJobNo; - + /// /// drpDiscipline 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.ManHours { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpDiscipline; - + /// /// txtAccount 控件。 /// @@ -65,7 +67,7 @@ namespace FineUIPro.Web.ManHours { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtAccount; - + /// /// txtEngineerName 控件。 /// @@ -74,7 +76,7 @@ namespace FineUIPro.Web.ManHours { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtEngineerName; - + /// /// txtManHours 控件。 /// @@ -83,7 +85,16 @@ namespace FineUIPro.Web.ManHours { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtManHours; - + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label1; + /// /// cbNotApplicable1 控件。 /// @@ -92,7 +103,7 @@ namespace FineUIPro.Web.ManHours { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.CheckBox cbNotApplicable1; - + /// /// Toolbar1 控件。 /// @@ -101,7 +112,7 @@ namespace FineUIPro.Web.ManHours { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar1; - + /// /// btnSave 控件。 /// @@ -110,7 +121,7 @@ namespace FineUIPro.Web.ManHours { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSave; - + /// /// btnClose 控件。 /// diff --git a/EProject/FineUIPro.Web/ManHours/AddManHours.aspx b/EProject/FineUIPro.Web/ManHours/AddManHours.aspx index 1ede53b..d766431 100644 --- a/EProject/FineUIPro.Web/ManHours/AddManHours.aspx +++ b/EProject/FineUIPro.Web/ManHours/AddManHours.aspx @@ -46,9 +46,22 @@ - + + + + + + + + + + + + + + @@ -67,5 +80,15 @@ + diff --git a/EProject/FineUIPro.Web/ManHours/AddManHours.aspx.cs b/EProject/FineUIPro.Web/ManHours/AddManHours.aspx.cs index 37b1262..b4612c3 100644 --- a/EProject/FineUIPro.Web/ManHours/AddManHours.aspx.cs +++ b/EProject/FineUIPro.Web/ManHours/AddManHours.aspx.cs @@ -146,6 +146,11 @@ namespace FineUIPro.Web.ManHours pm.AccountDisabled =0; pm.IsClose = 0; } + + if (checkPhase.SelectedValueArray != null) + { + pm.Phase = checkPhase.SelectedValueArray[0]; + } BLL.PlanService.AddPlan(pm); // 把设计专业回写到PM_Editor diff --git a/EProject/FineUIPro.Web/ManHours/AddManHours.aspx.designer.cs b/EProject/FineUIPro.Web/ManHours/AddManHours.aspx.designer.cs index bd07288..320a598 100644 --- a/EProject/FineUIPro.Web/ManHours/AddManHours.aspx.designer.cs +++ b/EProject/FineUIPro.Web/ManHours/AddManHours.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.ManHours { - - - public partial class AddManHours { - +namespace FineUIPro.Web.ManHours +{ + + + public partial class AddManHours + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.ManHours { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.ManHours { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// SimpleForm1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.ManHours { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form SimpleForm1; - + /// /// txtJobNo 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.ManHours { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtJobNo; - + /// /// drpJobNo 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.ManHours { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpJobNo; - + /// /// drpDiscipline 控件。 /// @@ -65,7 +67,7 @@ namespace FineUIPro.Web.ManHours { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpDiscipline; - + /// /// txtAccount 控件。 /// @@ -74,7 +76,7 @@ namespace FineUIPro.Web.ManHours { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtAccount; - + /// /// drpEngineer 控件。 /// @@ -83,7 +85,7 @@ namespace FineUIPro.Web.ManHours { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpEngineer; - + /// /// txtManHours 控件。 /// @@ -92,7 +94,25 @@ namespace FineUIPro.Web.ManHours { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtManHours; - + + /// + /// checkPhase 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.CheckBoxList checkPhase; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label1; + /// /// cbNotApplicable1 控件。 /// @@ -101,7 +121,7 @@ namespace FineUIPro.Web.ManHours { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.CheckBox cbNotApplicable1; - + /// /// Toolbar1 控件。 /// @@ -110,7 +130,7 @@ namespace FineUIPro.Web.ManHours { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar1; - + /// /// btnSave 控件。 /// @@ -119,7 +139,7 @@ namespace FineUIPro.Web.ManHours { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSave; - + /// /// btnClose 控件。 /// diff --git a/EProject/FineUIPro.Web/ManHours/ManHours.aspx b/EProject/FineUIPro.Web/ManHours/ManHours.aspx index e11a9b8..1330785 100644 --- a/EProject/FineUIPro.Web/ManHours/ManHours.aspx +++ b/EProject/FineUIPro.Web/ManHours/ManHours.aspx @@ -129,7 +129,7 @@ - - - - - - - - - - @@ -458,12 +447,6 @@ - - - - @@ -698,9 +681,6 @@ - - <%-- @@ -728,9 +708,25 @@ + + + + + + + + + + + + @@ -740,6 +736,30 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/EProject/FineUIPro.Web/Report/ProjectListReport.aspx.cs b/EProject/FineUIPro.Web/Report/ProjectListReport.aspx.cs index 11a2de2..3a41a2f 100644 --- a/EProject/FineUIPro.Web/Report/ProjectListReport.aspx.cs +++ b/EProject/FineUIPro.Web/Report/ProjectListReport.aspx.cs @@ -1403,6 +1403,20 @@ namespace FineUIPro.Web.Report projectList.GetRow(rowIndex).GetCell(74).SetCellValue(itemOver.ProjectControl_ProjectType); projectList.GetRow(rowIndex).GetCell(74).CellStyle.SetFont(cs_content_Font); + //Engineering Remark + if (projectList.GetRow(rowIndex).GetCell(75) == null) projectList.GetRow(rowIndex).CreateCell(75); + projectList.GetRow(rowIndex).GetCell(75).SetCellValue(itemOver.PM_Remarks_Engineering); + projectList.GetRow(rowIndex).GetCell(75).CellStyle.SetFont(cs_content_Font); + + //Procurement Remark + if (projectList.GetRow(rowIndex).GetCell(76) == null) projectList.GetRow(rowIndex).CreateCell(76); + projectList.GetRow(rowIndex).GetCell(76).SetCellValue(itemOver.PM_Remarks_Procurement); + projectList.GetRow(rowIndex).GetCell(76).CellStyle.SetFont(cs_content_Font); + + //Construction Remark + if (projectList.GetRow(rowIndex).GetCell(77) == null) projectList.GetRow(rowIndex).CreateCell(77); + projectList.GetRow(rowIndex).GetCell(77).SetCellValue(itemOver.CM_Remarks_Construction); + projectList.GetRow(rowIndex).GetCell(77).CellStyle.SetFont(cs_content_Font); #endregion rowIndex++; diff --git a/EProject/FineUIPro.Web/Report/ProjectListReport.aspx.designer.cs b/EProject/FineUIPro.Web/Report/ProjectListReport.aspx.designer.cs index 6142514..364637f 100644 --- a/EProject/FineUIPro.Web/Report/ProjectListReport.aspx.designer.cs +++ b/EProject/FineUIPro.Web/Report/ProjectListReport.aspx.designer.cs @@ -131,15 +131,6 @@ namespace FineUIPro.Web.Report /// protected global::FineUIPro.DropDownList DropDownList2; - /// - /// DropDownList58 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DropDownList DropDownList58; - /// /// DropDownList3 控件。 /// @@ -644,6 +635,15 @@ namespace FineUIPro.Web.Report /// protected global::FineUIPro.DropDownList DropDownList59; + /// + /// DropDownList58 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList DropDownList58; + /// /// ToolbarSeparator1 控件。 /// diff --git a/EProject/FineUIPro.Web/Report/ProjectManhourReport.aspx b/EProject/FineUIPro.Web/Report/ProjectManhourReport.aspx index 96915a6..8f221c4 100644 --- a/EProject/FineUIPro.Web/Report/ProjectManhourReport.aspx +++ b/EProject/FineUIPro.Web/Report/ProjectManhourReport.aspx @@ -20,13 +20,15 @@ - + + + + - <%----%> - @@ -87,7 +89,7 @@ - + FieldType="String" HeaderText="Account" HeaderTextAlign="Center" TextAlign="Left"> @@ -236,7 +238,7 @@ - - diff --git a/EProject/FineUIPro.Web/Report/ProjectManhourReport.aspx.cs b/EProject/FineUIPro.Web/Report/ProjectManhourReport.aspx.cs index 8adc129..439be09 100644 --- a/EProject/FineUIPro.Web/Report/ProjectManhourReport.aspx.cs +++ b/EProject/FineUIPro.Web/Report/ProjectManhourReport.aspx.cs @@ -7,6 +7,8 @@ using System.Data; using System.Data.SqlClient; using System.IO; using System.Linq; +using System.Xml.Linq; +using Org.BouncyCastle.Bcpg.OpenPgp; namespace FineUIPro.Web.Report { public partial class ProjectManhourReport : PageBase @@ -27,6 +29,7 @@ namespace FineUIPro.Web.Report ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); BLL.ConstService.InitConstValueDropDownList(this.drpJobStatus, BLL.Const.ProjectPlanner_JobStatus, true); + BLL.Sys_UserService.InitCTEUserDropDownList(this.drpName, true); // 绑定表格 BindGrid(); @@ -49,6 +52,19 @@ namespace FineUIPro.Web.Report string status = String.Join(",", drpJobStatus.SelectedItemArray.Select(e => e.Text)); listStr.Add(new SqlParameter("@JobStatus", status)); } + if (!string.IsNullOrEmpty(this.txtJobNo.Text.Trim())) + { + listStr.Add(new SqlParameter("@JobNo", "%" + this.txtJobNo.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(this.txtAccount.Text.Trim())) + { + listStr.Add(new SqlParameter("@Account", "%" + this.txtAccount.Text.Trim() + "%")); + } + if (this.drpName.SelectedValue != BLL.Const._Null && this.drpName.SelectedValue != null) + { + string name = String.Join(",", drpName.SelectedItemArray.Select(e => e.Text)); + listStr.Add(new SqlParameter("@Name", name)); + } SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunProc("Proc_ProjectManhourReport", parameter); Grid1.RecordCount = tb.Rows.Count; @@ -289,8 +305,7 @@ namespace FineUIPro.Web.Report { BindGrid(); } - #endregion - + #endregion #region 分页、排序 /// @@ -375,6 +390,31 @@ namespace FineUIPro.Web.Report { listStr.Add(new SqlParameter("@JobStatus", null)); } + if (!string.IsNullOrEmpty(this.txtJobNo.Text.Trim())) + { + listStr.Add(new SqlParameter("@JobNo", "%" + this.txtJobNo.Text.Trim() + "%")); + } + else + { + listStr.Add(new SqlParameter("@JobNo", null)); + } + if (!string.IsNullOrEmpty(this.txtAccount.Text.Trim())) + { + listStr.Add(new SqlParameter("@Account", "%" + this.txtAccount.Text.Trim() + "%")); + } + else + { + listStr.Add(new SqlParameter("@Account", null)); + } + if (drpName.SelectedValue != BLL.Const._Null && drpName.SelectedValue != null) + { + string status = String.Join(",", drpName.SelectedItemArray.Select(x => x.Text)); + listStr.Add(new SqlParameter("@Name", status)); + } + else + { + listStr.Add(new SqlParameter("@Name", null)); + } SqlParameter[] parameter = listStr.ToArray(); DataTable table = SQLHelper.GetDataTableRunProc("Proc_ProjectManhourReport", parameter); if (table.Rows.Count > 0) diff --git a/EProject/FineUIPro.Web/Report/ProjectManhourReport.aspx.designer.cs b/EProject/FineUIPro.Web/Report/ProjectManhourReport.aspx.designer.cs index 1780352..0a02e05 100644 --- a/EProject/FineUIPro.Web/Report/ProjectManhourReport.aspx.designer.cs +++ b/EProject/FineUIPro.Web/Report/ProjectManhourReport.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.Report { - - - public partial class ProjectManhourReport { - +namespace FineUIPro.Web.Report +{ + + + public partial class ProjectManhourReport + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// Grid1 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// Toolbar1 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar1; - + /// /// drpJobStatus 控件。 /// @@ -65,7 +67,34 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpJobStatus; - + + /// + /// txtJobNo 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtJobNo; + + /// + /// txtAccount 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtAccount; + + /// + /// drpName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpName; + /// /// btnSearch 控件。 /// @@ -74,7 +103,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSearch; - + /// /// ToolbarFill1 控件。 /// @@ -83,7 +112,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarFill ToolbarFill1; - + /// /// btnExport 控件。 /// @@ -92,7 +121,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnExport; - + /// /// DropDowsnList1 控件。 /// @@ -101,7 +130,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList DropDowsnList1; - + /// /// DropDownList1 控件。 /// @@ -110,7 +139,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList DropDownList1; - + /// /// DropDownList2 控件。 /// @@ -119,7 +148,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList DropDownList2; - + /// /// DropDownList3 控件。 /// @@ -128,7 +157,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList DropDownList3; - + /// /// DropDownList4 控件。 /// @@ -137,7 +166,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList DropDownList4; - + /// /// DropDownList5 控件。 /// @@ -146,7 +175,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList DropDownList5; - + /// /// DropDownList6 控件。 /// @@ -155,7 +184,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList DropDownList6; - + /// /// DropDownList7 控件。 /// @@ -164,7 +193,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList DropDownList7; - + /// /// DropDownList8 控件。 /// @@ -173,7 +202,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList DropDownList8; - + /// /// DropDownList9 控件。 /// @@ -182,7 +211,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList DropDownList9; - + /// /// DropDownList10 控件。 /// @@ -191,7 +220,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList DropDownList10; - + /// /// DropDownList11 控件。 /// @@ -200,7 +229,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList DropDownList11; - + /// /// DropDownList12 控件。 /// @@ -209,7 +238,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList DropDownList12; - + /// /// DropDownList13 控件。 /// @@ -218,7 +247,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList DropDownList13; - + /// /// DropDownList14 控件。 /// @@ -227,7 +256,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList DropDownList14; - + /// /// ToolbarSeparator1 控件。 /// @@ -236,7 +265,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; - + /// /// ToolbarText1 控件。 /// @@ -245,7 +274,7 @@ namespace FineUIPro.Web.Report { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// diff --git a/EProject/FineUIPro.Web/Report/RolesReport.aspx.cs b/EProject/FineUIPro.Web/Report/RolesReport.aspx.cs index 0b5799f..d8b5491 100644 --- a/EProject/FineUIPro.Web/Report/RolesReport.aspx.cs +++ b/EProject/FineUIPro.Web/Report/RolesReport.aspx.cs @@ -3147,9 +3147,9 @@ namespace FineUIPro.Web.Report using (FileStream filess = File.OpenWrite(ReportFileName)) { hssfworkbook.Write(filess); - hssfworkbook.Close(); - filess.Flush(); - filess.Close(); + //hssfworkbook.Close(); + //filess.Flush(); + //filess.Close(); } percent = 100; url = ReportFileName.Replace(Server.MapPath("~/"), ""); diff --git a/EProject/FineUIPro.Web/ResourcePlan/ResourcePlanAdd.aspx.cs b/EProject/FineUIPro.Web/ResourcePlan/ResourcePlanAdd.aspx.cs index b79216f..cf6c642 100644 --- a/EProject/FineUIPro.Web/ResourcePlan/ResourcePlanAdd.aspx.cs +++ b/EProject/FineUIPro.Web/ResourcePlan/ResourcePlanAdd.aspx.cs @@ -611,11 +611,11 @@ namespace FineUIPro.Web.ResourcePlan // 把account 加日期写入StudyWo中 EProjects.StudyWo = eProject.ProjectControl_Account; - if (eProject.ProjectControl_JobType == "Projects" || eProject.ProjectControl_JobType == "Small Invest") - { - EProjects.ProjectControl_Account = null; - ProjectControlAccount = string.Empty; - } + //if (eProject.ProjectControl_JobType == "Projects" || eProject.ProjectControl_JobType == "Small Invest") + //{ + // EProjects.ProjectControl_Account = null; + // ProjectControlAccount = string.Empty; + //} // 后加条件,当创建第二个资源时,项目批准日期不为空时项目状态为On Going 不要了 修改于2024.07.03 //if (eProject.ProjectControl_JobType == "Other" && eProject.PM_MA_ProjectApproval.HasValue && !eProject.CM_MA_MC.HasValue @@ -638,14 +638,14 @@ namespace FineUIPro.Web.ResourcePlan if (eProject != null) { - if (eProject.ProjectControl_JobStatus == "Not Start" && !eProject.PM_MA_ProjectApproval.HasValue) - { - EProjects.ProjectControl_JobStatus = "Study"; - } - else - { + //if (eProject.ProjectControl_JobStatus == "Not Start" && !eProject.PM_MA_ProjectApproval.HasValue) + //{ + // EProjects.ProjectControl_JobStatus = "Study"; + //} + //else + //{ EProjects.ProjectControl_JobStatus = eProject.ProjectControl_JobStatus; - } + //} diff --git a/EProject/FineUIPro.Web/ResourcePlan/ResourcePlanEdit.aspx.cs b/EProject/FineUIPro.Web/ResourcePlan/ResourcePlanEdit.aspx.cs index 5cdd393..9f92df2 100644 --- a/EProject/FineUIPro.Web/ResourcePlan/ResourcePlanEdit.aspx.cs +++ b/EProject/FineUIPro.Web/ResourcePlan/ResourcePlanEdit.aspx.cs @@ -1048,14 +1048,14 @@ namespace FineUIPro.Web.ResourcePlan } if (eProject != null) { - if (eProject.ProjectControl_JobStatus == "Not Start" && !eProject.PM_MA_ProjectApproval.HasValue) - { - EProject.ProjectControl_JobStatus = "Study"; - } - else - { + //if (eProject.ProjectControl_JobStatus == "Not Start" && !eProject.PM_MA_ProjectApproval.HasValue) + //{ + // EProject.ProjectControl_JobStatus = "Study"; + //} + //else + //{ EProject.ProjectControl_JobStatus = eProject.ProjectControl_JobStatus; - } + //} if (cbCDI.Checked) { diff --git a/EProject/FineUIPro.Web/Web.config b/EProject/FineUIPro.Web/Web.config index 4f770af..96ef0d8 100644 --- a/EProject/FineUIPro.Web/Web.config +++ b/EProject/FineUIPro.Web/Web.config @@ -9,7 +9,7 @@
- + @@ -53,7 +53,7 @@ - + diff --git a/EProject/FineUIPro.Web/common/Main.aspx b/EProject/FineUIPro.Web/common/Main.aspx index b7aee42..033ea0d 100644 --- a/EProject/FineUIPro.Web/common/Main.aspx +++ b/EProject/FineUIPro.Web/common/Main.aspx @@ -19,7 +19,7 @@ .f-grid-row.color1, .f-grid-row.color1 .f-icon, .f-grid-row.color1 a { - color:lightgray; + color: lightgray; } @@ -41,11 +41,11 @@ - - - + + + - + @@ -73,40 +73,40 @@ + FieldType="String" HeaderText="Job No." HeaderTextAlign="Center"> + FieldType="String" HeaderText="Job Type" HeaderTextAlign="Center"> + FieldType="String" HeaderText="Job Title" HeaderTextAlign="Center"> - + + FieldType="String" HeaderText="Project
Manager" HeaderTextAlign="Center">
+ FieldType="String" HeaderText="Const.
Manager" HeaderTextAlign="Center">
+ FieldType="String" HeaderText="Operation
Rep." HeaderTextAlign="Center">
+ FieldType="String" HeaderText="Job Status" HeaderTextAlign="Center"> + FieldType="String" HeaderText="Bu.Code" HeaderTextAlign="Center"> + FieldType="String" Renderer="Date" HeaderText="Approval
Date" HeaderTextAlign="Center">
+ FieldType="String" Renderer="Date" HeaderText="MC Plan
Date" HeaderTextAlign="Center">
@@ -293,7 +293,7 @@ - <%-- - + @@ -387,7 +387,7 @@ runat="server" BodyPadding="1px" ShowBorder="false" ShowHeader="false"> - + @@ -446,7 +446,7 @@ - + @@ -485,7 +485,7 @@ + BoxFlex="1" DataKeyNames="TDCId" DataIDField="TDCId" Height="300px"> @@ -643,6 +643,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -689,10 +728,11 @@ for (var i = 0; i < CostArr.length; i++) { if (CostArr[i].Monthly != "") { Legendata += "'" + CostArr[i].Monthly + "',"; - var sd = parseFloat(CostArr[i].ActualCost) + parseFloat(CostArr[i].CommittedPRPO) + parseFloat(CostArr[i].CommittedSSRs); + var sd = parseFloat(CostArr[i].ActualCost) + parseFloat(CostArr[i].CommittedPRPO) + parseFloat(CostArr[i].CommittedSSRs + parseFloat(CostArr[i].CostToComplete)); ActCom += "" + sd + ","; ActComs += "" + CostArr[i].ActualCost + ","; - Budget += "" + CostArr[i].OrginalBudget + ","; + var bg = parseFloat(CostArr[i].OrginalBudget) + parseFloat(CostArr[i].ChangedBudget); + Budget += "" + bg + ","; } } Legendata = '[' + Legendata.substring(0, Legendata.length - 1) + ']'; @@ -780,17 +820,17 @@ var ManHours = ''; var Hours = ''; var spanValue1 = 0; - var spanValue2= 0; + var spanValue2 = 0; for (var i = 0; i < ResourcesArr.length; i++) { if (ResourcesArr[i].DateMonth != "") { Legendata += "'" + ResourcesArr[i].DateMonth + "',"; spanValue1 += ResourcesArr[i].ManHours; ManHours += "" + spanValue1 + ","; spanValue2 += ResourcesArr[i].Hours; - Hours += "" + spanValue2 + ","; + Hours += "" + spanValue2 + ","; } } - console.log("ManHours:"+ManHours); + console.log("ManHours:" + ManHours); Legendata = '[' + Legendata.substring(0, Legendata.length - 1) + ']'; Legendata = eval(Legendata); @@ -823,7 +863,7 @@ { type: 'category', data: Legendata, - axisLabel: { + axisLabel: { interval: 0, //控制坐标轴刻度标签的显示间隔.设置成 0 强制显示所有标签。设置为 1,隔一个标签显示一个标签。设置为2,间隔2个标签。以此类推 rotate: -20,//倾斜度 -90 至 90 默认为0 textStyle: { diff --git a/EProject/FineUIPro.Web/common/Main.aspx.cs b/EProject/FineUIPro.Web/common/Main.aspx.cs index 43f4f0c..c78e87f 100644 --- a/EProject/FineUIPro.Web/common/Main.aspx.cs +++ b/EProject/FineUIPro.Web/common/Main.aspx.cs @@ -226,6 +226,10 @@ namespace FineUIPro.Web.common { BindGrid9(eProjectId);//FCR Log } + else if (this.TabStrip1.ActiveTabIndex == 11) + { + BindGridKeyQuantity(eProjectId);//Key Quantity + } else { #region General @@ -335,7 +339,7 @@ namespace FineUIPro.Web.common } else { - this.txtCivilEng.Text = string.Empty; + this.txtCivilEng.Text = string.Empty; } //变更范围 if (eProject.PM_SC_ApprovedQty.HasValue)//批准的质量 @@ -995,6 +999,22 @@ namespace FineUIPro.Web.common #endregion #endregion + #region 加载Key Quantity + private void BindGridKeyQuantity(string eProjectId) + { + List listStr = new List + { + new SqlParameter("@eprojectId", eProjectId) + }; + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunProc("Proc_KeyQuantityLists", parameter); + this.GridKeyQuantity.RecordCount = tb.Rows.Count; + //var table = this.GetPagedDataTable(GridKeyQuantity, tb); + GridKeyQuantity.DataSource = tb; + GridKeyQuantity.DataBind(); + } + #endregion + #region 查看编辑器详细信息 /// /// 查看编辑器详细信息 @@ -1087,37 +1107,30 @@ namespace FineUIPro.Web.common //Cost 成本 System.Web.UI.WebControls.Image imgCost = (System.Web.UI.WebControls.Image)this.Grid1.Rows[i].FindControl("imgCost"); double s = 0; - //获取项目的最新成本 - var costManage = BLL.CostReportService.GetMaxMonthCostReportByEprojectId(eprojectId); - if (costManage != null) + + decimal? orginalBudget = eproject.ProjectControl_OrginalBudget.HasValue ? eproject.ProjectControl_OrginalBudget : 0;//原始的预算 + decimal? changedBudget = eproject.ProjectControl_ChangedBudget.HasValue ? eproject.ProjectControl_ChangedBudget : 0;//变更的预算 + decimal? actualCost = eproject.ProjectControl_Actual.HasValue ? eproject.ProjectControl_Actual : 0;//实际的成本 + decimal? committedPRPO = eproject.ProjectControl_CommittedPRPO.HasValue ? eproject.ProjectControl_CommittedPRPO : 0;//承诺的PR或PO成本 + decimal? committedSSRs = eproject.ProjectControl_CommittedSSRs.HasValue ? eproject.ProjectControl_CommittedSSRs : 0; //承诺的SSR成本 + decimal? costToComplete = eproject.PM_General_CostToComplete.HasValue ? eproject.PM_General_CostToComplete : 0; //预估的完工任需成本 + decimal? rmb = actualCost + committedPRPO + committedSSRs + costToComplete;//预估的最终成本=实际的成本+承诺的PR或PO成本+承诺的SSR成本+预估的完工任需成本 + + //成本差异=(预估的最终成本-原始的预算-变更的预算)/(原始的预算+变更的预算)*100% + if (orginalBudget + changedBudget > 0) { - decimal? orginalBudget = costManage.OrginalBudget.HasValue ? costManage.OrginalBudget : 0;//原始的预算 - decimal? changedBudget = costManage.ChangedBudget.HasValue ? costManage.ChangedBudget : 0;//变更的预算 - decimal? actualCost = costManage.ActualCost.HasValue ? costManage.ActualCost : 0;//实际的成本 - decimal? committedPRPO = costManage.CommittedPRPO.HasValue ? costManage.CommittedPRPO : 0;//承诺的PR或PO成本 - decimal? committedSSRs = costManage.CommittedSSRs.HasValue ? costManage.CommittedSSRs : 0; //承诺的SSR成本 - decimal? costToComplete = costManage.CostToComplete.HasValue ? costManage.CostToComplete : 0; //预估的完工任需成本 - decimal? rmb = actualCost + committedPRPO + committedSSRs + costToComplete;//预估的最终成本=实际的成本+承诺的PR或PO成本+承诺的SSR成本+预估的完工任需成本 - //成本差异=(预估的最终成本-原始的预算-变更的预算)/(原始的预算+变更的预算)*100% - if (orginalBudget + changedBudget > 0) + s = Convert.ToDouble((rmb - orginalBudget - changedBudget) / (orginalBudget + changedBudget)); + if (s > 0.1) { - s = Convert.ToDouble((rmb - orginalBudget - changedBudget) / (orginalBudget + changedBudget)); - if (s > 0.1) - { - imgCost.ImageUrl = "../Images/RedLight.jpg"; - } - else if (0.1 >= s && s > 0.05) - { - imgCost.ImageUrl = "../Images/YellowLight.jpg"; - } - else if (s <= 0.05) - { - imgCost.ImageUrl = "../Images/GreenLight.jpg"; - } + imgCost.ImageUrl = "../Images/RedLight.jpg"; } - else + else if (0.1 >= s && s > 0.05) { - imgCost.ImageUrl = "../Images/NoLight.jpg"; + imgCost.ImageUrl = "../Images/YellowLight.jpg"; + } + else if (s <= 0.05) + { + imgCost.ImageUrl = "../Images/GreenLight.jpg"; } } else @@ -1125,6 +1138,45 @@ namespace FineUIPro.Web.common imgCost.ImageUrl = "../Images/NoLight.jpg"; } + #region 不用了 + //获取项目的最新成本 + //var costManage = BLL.CostReportService.GetMaxMonthCostReportByEprojectId(eprojectId); + //if (costManage != null) + //{ + // decimal? orginalBudget = costManage.OrginalBudget.HasValue ? costManage.OrginalBudget : 0;//原始的预算 + // decimal? changedBudget = costManage.ChangedBudget.HasValue ? costManage.ChangedBudget : 0;//变更的预算 + // decimal? actualCost = costManage.ActualCost.HasValue ? costManage.ActualCost : 0;//实际的成本 + // decimal? committedPRPO = costManage.CommittedPRPO.HasValue ? costManage.CommittedPRPO : 0;//承诺的PR或PO成本 + // decimal? committedSSRs = costManage.CommittedSSRs.HasValue ? costManage.CommittedSSRs : 0; //承诺的SSR成本 + // decimal? costToComplete = costManage.CostToComplete.HasValue ? costManage.CostToComplete : 0; //预估的完工任需成本 + // decimal? rmb = actualCost + committedPRPO + committedSSRs + costToComplete;//预估的最终成本=实际的成本+承诺的PR或PO成本+承诺的SSR成本+预估的完工任需成本 + // //成本差异=(预估的最终成本-原始的预算-变更的预算)/(原始的预算+变更的预算)*100% + // if (orginalBudget + changedBudget > 0) + // { + // s = Convert.ToDouble((rmb - orginalBudget - changedBudget) / (orginalBudget + changedBudget)); + // if (s > 0.1) + // { + // imgCost.ImageUrl = "../Images/RedLight.jpg"; + // } + // else if (0.1 >= s && s > 0.05) + // { + // imgCost.ImageUrl = "../Images/YellowLight.jpg"; + // } + // else if (s <= 0.05) + // { + // imgCost.ImageUrl = "../Images/GreenLight.jpg"; + // } + // } + // else + // { + // imgCost.ImageUrl = "../Images/NoLight.jpg"; + // } + //} + //else + //{ + // imgCost.ImageUrl = "../Images/NoLight.jpg"; + //} + #endregion #endregion #region 范围指标 // Scope 范围指标 diff --git a/EProject/FineUIPro.Web/common/Main.aspx.designer.cs b/EProject/FineUIPro.Web/common/Main.aspx.designer.cs index be5a41f..cf0d625 100644 --- a/EProject/FineUIPro.Web/common/Main.aspx.designer.cs +++ b/EProject/FineUIPro.Web/common/Main.aspx.designer.cs @@ -1013,6 +1013,15 @@ namespace FineUIPro.Web.common /// protected global::FineUIPro.Grid Grid9; + /// + /// GridKeyQuantity 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid GridKeyQuantity; + /// /// Window1 控件。 /// diff --git a/EProject/FineUIPro.Web/common/PageBase.cs b/EProject/FineUIPro.Web/common/PageBase.cs index 85985e6..0ed20f4 100644 --- a/EProject/FineUIPro.Web/common/PageBase.cs +++ b/EProject/FineUIPro.Web/common/PageBase.cs @@ -1527,7 +1527,7 @@ namespace FineUIPro.Web { var Sendes1 = (from u in Sys_UserService.GetUserList() join r in Funs.DB.Sys_Role on u.RoleId equals r.RoleId - where r.RoleName == "CTE_Manager" || r.RoleName == "Accounting" + where r.RoleName == "CTE_Manager" //|| r.RoleName == "Accounting" select new { EmuaerEmailAddress = u.Email, senduserid = u.UserId } ).Distinct().ToList(); var Senders = Sendes1.Union(Sendes2); diff --git a/EProject/FineUIPro.Web/index.aspx.cs b/EProject/FineUIPro.Web/index.aspx.cs index 4d4969d..d3e6bfd 100644 --- a/EProject/FineUIPro.Web/index.aspx.cs +++ b/EProject/FineUIPro.Web/index.aspx.cs @@ -129,24 +129,27 @@ namespace FineUIPro.Web leftPanel.Items.Add(accordionMenu); var dt = GetNewMenu("0"); - foreach (var dr in dt) + if (dt.Count() > 0) { - AccordionPane accordionPane = new AccordionPane(); - accordionPane.Title = dr.MenuName; - //accordionPane.Layout = Layout.Fit; - accordionPane.ShowBorder = false; - accordionPane.BodyPadding = "2px 0 0 0"; - accordionMenu.Items.Add(accordionPane); + foreach (var dr in dt) + { + AccordionPane accordionPane = new AccordionPane(); + accordionPane.Title = dr.MenuName; + //accordionPane.Layout = Layout.Fit; + accordionPane.ShowBorder = false; + accordionPane.BodyPadding = "2px 0 0 0"; + accordionMenu.Items.Add(accordionPane); - Tree innerTree = new Tree(); - innerTree.ShowBorder = false; - innerTree.ShowHeader = false; - innerTree.EnableIcons = true; - innerTree.AutoScroll = true; - innerTree.EnableSingleClickExpand = true; - accordionPane.Items.Add(innerTree); + Tree innerTree = new Tree(); + innerTree.ShowBorder = false; + innerTree.ShowHeader = false; + innerTree.EnableIcons = true; + innerTree.AutoScroll = true; + innerTree.EnableSingleClickExpand = true; + accordionPane.Items.Add(innerTree); - BoundTree(innerTree.Nodes, dr.MenuId); + BoundTree(innerTree.Nodes, dr.MenuId); + } } return accordionMenu; } diff --git a/EProject/Model/Model.cs b/EProject/Model/Model.cs index d912a82..66586f5 100644 --- a/EProject/Model/Model.cs +++ b/EProject/Model/Model.cs @@ -53,6 +53,9 @@ namespace Model partial void InsertBase_HyperLinkSet(Base_HyperLinkSet instance); partial void UpdateBase_HyperLinkSet(Base_HyperLinkSet instance); partial void DeleteBase_HyperLinkSet(Base_HyperLinkSet instance); + partial void InsertBase_QuantityDesctiption(Base_QuantityDesctiption instance); + partial void UpdateBase_QuantityDesctiption(Base_QuantityDesctiption instance); + partial void DeleteBase_QuantityDesctiption(Base_QuantityDesctiption instance); partial void InsertDesign_Input(Design_Input instance); partial void UpdateDesign_Input(Design_Input instance); partial void DeleteDesign_Input(Design_Input instance); @@ -80,6 +83,9 @@ namespace Model partial void InsertEditor_FCRLog(Editor_FCRLog instance); partial void UpdateEditor_FCRLog(Editor_FCRLog instance); partial void DeleteEditor_FCRLog(Editor_FCRLog instance); + partial void InsertEditor_KeyQuantity(Editor_KeyQuantity instance); + partial void UpdateEditor_KeyQuantity(Editor_KeyQuantity instance); + partial void DeleteEditor_KeyQuantity(Editor_KeyQuantity instance); partial void InsertEditor_LessonsLearned(Editor_LessonsLearned instance); partial void UpdateEditor_LessonsLearned(Editor_LessonsLearned instance); partial void DeleteEditor_LessonsLearned(Editor_LessonsLearned instance); @@ -260,6 +266,14 @@ namespace Model } } + public System.Data.Linq.Table Base_QuantityDesctiption + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Design_Input { get @@ -332,6 +346,14 @@ namespace Model } } + public System.Data.Linq.Table Editor_KeyQuantity + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Editor_LessonsLearned { get @@ -1871,7 +1893,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DepartCode", DbType="NVarChar(10)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DepartCode", DbType="NVarChar(20)")] public string DepartCode { get @@ -2055,6 +2077,8 @@ namespace Model private string _NetworkOper1; + private EntitySet _Base_QuantityDesctiption; + #region 可扩展性方法定义 partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); @@ -2095,6 +2119,7 @@ namespace Model public Base_DisciplinesWBS() { + this._Base_QuantityDesctiption = new EntitySet(new Action(this.attach_Base_QuantityDesctiption), new Action(this.detach_Base_QuantityDesctiption)); OnCreated(); } @@ -2418,6 +2443,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Base_QuantityDesctiption_Base_DisciplinesWBS", Storage="_Base_QuantityDesctiption", ThisKey="DisciplinesWBSId", OtherKey="DisciplinesWBSId", DeleteRule="NO ACTION")] + public EntitySet Base_QuantityDesctiption + { + get + { + return this._Base_QuantityDesctiption; + } + set + { + this._Base_QuantityDesctiption.Assign(value); + } + } + public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; @@ -2437,6 +2475,18 @@ namespace Model this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } + + private void attach_Base_QuantityDesctiption(Base_QuantityDesctiption entity) + { + this.SendPropertyChanging(); + entity.Base_DisciplinesWBS = this; + } + + private void detach_Base_QuantityDesctiption(Base_QuantityDesctiption entity) + { + this.SendPropertyChanging(); + entity.Base_DisciplinesWBS = null; + } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Base_HyperLinkSet")] @@ -2573,6 +2623,233 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Base_QuantityDesctiption")] + public partial class Base_QuantityDesctiption : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _KeyId; + + private string _DepartId; + + private string _DisciplinesWBSId; + + private string _QuantityDesctiption; + + private System.Nullable _PlanMHRsUnit; + + private EntityRef _Base_DisciplinesWBS; + + private EntitySet _Editor_KeyQuantity; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnKeyIdChanging(string value); + partial void OnKeyIdChanged(); + partial void OnDepartIdChanging(string value); + partial void OnDepartIdChanged(); + partial void OnDisciplinesWBSIdChanging(string value); + partial void OnDisciplinesWBSIdChanged(); + partial void OnQuantityDesctiptionChanging(string value); + partial void OnQuantityDesctiptionChanged(); + partial void OnPlanMHRsUnitChanging(System.Nullable value); + partial void OnPlanMHRsUnitChanged(); + #endregion + + public Base_QuantityDesctiption() + { + this._Base_DisciplinesWBS = default(EntityRef); + this._Editor_KeyQuantity = new EntitySet(new Action(this.attach_Editor_KeyQuantity), new Action(this.detach_Editor_KeyQuantity)); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string KeyId + { + get + { + return this._KeyId; + } + set + { + if ((this._KeyId != value)) + { + this.OnKeyIdChanging(value); + this.SendPropertyChanging(); + this._KeyId = value; + this.SendPropertyChanged("KeyId"); + this.OnKeyIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DepartId", DbType="NVarChar(50)")] + public string DepartId + { + get + { + return this._DepartId; + } + set + { + if ((this._DepartId != value)) + { + this.OnDepartIdChanging(value); + this.SendPropertyChanging(); + this._DepartId = value; + this.SendPropertyChanged("DepartId"); + this.OnDepartIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DisciplinesWBSId", DbType="NVarChar(50)")] + public string DisciplinesWBSId + { + get + { + return this._DisciplinesWBSId; + } + set + { + if ((this._DisciplinesWBSId != value)) + { + if (this._Base_DisciplinesWBS.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnDisciplinesWBSIdChanging(value); + this.SendPropertyChanging(); + this._DisciplinesWBSId = value; + this.SendPropertyChanged("DisciplinesWBSId"); + this.OnDisciplinesWBSIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QuantityDesctiption", DbType="NVarChar(200)")] + public string QuantityDesctiption + { + get + { + return this._QuantityDesctiption; + } + set + { + if ((this._QuantityDesctiption != value)) + { + this.OnQuantityDesctiptionChanging(value); + this.SendPropertyChanging(); + this._QuantityDesctiption = value; + this.SendPropertyChanged("QuantityDesctiption"); + this.OnQuantityDesctiptionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlanMHRsUnit", DbType="Decimal(18,2)")] + public System.Nullable PlanMHRsUnit + { + get + { + return this._PlanMHRsUnit; + } + set + { + if ((this._PlanMHRsUnit != value)) + { + this.OnPlanMHRsUnitChanging(value); + this.SendPropertyChanging(); + this._PlanMHRsUnit = value; + this.SendPropertyChanged("PlanMHRsUnit"); + this.OnPlanMHRsUnitChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Base_QuantityDesctiption_Base_DisciplinesWBS", Storage="_Base_DisciplinesWBS", ThisKey="DisciplinesWBSId", OtherKey="DisciplinesWBSId", IsForeignKey=true)] + public Base_DisciplinesWBS Base_DisciplinesWBS + { + get + { + return this._Base_DisciplinesWBS.Entity; + } + set + { + Base_DisciplinesWBS previousValue = this._Base_DisciplinesWBS.Entity; + if (((previousValue != value) + || (this._Base_DisciplinesWBS.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_DisciplinesWBS.Entity = null; + previousValue.Base_QuantityDesctiption.Remove(this); + } + this._Base_DisciplinesWBS.Entity = value; + if ((value != null)) + { + value.Base_QuantityDesctiption.Add(this); + this._DisciplinesWBSId = value.DisciplinesWBSId; + } + else + { + this._DisciplinesWBSId = default(string); + } + this.SendPropertyChanged("Base_DisciplinesWBS"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Editor_KeyQuantity_Base_QuantityDesctiption", Storage="_Editor_KeyQuantity", ThisKey="KeyId", OtherKey="KeyId", DeleteRule="NO ACTION")] + public EntitySet Editor_KeyQuantity + { + get + { + return this._Editor_KeyQuantity; + } + set + { + this._Editor_KeyQuantity.Assign(value); + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + + private void attach_Editor_KeyQuantity(Editor_KeyQuantity entity) + { + this.SendPropertyChanging(); + entity.Base_QuantityDesctiption = this; + } + + private void detach_Editor_KeyQuantity(Editor_KeyQuantity entity) + { + this.SendPropertyChanging(); + entity.Base_QuantityDesctiption = null; + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Design_Input")] public partial class Design_Input : INotifyPropertyChanging, INotifyPropertyChanged { @@ -5678,6 +5955,8 @@ namespace Model private string _ProjectControl_ProjectType; + private System.Nullable _ProjectControl_RFSU_CloseDate; + private EntitySet _Design_Input; private EntitySet _Editor_AreaConcern; @@ -5690,6 +5969,8 @@ namespace Model private EntitySet _Editor_FCRLog; + private EntitySet _Editor_KeyQuantity; + private EntitySet _Editor_LessonsLearned; private EntitySet _Editor_Punch; @@ -6112,6 +6393,8 @@ namespace Model partial void OnPM_Pre_ApprovalChanged(); partial void OnProjectControl_ProjectTypeChanging(string value); partial void OnProjectControl_ProjectTypeChanged(); + partial void OnProjectControl_RFSU_CloseDateChanging(System.Nullable value); + partial void OnProjectControl_RFSU_CloseDateChanged(); #endregion public Editor_EProject() @@ -6122,6 +6405,7 @@ namespace Model this._Editor_CostReport = new EntitySet(new Action(this.attach_Editor_CostReport), new Action(this.detach_Editor_CostReport)); this._Editor_PM = new EntitySet(new Action(this.attach_Editor_PM), new Action(this.detach_Editor_PM)); this._Editor_FCRLog = new EntitySet(new Action(this.attach_Editor_FCRLog), new Action(this.detach_Editor_FCRLog)); + this._Editor_KeyQuantity = new EntitySet(new Action(this.attach_Editor_KeyQuantity), new Action(this.detach_Editor_KeyQuantity)); this._Editor_LessonsLearned = new EntitySet(new Action(this.attach_Editor_LessonsLearned), new Action(this.detach_Editor_LessonsLearned)); this._Editor_Punch = new EntitySet(new Action(this.attach_Editor_Punch), new Action(this.detach_Editor_Punch)); this._ManHours_Plan = new EntitySet(new Action(this.attach_ManHours_Plan), new Action(this.detach_ManHours_Plan)); @@ -6811,7 +7095,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CM_Remarks_Construction", DbType="NVarChar(2000)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CM_Remarks_Construction", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] public string CM_Remarks_Construction { get @@ -6831,7 +7115,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CM_Remarks_Procurement", DbType="NVarChar(2000)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CM_Remarks_Procurement", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] public string CM_Remarks_Procurement { get @@ -6851,7 +7135,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CM_Remarks_QualityHSE", DbType="NVarChar(2000)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CM_Remarks_QualityHSE", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] public string CM_Remarks_QualityHSE { get @@ -10191,6 +10475,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectControl_RFSU_CloseDate", DbType="DateTime")] + public System.Nullable ProjectControl_RFSU_CloseDate + { + get + { + return this._ProjectControl_RFSU_CloseDate; + } + set + { + if ((this._ProjectControl_RFSU_CloseDate != value)) + { + this.OnProjectControl_RFSU_CloseDateChanging(value); + this.SendPropertyChanging(); + this._ProjectControl_RFSU_CloseDate = value; + this.SendPropertyChanged("ProjectControl_RFSU_CloseDate"); + this.OnProjectControl_RFSU_CloseDateChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Design_Input_Editor_EProject", Storage="_Design_Input", ThisKey="EProjectId", OtherKey="EProjectId", DeleteRule="NO ACTION")] public EntitySet Design_Input { @@ -10269,6 +10573,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Editor_KeyQuantity_Editor_EProject", Storage="_Editor_KeyQuantity", ThisKey="EProjectId", OtherKey="EProjectId", DeleteRule="NO ACTION")] + public EntitySet Editor_KeyQuantity + { + get + { + return this._Editor_KeyQuantity; + } + set + { + this._Editor_KeyQuantity.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Editor_LessonsLearned_Editor_EProject", Storage="_Editor_LessonsLearned", ThisKey="EProjectId", OtherKey="EProjectId", DeleteRule="NO ACTION")] public EntitySet Editor_LessonsLearned { @@ -10439,6 +10756,18 @@ namespace Model entity.Editor_EProject = null; } + private void attach_Editor_KeyQuantity(Editor_KeyQuantity entity) + { + this.SendPropertyChanging(); + entity.Editor_EProject = this; + } + + private void detach_Editor_KeyQuantity(Editor_KeyQuantity entity) + { + this.SendPropertyChanging(); + entity.Editor_EProject = null; + } + private void attach_Editor_LessonsLearned(Editor_LessonsLearned entity) { this.SendPropertyChanging(); @@ -11194,6 +11523,366 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Editor_KeyQuantity")] + public partial class Editor_KeyQuantity : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _KeyQuantityId; + + private string _EProjectId; + + private string _KeyId; + + private System.Nullable _InputQuantity; + + private System.Nullable _PlanMHRs; + + private string _Identifier; + + private string _Descipline; + + private string _QuantityDesctiption; + + private System.Nullable _PlanMHRsUnit; + + private string _Type; + + private EntityRef _Base_QuantityDesctiption; + + private EntityRef _Editor_EProject; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnKeyQuantityIdChanging(string value); + partial void OnKeyQuantityIdChanged(); + partial void OnEProjectIdChanging(string value); + partial void OnEProjectIdChanged(); + partial void OnKeyIdChanging(string value); + partial void OnKeyIdChanged(); + partial void OnInputQuantityChanging(System.Nullable value); + partial void OnInputQuantityChanged(); + partial void OnPlanMHRsChanging(System.Nullable value); + partial void OnPlanMHRsChanged(); + partial void OnIdentifierChanging(string value); + partial void OnIdentifierChanged(); + partial void OnDesciplineChanging(string value); + partial void OnDesciplineChanged(); + partial void OnQuantityDesctiptionChanging(string value); + partial void OnQuantityDesctiptionChanged(); + partial void OnPlanMHRsUnitChanging(System.Nullable value); + partial void OnPlanMHRsUnitChanged(); + partial void OnTypeChanging(string value); + partial void OnTypeChanged(); + #endregion + + public Editor_KeyQuantity() + { + this._Base_QuantityDesctiption = default(EntityRef); + this._Editor_EProject = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyQuantityId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string KeyQuantityId + { + get + { + return this._KeyQuantityId; + } + set + { + if ((this._KeyQuantityId != value)) + { + this.OnKeyQuantityIdChanging(value); + this.SendPropertyChanging(); + this._KeyQuantityId = value; + this.SendPropertyChanged("KeyQuantityId"); + this.OnKeyQuantityIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EProjectId", DbType="NVarChar(50)")] + public string EProjectId + { + get + { + return this._EProjectId; + } + set + { + if ((this._EProjectId != value)) + { + if (this._Editor_EProject.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnEProjectIdChanging(value); + this.SendPropertyChanging(); + this._EProjectId = value; + this.SendPropertyChanged("EProjectId"); + this.OnEProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyId", DbType="NVarChar(50)")] + public string KeyId + { + get + { + return this._KeyId; + } + set + { + if ((this._KeyId != value)) + { + if (this._Base_QuantityDesctiption.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnKeyIdChanging(value); + this.SendPropertyChanging(); + this._KeyId = value; + this.SendPropertyChanged("KeyId"); + this.OnKeyIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InputQuantity", DbType="Decimal(18,2)")] + public System.Nullable InputQuantity + { + get + { + return this._InputQuantity; + } + set + { + if ((this._InputQuantity != value)) + { + this.OnInputQuantityChanging(value); + this.SendPropertyChanging(); + this._InputQuantity = value; + this.SendPropertyChanged("InputQuantity"); + this.OnInputQuantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlanMHRs", DbType="Decimal(18,2)")] + public System.Nullable PlanMHRs + { + get + { + return this._PlanMHRs; + } + set + { + if ((this._PlanMHRs != value)) + { + this.OnPlanMHRsChanging(value); + this.SendPropertyChanging(); + this._PlanMHRs = value; + this.SendPropertyChanged("PlanMHRs"); + this.OnPlanMHRsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Identifier", DbType="NVarChar(50)")] + public string Identifier + { + get + { + return this._Identifier; + } + set + { + if ((this._Identifier != value)) + { + this.OnIdentifierChanging(value); + this.SendPropertyChanging(); + this._Identifier = value; + this.SendPropertyChanged("Identifier"); + this.OnIdentifierChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Descipline", DbType="NVarChar(50)")] + public string Descipline + { + get + { + return this._Descipline; + } + set + { + if ((this._Descipline != value)) + { + this.OnDesciplineChanging(value); + this.SendPropertyChanging(); + this._Descipline = value; + this.SendPropertyChanged("Descipline"); + this.OnDesciplineChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QuantityDesctiption", DbType="NVarChar(200)")] + public string QuantityDesctiption + { + get + { + return this._QuantityDesctiption; + } + set + { + if ((this._QuantityDesctiption != value)) + { + this.OnQuantityDesctiptionChanging(value); + this.SendPropertyChanging(); + this._QuantityDesctiption = value; + this.SendPropertyChanged("QuantityDesctiption"); + this.OnQuantityDesctiptionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlanMHRsUnit", DbType="Decimal(18,2)")] + public System.Nullable PlanMHRsUnit + { + get + { + return this._PlanMHRsUnit; + } + set + { + if ((this._PlanMHRsUnit != value)) + { + this.OnPlanMHRsUnitChanging(value); + this.SendPropertyChanging(); + this._PlanMHRsUnit = value; + this.SendPropertyChanged("PlanMHRsUnit"); + this.OnPlanMHRsUnitChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Type", DbType="NVarChar(50)")] + public string Type + { + get + { + return this._Type; + } + set + { + if ((this._Type != value)) + { + this.OnTypeChanging(value); + this.SendPropertyChanging(); + this._Type = value; + this.SendPropertyChanged("Type"); + this.OnTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Editor_KeyQuantity_Base_QuantityDesctiption", Storage="_Base_QuantityDesctiption", ThisKey="KeyId", OtherKey="KeyId", IsForeignKey=true)] + public Base_QuantityDesctiption Base_QuantityDesctiption + { + get + { + return this._Base_QuantityDesctiption.Entity; + } + set + { + Base_QuantityDesctiption previousValue = this._Base_QuantityDesctiption.Entity; + if (((previousValue != value) + || (this._Base_QuantityDesctiption.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_QuantityDesctiption.Entity = null; + previousValue.Editor_KeyQuantity.Remove(this); + } + this._Base_QuantityDesctiption.Entity = value; + if ((value != null)) + { + value.Editor_KeyQuantity.Add(this); + this._KeyId = value.KeyId; + } + else + { + this._KeyId = default(string); + } + this.SendPropertyChanged("Base_QuantityDesctiption"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Editor_KeyQuantity_Editor_EProject", Storage="_Editor_EProject", ThisKey="EProjectId", OtherKey="EProjectId", IsForeignKey=true)] + public Editor_EProject Editor_EProject + { + get + { + return this._Editor_EProject.Entity; + } + set + { + Editor_EProject previousValue = this._Editor_EProject.Entity; + if (((previousValue != value) + || (this._Editor_EProject.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Editor_EProject.Entity = null; + previousValue.Editor_KeyQuantity.Remove(this); + } + this._Editor_EProject.Entity = value; + if ((value != null)) + { + value.Editor_KeyQuantity.Add(this); + this._EProjectId = value.EProjectId; + } + else + { + this._EProjectId = default(string); + } + this.SendPropertyChanged("Editor_EProject"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Editor_LessonsLearned")] public partial class Editor_LessonsLearned : INotifyPropertyChanging, INotifyPropertyChanged { @@ -15282,6 +15971,8 @@ namespace Model private System.Nullable _IsClose; + private string _Phase; + private EntityRef _Editor_EProject; private EntityRef _Resource_Plan; @@ -15318,6 +16009,8 @@ namespace Model partial void OnAccountDisabledChanged(); partial void OnIsCloseChanging(System.Nullable value); partial void OnIsCloseChanged(); + partial void OnPhaseChanging(string value); + partial void OnPhaseChanged(); #endregion public ManHours_Plan() @@ -15581,6 +16274,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Phase", DbType="NVarChar(50)")] + public string Phase + { + get + { + return this._Phase; + } + set + { + if ((this._Phase != value)) + { + this.OnPhaseChanging(value); + this.SendPropertyChanging(); + this._Phase = value; + this.SendPropertyChanged("Phase"); + this.OnPhaseChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ManHours_Plan_Editor_EProject", Storage="_Editor_EProject", ThisKey="EProjectId", OtherKey="EProjectId", IsForeignKey=true)] public Editor_EProject Editor_EProject { @@ -27888,8 +28601,6 @@ namespace Model private string _CM_CM_RevisedEnd; - private string _CM_KickOffMetting; - private System.Nullable _ProjectControl_Revised_MC_Date; private string _ProjectControl_Remarks; @@ -27916,6 +28627,14 @@ namespace Model private string _Job_Hold; + private string _CM_KickOffMetting; + + private string _PM_Remarks_Engineering; + + private string _PM_Remarks_Procurement; + + private string _CM_Remarks_Construction; + public View_ProjectListReport() { } @@ -28944,22 +29663,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CM_KickOffMetting", DbType="VarChar(10)")] - public string CM_KickOffMetting - { - get - { - return this._CM_KickOffMetting; - } - set - { - if ((this._CM_KickOffMetting != value)) - { - this._CM_KickOffMetting = value; - } - } - } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectControl_Revised_MC_Date", DbType="DateTime")] public System.Nullable ProjectControl_Revised_MC_Date { @@ -29167,6 +29870,70 @@ namespace Model } } } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CM_KickOffMetting", DbType="VarChar(10)")] + public string CM_KickOffMetting + { + get + { + return this._CM_KickOffMetting; + } + set + { + if ((this._CM_KickOffMetting != value)) + { + this._CM_KickOffMetting = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PM_Remarks_Engineering", DbType="NVarChar(2000)")] + public string PM_Remarks_Engineering + { + get + { + return this._PM_Remarks_Engineering; + } + set + { + if ((this._PM_Remarks_Engineering != value)) + { + this._PM_Remarks_Engineering = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PM_Remarks_Procurement", DbType="NVarChar(2000)")] + public string PM_Remarks_Procurement + { + get + { + return this._PM_Remarks_Procurement; + } + set + { + if ((this._PM_Remarks_Procurement != value)) + { + this._PM_Remarks_Procurement = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CM_Remarks_Construction", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + public string CM_Remarks_Construction + { + get + { + return this._CM_Remarks_Construction; + } + set + { + if ((this._CM_Remarks_Construction != value)) + { + this._CM_Remarks_Construction = value; + } + } + } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_Punch")] @@ -35938,7 +36705,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DepartCode", DbType="NVarChar(10)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DepartCode", DbType="NVarChar(20)")] public string DepartCode { get diff --git a/EProject/WebApi/WebApi.csproj.user b/EProject/WebApi/WebApi.csproj.user index ca0d73e..643f3e5 100644 --- a/EProject/WebApi/WebApi.csproj.user +++ b/EProject/WebApi/WebApi.csproj.user @@ -8,7 +8,7 @@ - Debug|Any CPU + Release|Any CPU