项目人员信息档案新增、导入补充:机构划分、组织单元、人员分类、员工子组、备注信息
This commit is contained in:
@@ -47,7 +47,7 @@ namespace FineUIPro.Web.Person.EduTrain
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.lbTitleName.Text = UnitService.GetUnitNameByUnitId(Const.UnitId_TCC) + ProjectService.GetProjectNameByProjectId(this.CurrUser.LoginProjectId);
|
||||
this.lbTitleName.Text = UnitService.GetUnitNameByUnitId(Const.UnitId_XJYJ) + ProjectService.GetProjectNameByProjectId(this.CurrUser.LoginProjectId);
|
||||
this.lbTestType.Text = "培训试题";
|
||||
this.TestRecordId = Request.Params["TestRecordId"];
|
||||
this.Type = Request.Params["Type"];
|
||||
@@ -63,7 +63,7 @@ namespace FineUIPro.Web.Person.EduTrain
|
||||
{
|
||||
personInfo += "项目:" + ProjectService.GetProjectNameByProjectId(testRecord.ProjectId) + " ";
|
||||
}
|
||||
else if (testRecord.UnitId == Const.UnitId_TCC)
|
||||
else if (testRecord.UnitId == Const.UnitId_XJYJ)
|
||||
{
|
||||
personInfo += "部门:" + DepartService.getDepartNameById(testRecord.DepartId) + " ";
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace FineUIPro.Web.Person
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
BLL.UserService.InitUserUnitIdDropDownList(drpSEDINUser, Const.UnitId_TCC, true);
|
||||
BLL.UserService.InitUserUnitIdDropDownList(drpSEDINUser, Const.UnitId_XJYJ, true);
|
||||
WorkPostService.InitMainWorkPostDropDownList(drpWorkPost, true);
|
||||
this.DutyId = Request.Params["DutyId"];
|
||||
if (!string.IsNullOrEmpty(this.DutyId)) {
|
||||
|
||||
@@ -30,9 +30,9 @@ namespace FineUIPro.Web.Person
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
BLL.UserService.InitUserUnitIdDropDownList(drpSEDINUser, Const.UnitId_TCC, true);
|
||||
BLL.UserService.InitUserUnitIdDropDownList(drpSEDINUser, Const.UnitId_XJYJ, true);
|
||||
WorkPostService.InitMainWorkPostDropDownList(drpWorkPost, true);
|
||||
BLL.UserService.InitUserUnitIdDepartIdDropDownList(drpHandleMan, Const.UnitId_TCC, Const.Depart_constructionId,true);
|
||||
BLL.UserService.InitUserUnitIdDepartIdDropDownList(drpHandleMan, Const.UnitId_XJYJ, Const.Depart_constructionId,true);
|
||||
this.DutyId = Request.Params["DutyId"];
|
||||
if (!string.IsNullOrEmpty(this.DutyId)) {
|
||||
var PersonDuty = BLL.Person_DutyService.GetPersonDutyById(this.DutyId);
|
||||
@@ -116,7 +116,7 @@ namespace FineUIPro.Web.Person
|
||||
if (this.rdbIsAgree.SelectedValue.Contains("false"))
|
||||
{
|
||||
this.drpHandleMan.Hidden = false;
|
||||
BLL.UserService.InitUserUnitIdDropDownList(drpHandleMan, Const.UnitId_TCC, true);
|
||||
BLL.UserService.InitUserUnitIdDropDownList(drpHandleMan, Const.UnitId_XJYJ, true);
|
||||
this.drpHandleMan.SelectedValue = PersonDuty.DutyPersonId;
|
||||
this.drpHandleMan.Label = "打回责任人";
|
||||
this.drpHandleMan.Readonly = true;
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace FineUIPro.Web.Person
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
BLL.UserService.InitUserUnitIdDropDownList(drpSEDINUser, Const.UnitId_TCC, true);
|
||||
BLL.UserService.InitUserUnitIdDropDownList(drpSEDINUser, Const.UnitId_XJYJ, true);
|
||||
WorkPostService.InitMainWorkPostDropDownList(drpWorkPost, true);
|
||||
string DutyId = Request.Params["DutyId"];
|
||||
if (!string.IsNullOrEmpty(DutyId))
|
||||
|
||||
@@ -168,7 +168,7 @@ namespace FineUIPro.Web.Person
|
||||
Model.View_Person_User newSysUser = new Model.View_Person_User
|
||||
{
|
||||
RCount = i + 2,
|
||||
UnitId=Const.UnitId_TCC,
|
||||
UnitId=Const.UnitId_XJYJ,
|
||||
UserCode = pds.Rows[i][0].ToString().Trim(),
|
||||
UserName = pds.Rows[i][1].ToString().Trim(),
|
||||
Account = pds.Rows[i][2].ToString().Trim(),
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace FineUIPro.Web.Person
|
||||
+ @" LEFT JOIN Base_PostTitle AS PostTitle ON PostTitle.PostTitleId=Users.PostTitleId"
|
||||
+ @" LEFT JOIN Base_PracticeCertificate AS pc ON pc.PracticeCertificateId=Users.CertificateId"
|
||||
+ @" LEFT JOIN Base_Project AS project ON project.projectId=Users.ProjectId"
|
||||
+ @" WHERE Users.UserId !='" + Const.sysglyId + "' AND Users.UserId !='" + Const.hfnbdId + "' AND Users.UserId !='" + Const.sedinId + "' AND Unit.UnitId='" + Const.UnitId_TCC + "' AND Users.DepartId='" + Const.Depart_constructionId + "' ";
|
||||
+ @" WHERE Users.UserId !='" + Const.sysglyId + "' AND Users.UserId !='" + Const.hfnbdId + "' AND Users.UserId !='" + Const.sedinId + "' AND Unit.UnitId='" + Const.UnitId_XJYJ + "' AND Users.DepartId='" + Const.Depart_constructionId + "' ";
|
||||
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
if (!string.IsNullOrEmpty(this.txtUserName.Text.Trim()))
|
||||
|
||||
@@ -76,9 +76,9 @@ namespace FineUIPro.Web.Person
|
||||
ConstValue.InitConstValueDropDownList(this.drpIsOffice, ConstValue.Group_0001, false);
|
||||
UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
|
||||
DepartService.InitDepartDropDownList(this.drpDepart, true);
|
||||
if (!string.IsNullOrEmpty(Const.UnitId_TCC))
|
||||
if (!string.IsNullOrEmpty(Const.UnitId_XJYJ))
|
||||
{
|
||||
this.drpUnit.SelectedValue =Const.UnitId_TCC;
|
||||
this.drpUnit.SelectedValue =Const.UnitId_XJYJ;
|
||||
}
|
||||
this.drpDepart.SelectedValue =Const.Depart_constructionId;
|
||||
///角色下拉框
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace FineUIPro.Web.Person
|
||||
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
this.PersonTotalId = Request.Params["PersonTotalId"];
|
||||
BLL.UserService.InitUserUnitIdDropDownList(drpUser, Const.UnitId_TCC, true);
|
||||
BLL.UserService.InitUserUnitIdDropDownList(drpUser, Const.UnitId_XJYJ, true);
|
||||
if (!string.IsNullOrEmpty(this.PersonTotalId))
|
||||
{
|
||||
var totle = BLL.PersonTotalService.GetPersonByPersonTotalId(this.PersonTotalId);
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace FineUIPro.Web.Person
|
||||
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
this.PersonTotalId = Request.Params["PersonTotalId"];
|
||||
BLL.UserService.InitUserUnitIdDropDownList(drpUser, Const.UnitId_TCC, true);
|
||||
BLL.UserService.InitUserUnitIdDropDownList(drpUser, Const.UnitId_XJYJ, true);
|
||||
if (!string.IsNullOrEmpty(this.PersonTotalId))
|
||||
{
|
||||
var totle = BLL.PersonTotalService.GetPersonByPersonTotalId(this.PersonTotalId);
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace FineUIPro.Web.Person
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
UserService.InitUserUnitIdDepartIdDropDownList(drpHandleMan, Const.UnitId_TCC, Const.Depart_constructionId, true);
|
||||
UserService.InitUserUnitIdDepartIdDropDownList(drpHandleMan, Const.UnitId_XJYJ, Const.Depart_constructionId, true);
|
||||
WorkPostService.InitWorkPostNameByTypeDropDownList2(this.drpWorkPost, "1", true); //加载管理岗位
|
||||
this.TrainingPlanId = Request.Params["TrainingPlanId"];
|
||||
if (!string.IsNullOrEmpty(this.TrainingPlanId))
|
||||
@@ -90,7 +90,7 @@ namespace FineUIPro.Web.Person
|
||||
+ @" LEFT JOIN Base_PostTitle AS PostTitle ON PostTitle.PostTitleId=Users.PostTitleId"
|
||||
+ @" LEFT JOIN Base_PracticeCertificate AS pc ON pc.PracticeCertificateId=Users.CertificateId"
|
||||
+ @" LEFT JOIN Base_Project AS project ON project.projectId=Users.ProjectId"
|
||||
+ @" WHERE Users.UserId !='" + Const.sysglyId + "' AND Users.UserId !='" + Const.hfnbdId + "' AND Users.UserId !='" + Const.sedinId + "' AND Unit.UnitId='" + Const.UnitId_TCC + "' AND Users.DepartId='" + Const.Depart_constructionId + "' AND Users.IsPost =1 ";
|
||||
+ @" WHERE Users.UserId !='" + Const.sysglyId + "' AND Users.UserId !='" + Const.hfnbdId + "' AND Users.UserId !='" + Const.sedinId + "' AND Unit.UnitId='" + Const.UnitId_XJYJ + "' AND Users.DepartId='" + Const.Depart_constructionId + "' AND Users.IsPost =1 ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
if (this.drpWorkPost.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace FineUIPro.Web.Person
|
||||
+ @" LEFT JOIN Base_PostTitle AS PostTitle ON PostTitle.PostTitleId=Users.PostTitleId"
|
||||
+ @" LEFT JOIN Base_PracticeCertificate AS pc ON pc.PracticeCertificateId=Users.CertificateId"
|
||||
+ @" LEFT JOIN Base_Project AS project ON project.projectId=Users.ProjectId"
|
||||
+ @" WHERE Users.UserId !='" + Const.sysglyId + "' AND Users.UserId !='" + Const.hfnbdId + "' AND Users.UserId !='" + Const.sedinId + "' AND Unit.UnitId='" + Const.UnitId_TCC + "' AND Users.DepartId='" + Const.Depart_constructionId + "' AND Users.IsPost =1 ";
|
||||
+ @" WHERE Users.UserId !='" + Const.sysglyId + "' AND Users.UserId !='" + Const.hfnbdId + "' AND Users.UserId !='" + Const.sedinId + "' AND Unit.UnitId='" + Const.UnitId_XJYJ + "' AND Users.DepartId='" + Const.Depart_constructionId + "' AND Users.IsPost =1 ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
var personIds = from x in Funs.DB.View_Person_TrainingPerson where x.TrainingPlanId == this.TrainingPlanId select x.TrainingUserId;
|
||||
if (personIds.Count() > 0)
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace FineUIPro.Web.Person
|
||||
+ @" LEFT JOIN Base_PostTitle AS PostTitle ON PostTitle.PostTitleId=Users.PostTitleId"
|
||||
+ @" LEFT JOIN Base_PracticeCertificate AS pc ON pc.PracticeCertificateId=Users.CertificateId"
|
||||
+ @" LEFT JOIN Base_Project AS project ON project.projectId=Users.ProjectId"
|
||||
+ @" WHERE Users.UserId !='" + Const.sysglyId + "' AND Users.UserId !='" + Const.hfnbdId + "' AND Users.UserId !='" + Const.sedinId + "' AND Unit.UnitId='" + Const.UnitId_TCC + "' AND Users.DepartId='" + Const.Depart_constructionId + "' AND Users.IsPost =1 ";
|
||||
+ @" WHERE Users.UserId !='" + Const.sysglyId + "' AND Users.UserId !='" + Const.hfnbdId + "' AND Users.UserId !='" + Const.sedinId + "' AND Unit.UnitId='" + Const.UnitId_XJYJ + "' AND Users.DepartId='" + Const.Depart_constructionId + "' AND Users.IsPost =1 ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
var personIds = from x in Funs.DB.View_Person_TrainingPerson where x.TrainingPlanId == this.TrainingPlanId select x.TrainingUserId;
|
||||
if (personIds.Count() > 0)
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace FineUIPro.Web.Person
|
||||
+ @" LEFT JOIN Base_PostTitle AS PostTitle ON PostTitle.PostTitleId=Users.PostTitleId"
|
||||
+ @" LEFT JOIN Base_PracticeCertificate AS pc ON pc.PracticeCertificateId=Users.CertificateId"
|
||||
+ @" LEFT JOIN Base_Project AS project ON project.projectId=Users.ProjectId"
|
||||
+ @" WHERE Users.UserId !='" + Const.sysglyId + "' AND Users.UserId !='" + Const.hfnbdId + "' AND Users.UserId !='" + Const.sedinId + "' AND Unit.UnitId='" + Const.UnitId_TCC + "' AND Users.DepartId='" + Const.Depart_constructionId + "' AND Users.IsPost =1 ";
|
||||
+ @" WHERE Users.UserId !='" + Const.sysglyId + "' AND Users.UserId !='" + Const.hfnbdId + "' AND Users.UserId !='" + Const.sedinId + "' AND Unit.UnitId='" + Const.UnitId_XJYJ + "' AND Users.DepartId='" + Const.Depart_constructionId + "' AND Users.IsPost =1 ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
if (this.drpWorkPost.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace FineUIPro.Web.Person
|
||||
+ @" From dbo.Sys_User AS Users"
|
||||
+ @" LEFT JOIN Base_Unit AS Unit ON Unit.UnitId=Users.UnitId"
|
||||
+ @" LEFT JOIN Base_PostTitle AS PostTitle ON PostTitle.PostTitleId=Users.PostTitleId"
|
||||
+ @" WHERE Users.UserId !='" + Const.sysglyId + "' AND Users.IsPost =1 AND Users.UserId !='" + Const.hfnbdId + "' AND Users.UserId !='" + Const.sedinId + "' AND Unit.UnitId='" + Const.UnitId_TCC + "' AND Users.DepartId='" + Const.Depart_constructionId + "' ";
|
||||
+ @" WHERE Users.UserId !='" + Const.sysglyId + "' AND Users.IsPost =1 AND Users.UserId !='" + Const.hfnbdId + "' AND Users.UserId !='" + Const.sedinId + "' AND Unit.UnitId='" + Const.UnitId_XJYJ + "' AND Users.DepartId='" + Const.Depart_constructionId + "' ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
if (this.drpWorkPost.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user