Merge branch 'master' of http://47.104.102.122:3000/lpf/SGGL_SeDin_New
This commit is contained in:
@@ -31,8 +31,7 @@
|
||||
<Items>
|
||||
<%--<f:TextBox ID="txtContractNum" runat="server" Label="合同号" MaxLength="50" FocusOnPageLoad="true">
|
||||
</f:TextBox>--%>
|
||||
<f:DropDownList ID="drpContractNum" runat="server" Label="合同号" Required="true" ShowRedStar="true" EmptyText="-请选择-">
|
||||
</f:DropDownList>
|
||||
<f:TextBox runat="server" ID="txtContractNum" Label="合同号" ></f:TextBox>
|
||||
<f:DatePicker ID="txtCostManageDate" runat="server" Label="日期" EnableEdit="false">
|
||||
</f:DatePicker>
|
||||
</Items>
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideRefreshReference();
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
BLL.ContractService.InitCompletedContractsDropDownList(this.ProjectId,this.drpContractNum);
|
||||
//BLL.ContractService.InitCompletedContractsDropDownList(this.ProjectId,this.drpContractNum);
|
||||
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, false);
|
||||
this.CostManageId = Request.Params["CostManageId"] ?? SQLHelper.GetNewID();
|
||||
var costManage = BLL.CostManageService.GetCostManageById(this.CostManageId);
|
||||
@@ -68,7 +68,8 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
{
|
||||
this.drpUnit.SelectedValue = costManage.UnitId;
|
||||
}
|
||||
this.drpContractNum.SelectedValue = costManage.ContractNum;
|
||||
//this.drpContractNum.SelectedValue = costManage.ContractNum;
|
||||
this.txtContractNum.Text = costManage.ContractNum;
|
||||
this.txtCostManageDate.Text = string.Format("{0:yyyy-MM-dd}", costManage.CostManageDate);
|
||||
|
||||
}
|
||||
@@ -303,7 +304,8 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
{
|
||||
ProjectId = this.ProjectId,
|
||||
UnitId = this.drpUnit.SelectedValue == Const._Null ? null : this.drpUnit.SelectedValue,
|
||||
ContractNum = this.drpContractNum.SelectedValue,
|
||||
//ContractNum = this.drpContractNum.SelectedValue,
|
||||
ContractNum = this.txtContractNum.Text.Trim(),
|
||||
CostManageDate = Funs.GetNewDateTime(this.txtCostManageDate.Text.Trim()),
|
||||
States = BLL.Const.State_0,
|
||||
CompileMan = this.CurrUser.PersonId,
|
||||
|
||||
+35
-37
@@ -7,13 +7,11 @@
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HSSE.CostGoods
|
||||
{
|
||||
|
||||
|
||||
public partial class CostManageEdit
|
||||
{
|
||||
|
||||
namespace FineUIPro.Web.HSSE.CostGoods {
|
||||
|
||||
|
||||
public partial class CostManageEdit {
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
@@ -22,7 +20,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
@@ -31,7 +29,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
@@ -40,7 +38,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtProjectName 控件。
|
||||
/// </summary>
|
||||
@@ -49,7 +47,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtProjectName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpUnit 控件。
|
||||
/// </summary>
|
||||
@@ -58,16 +56,16 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUnit;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpContractNum 控件。
|
||||
/// txtContractNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpContractNum;
|
||||
|
||||
protected global::FineUIPro.TextBox txtContractNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtCostManageDate 控件。
|
||||
/// </summary>
|
||||
@@ -76,7 +74,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtCostManageDate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtHseCost 控件。
|
||||
/// </summary>
|
||||
@@ -85,7 +83,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtHseCost;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtGetCost 控件。
|
||||
/// </summary>
|
||||
@@ -94,7 +92,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtGetCost;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtSumMoney 控件。
|
||||
/// </summary>
|
||||
@@ -103,7 +101,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtSumMoney;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
@@ -112,7 +110,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
@@ -121,7 +119,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill2 控件。
|
||||
/// </summary>
|
||||
@@ -130,7 +128,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnNew 控件。
|
||||
/// </summary>
|
||||
@@ -139,7 +137,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lb 控件。
|
||||
/// </summary>
|
||||
@@ -148,7 +146,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lb;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpNextMan 控件。
|
||||
/// </summary>
|
||||
@@ -157,7 +155,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpNextMan;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid2 控件。
|
||||
/// </summary>
|
||||
@@ -166,7 +164,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
@@ -175,7 +173,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lbTemp 控件。
|
||||
/// </summary>
|
||||
@@ -184,7 +182,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbTemp;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnAttachUrl 控件。
|
||||
/// </summary>
|
||||
@@ -193,7 +191,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAttachUrl;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
@@ -202,7 +200,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
@@ -211,7 +209,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSubmit 控件。
|
||||
/// </summary>
|
||||
@@ -220,7 +218,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSubmit;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
@@ -229,7 +227,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
@@ -238,7 +236,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// </summary>
|
||||
@@ -247,7 +245,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowAtt;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
@@ -256,7 +254,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit 控件。
|
||||
/// </summary>
|
||||
@@ -265,7 +263,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -251,12 +251,12 @@ namespace FineUIPro.Web.HSSE.Hazard
|
||||
var DateWeek = (from x in Funs.DB.HSSE_ConstructionRisk
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
&& x.UnitId == node.NodeID
|
||||
select x.DateWeek).Distinct().ToList().OrderByDescending(x => x);
|
||||
select new { x.DateWeek, x.DateA }).Distinct().ToList().OrderByDescending(x => x.DateA);
|
||||
foreach (var d in DateWeek)
|
||||
{
|
||||
TreeNode newNode = new TreeNode();
|
||||
newNode.Text = d; //string.Format("{0:yyyy-MM-dd}", d.AssessmentDate);
|
||||
newNode.NodeID = node.NodeID + "|" + d;
|
||||
newNode.Text = d.DateWeek; //string.Format("{0:yyyy-MM-dd}", d.AssessmentDate);
|
||||
newNode.NodeID = node.NodeID + "|" + d.DateWeek;
|
||||
newNode.EnableClickEvent = true;
|
||||
newNode.ToolTip = "标签";
|
||||
node.Nodes.Add(newNode);
|
||||
|
||||
@@ -1060,16 +1060,54 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
int a = persons.Count();
|
||||
for (int i = 0; i < a; i++)
|
||||
{
|
||||
var person = Person_PersonsService.GetPerson_PersonsByIdCard(persons[i].IdentityCard);
|
||||
if (person == null)
|
||||
{
|
||||
string newKeyID = SQLHelper.GetNewID(typeof(Model.SitePerson_Person));
|
||||
person = new Model.Person_Persons
|
||||
{
|
||||
PersonId = newKeyID,
|
||||
PersonName = persons[i].PersonName,
|
||||
UnitId = persons[i].UnitId,
|
||||
WorkPostId = persons[i].WorkPostId,
|
||||
PersonType = "1",
|
||||
IdcardType = persons[i].IdcardType,
|
||||
IdentityCard = persons[i].IdentityCard,
|
||||
IdcardForever = persons[i].IdcardForever,
|
||||
IdcardStartDate = persons[i].IdcardStartDate,
|
||||
IdcardEndDate = persons[i].IdcardEndDate,
|
||||
IdcardAddress = persons[i].IdcardAddress,
|
||||
Telephone = persons[i].Telephone,
|
||||
Sex = persons[i].SexName == "男" ? "1" : "2",
|
||||
Birthday = persons[i].Birthday,
|
||||
//Major = this.txtMajor.Text.Trim(),
|
||||
//ForeignLanguage = this.txtForeignLanguage.Text.Trim(),
|
||||
CountryCode = persons[i].CountryCode,
|
||||
ProvinceCode = persons[i].ProvinceCode,
|
||||
Nation = persons[i].Nation,
|
||||
PoliticsStatus = persons[i].PoliticsStatus,
|
||||
EduLevel = persons[i].EduLevel,
|
||||
MaritalStatus = persons[i].MaritalStatus,
|
||||
//RelativeName = this.txtRelativeName.Text.Trim(),
|
||||
//RelativeTel = this.txtRelativeTel.Text.Trim(),
|
||||
Address = persons[i].Address,
|
||||
//RoleIds = Funs.GetStringByArray(this.drpProjectRole.SelectedValueArray),
|
||||
};
|
||||
BLL.Person_PersonsService.AddPerson(person);
|
||||
}
|
||||
|
||||
|
||||
var getPerson = SitePerson_PersonService.GetSitePersonByProjectIdIdentityCard(Request.Params["ProjectId"], persons[i].IdentityCard);
|
||||
//!BLL.PersonService.IsExistPersonByUnit(persons[i].UnitId, persons[i].IdentityCard, Request.Params["ProjectId"]) &&
|
||||
if (getPerson == null)
|
||||
{
|
||||
Model.SitePerson_Person newPerson = new Model.SitePerson_Person();
|
||||
string newKeyID = SQLHelper.GetNewID(typeof(Model.SitePerson_Person));
|
||||
newPerson.PersonId = newKeyID;
|
||||
newPerson.SitePersonId = SQLHelper.GetNewID();
|
||||
newPerson.PersonId = person.PersonId;
|
||||
newPerson.ProjectId = Request.Params["ProjectId"];
|
||||
newPerson.CardNo = persons[i].CardNo;
|
||||
newPerson.PersonName = persons[i].PersonName;
|
||||
newPerson.IdentityCard = persons[i].IdentityCard;
|
||||
//newPerson.Sex = persons[i].SexName == "男" ? "1" : "2";
|
||||
//newPerson.IdcardType = persons[i].IdcardType;
|
||||
//newPerson.IdentityCard = persons[i].IdentityCard;
|
||||
|
||||
Reference in New Issue
Block a user