20230626 调整本部检查及单位类单位下拉框

This commit is contained in:
2023-06-26 15:42:26 +08:00
parent c35272be84
commit 1acdf08555
43 changed files with 68 additions and 85 deletions
@@ -69,7 +69,7 @@ namespace FineUIPro.Web.CQMS.Check
if (!IsPostBack)
{
UnitService.GetUnit(drpProposeUnit, CurrUser.LoginProjectId, false);
UnitService.InitUnitDropDownList(drpProposeUnit, CurrUser.LoginProjectId, false);
var unitWork = UnitWorkService.GetUnitWorkLists(CurrUser.LoginProjectId);
var unitWorks = from x in unitWork
select
@@ -57,7 +57,7 @@ namespace FineUIPro.Web.CQMS.Check
{
if (!IsPostBack)
{
UnitService.GetUnit(drpUnit, CurrUser.LoginProjectId, true);
UnitService.InitUnitDropDownList(drpUnit, CurrUser.LoginProjectId, true);
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
btnNew.OnClientClick = Window1.GetShowReference("EditSpotCheck.aspx") + "return false;";
GetButtonPower();
@@ -30,7 +30,7 @@ namespace FineUIPro.Web.CQMS.Check
{
if (!IsPostBack)
{
UnitService.GetUnit(drpUnit, CurrUser.LoginProjectId, true);
UnitService.InitUnitDropDownList(drpUnit, CurrUser.LoginProjectId, true);
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
BindData();
@@ -49,7 +49,7 @@ namespace FineUIPro.Web.CQMS.Check
{
if (!IsPostBack)
{
UnitService.GetUnit(drpUnit, CurrUser.LoginProjectId, true);
UnitService.InitUnitDropDownList(drpUnit, CurrUser.LoginProjectId, true);
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
GetButtonPower();
BindData();
@@ -58,7 +58,7 @@ namespace FineUIPro.Web.CQMS.Check
{
if (!IsPostBack)
{
UnitService.GetUnit(drpProposeUnit, CurrUser.LoginProjectId, true);
UnitService.InitUnitDropDownList(drpProposeUnit, CurrUser.LoginProjectId, true);
Funs.FineUIPleaseSelect(this.drpContactListType);
Funs.FineUIPleaseSelect(this.drpIsReply);
Funs.FineUIPleaseSelect(this.drpState);
@@ -29,7 +29,7 @@ namespace FineUIPro.Web.CQMS.Check
{
if (!IsPostBack)
{
UnitService.GetUnit(drpProposeUnit, CurrUser.LoginProjectId, true);
UnitService.InitUnitDropDownList(drpProposeUnit, CurrUser.LoginProjectId, true);
Funs.FineUIPleaseSelect(this.drpContactListType);
Funs.FineUIPleaseSelect(this.drpIsReply);
UnitWorkService.InitUnitWorkDownList(drpUnitWork, this.CurrUser.LoginProjectId, true);
@@ -30,7 +30,7 @@ namespace FineUIPro.Web.CQMS.Check
{
if (!IsPostBack)
{
UnitService.GetUnit(drpProposeUnit, CurrUser.LoginProjectId, true);
UnitService.InitUnitDropDownList(drpProposeUnit, CurrUser.LoginProjectId, true);
Funs.FineUIPleaseSelect(this.drpIsReply);
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
BindGrid();
@@ -28,7 +28,7 @@ namespace FineUIPro.Web.CQMS.Material
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
btnNew.OnClientClick = Window1.GetShowReference("ConstructionTestEdit.aspx") + "return false;";
GetButtonPower();
BindGrid();
@@ -46,8 +46,8 @@ namespace FineUIPro.Web.CQMS.Material
{
if (!IsPostBack)
{
BLL.UnitService.GetUnit(this.drpUnit, this.CurrUser.LoginProjectId, true);
BLL.UnitService.GetUnit(this.drpCheckUnit, this.CurrUser.LoginProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpCheckUnit, this.CurrUser.LoginProjectId, true);
BLL.ConstructionTestTypeService.InitConstructionTestType(this.drpConstructionTestType, true);
BLL.Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpWitness, this.CurrUser.LoginProjectId, string.Empty, string.Empty, true);
ConstructionTestId = Request.Params["ConstructionTestId"];
@@ -46,8 +46,8 @@ namespace FineUIPro.Web.CQMS.Material
{
if (!IsPostBack)
{
BLL.UnitService.GetUnit(this.drpUnit, this.CurrUser.LoginProjectId, true);
BLL.UnitService.GetUnit(this.drpCheckUnit, this.CurrUser.LoginProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpCheckUnit, this.CurrUser.LoginProjectId, true);
BLL.ConstructionTestTypeService.InitConstructionTestType(this.drpConstructionTestType, true);
BLL.Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpWitness, this.CurrUser.LoginProjectId, string.Empty, string.Empty, true);
ConstructionTestId = Request.Params["ConstructionTestId"];
@@ -28,7 +28,7 @@ namespace FineUIPro.Web.CQMS.Material
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
BLL.MainItemService.InitMainItemDownList(drpMainItem, this.ProjectId, true);
btnNew.OnClientClick = Window1.GetShowReference("EquipmentEdit.aspx") + "return false;";
GetButtonPower();
@@ -25,7 +25,7 @@ namespace FineUIPro.Web.CQMS.Material
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
BLL.MainItemService.InitMainItemDownList(drpMainItem, this.ProjectId, true);
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
string EquipmentId = Request.Params["EquipmentId"];
@@ -34,7 +34,7 @@ namespace FineUIPro.Web.CQMS.Material
{
this.ProjectId = this.CurrUser.LoginProjectId;
list = new List<string>();
BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
BLL.MainItemService.InitMainItemDownList(drpMainItem, this.ProjectId, true);
if (!string.IsNullOrEmpty(this.CurrUser.UnitId))
{
@@ -25,7 +25,7 @@ namespace FineUIPro.Web.CQMS.Material
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
BLL.MainItemService.InitMainItemDownList(drpMainItem, this.ProjectId, true);
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
string EquipmentId = Request.Params["EquipmentId"];
@@ -40,7 +40,7 @@ namespace FineUIPro.Web.CQMS.Material
this.ProjectId = this.CurrUser.LoginProjectId;
//权限按钮方法
GetButtonPower();
BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
Funs.FineUIPleaseSelect(this.drpState);
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
// 绑定表格
@@ -46,7 +46,7 @@ namespace FineUIPro.Web.CQMS.Material
{
if (!IsPostBack)
{
BLL.UnitService.GetUnit(this.drpUnit, this.CurrUser.LoginProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
InspectionId = Request.Params["InspectionId"];
this.HideOptions.Hidden = true;
this.rblIsAgree.Hidden = true;
@@ -46,7 +46,7 @@ namespace FineUIPro.Web.CQMS.Material
{
if (!IsPostBack)
{
BLL.UnitService.GetUnit(this.drpUnit, this.CurrUser.LoginProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
InspectionId = Request.Params["InspectionId"];
if (!string.IsNullOrEmpty(InspectionId))
{
@@ -28,7 +28,7 @@ namespace FineUIPro.Web.CQMS.Material
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
BLL.MainItemService.InitMainItemDownList(drpMainItem, this.ProjectId, true);
btnNew.OnClientClick = Window1.GetShowReference("MaterialEdit.aspx") + "return false;";
GetButtonPower();
@@ -25,7 +25,7 @@ namespace FineUIPro.Web.CQMS.Material
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
BLL.MainItemService.InitMainItemDownList(drpMainItem, this.ProjectId, true);
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
string MaterialId = Request.Params["MaterialId"];
@@ -34,7 +34,7 @@ namespace FineUIPro.Web.CQMS.Material
{
this.ProjectId = this.CurrUser.LoginProjectId;
list = new List<string>();
BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
BLL.MainItemService.InitMainItemDownList(drpMainItem, this.ProjectId, true);
if (!string.IsNullOrEmpty(this.CurrUser.UnitId))
{
@@ -28,7 +28,7 @@ namespace FineUIPro.Web.CQMS.Material
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
btnNew.OnClientClick = Window1.GetShowReference("MaterialTestEdit.aspx") + "return false;";
GetButtonPower();
BindGrid();
@@ -46,8 +46,8 @@ namespace FineUIPro.Web.CQMS.Material
{
if (!IsPostBack)
{
BLL.UnitService.GetUnit(this.drpUnit, this.CurrUser.LoginProjectId, true);
BLL.UnitService.GetUnit(this.drpCheckUnit, this.CurrUser.LoginProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpCheckUnit, this.CurrUser.LoginProjectId, true);
BLL.MaterialTypeService.InitMaterialType(this.drpMaterialType, true);
BLL.Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpWitness, this.CurrUser.LoginProjectId, string.Empty, string.Empty, true);
MaterialTestId = Request.Params["MaterialTestId"];
@@ -46,8 +46,8 @@ namespace FineUIPro.Web.CQMS.Material
{
if (!IsPostBack)
{
BLL.UnitService.GetUnit(this.drpUnit, this.CurrUser.LoginProjectId, true);
BLL.UnitService.GetUnit(this.drpCheckUnit, this.CurrUser.LoginProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpCheckUnit, this.CurrUser.LoginProjectId, true);
BLL.MaterialTypeService.InitMaterialType(this.drpMaterialType, true);
BLL.Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpWitness, this.CurrUser.LoginProjectId, string.Empty, string.Empty, true);
MaterialTestId = Request.Params["MaterialTestId"];
@@ -24,7 +24,7 @@ namespace FineUIPro.Web.CQMS.Material
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
BLL.MainItemService.InitMainItemDownList(drpMainItem, this.ProjectId, true);
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
string MaterialId = Request.Params["MaterialId"];
@@ -28,7 +28,7 @@ namespace FineUIPro.Web.CQMS.Material
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
BLL.MainItemService.InitMainItemDownList(drpMainItem, this.ProjectId, true);
btnNew.OnClientClick = Window1.GetShowReference("NoticeAndSupervisionEdit.aspx") + "return false;";
GetButtonPower();
@@ -46,7 +46,7 @@ namespace FineUIPro.Web.CQMS.Material
{
if (!IsPostBack)
{
BLL.UnitService.GetUnit(this.drpUnit, this.CurrUser.LoginProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
BLL.MainItemService.InitMainItemDownList(drpMainItem, this.CurrUser.LoginProjectId, true);
BLL.NoticeAndSupervisionTypeService.InitNoticeAndSupervisionType(this.drpNoticeAndSupervisionType, true);
NoticeAndSupervisionId = Request.Params["NoticeAndSupervisionId"];
@@ -46,7 +46,7 @@ namespace FineUIPro.Web.CQMS.Material
{
if (!IsPostBack)
{
BLL.UnitService.GetUnit(this.drpUnit, this.CurrUser.LoginProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
BLL.MainItemService.InitMainItemDownList(drpMainItem, this.CurrUser.LoginProjectId, true);
BLL.NoticeAndSupervisionTypeService.InitNoticeAndSupervisionType(this.drpNoticeAndSupervisionType, true);
NoticeAndSupervisionId = Request.Params["NoticeAndSupervisionId"];
@@ -49,7 +49,7 @@ namespace FineUIPro.Web.CQMS.Meeting
MeetingId = Request.Params["MeetingId"];
this.drpHandleType.DataTextField = "Text";
this.drpHandleType.DataValueField = "Value";
BLL.UnitService.GetUnit(this.drpUnit, this.CurrUser.LoginProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
this.HideOptions.Hidden = true;
this.rblIsAgree.Hidden = true;
BLL.SitePerson_PersonService.InitProjectUserListByProjectUnitTypeDropDownList(this.drpAttentPerson, this.CurrUser.LoginProjectId, Const.ProjectUnitType_1 + "," + Const.ProjectUnitType_2, true);
@@ -47,7 +47,7 @@ namespace FineUIPro.Web.CQMS.Meeting
if (!IsPostBack)
{
MeetingId = Request.Params["MeetingId"];
BLL.UnitService.GetUnit(this.drpUnit, this.CurrUser.LoginProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
BLL.SitePerson_PersonService.InitProjectUserListByProjectUnitTypeDropDownList(this.drpAttentPerson, this.CurrUser.LoginProjectId, Const.ProjectUnitType_1 + "," + Const.ProjectUnitType_2, true);
if (!string.IsNullOrEmpty(MeetingId))
{
@@ -49,7 +49,7 @@ namespace FineUIPro.Web.CQMS.Meeting
MeetingId = Request.Params["MeetingId"];
this.drpHandleType.DataTextField = "Text";
this.drpHandleType.DataValueField = "Value";
BLL.UnitService.GetUnit(this.drpUnit, this.CurrUser.LoginProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
this.HideOptions.Hidden = true;
this.rblIsAgree.Hidden = true;
BLL.SitePerson_PersonService.InitProjectUserListByProjectUnitTypeDropDownList(this.drpAttentPerson, this.CurrUser.LoginProjectId, Const.ProjectUnitType_1 + "," + Const.ProjectUnitType_2, true);
@@ -47,7 +47,7 @@ namespace FineUIPro.Web.CQMS.Meeting
if (!IsPostBack)
{
MeetingId = Request.Params["MeetingId"];
BLL.UnitService.GetUnit(this.drpUnit, this.CurrUser.LoginProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
BLL.SitePerson_PersonService.InitProjectUserListByProjectUnitTypeDropDownList(this.drpAttentPerson, this.CurrUser.LoginProjectId, Const.ProjectUnitType_1 + "," + Const.ProjectUnitType_2, true);
if (!string.IsNullOrEmpty(MeetingId))
{
@@ -35,7 +35,7 @@ namespace FineUIPro.Web.CQMS.Unqualified
{
if (!IsPostBack)
{
UnitService.GetUnit(drpUnit, CurrUser.LoginProjectId, false);
UnitService.InitUnitDropDownList(drpUnit, CurrUser.LoginProjectId, false);
//主送单位
gvMainSendUnit.DataSource = UnitService.GetUnitByProjectIdList(CurrUser.LoginProjectId);
gvMainSendUnit.DataBind();
@@ -58,7 +58,7 @@ namespace FineUIPro.Web.CQMS.Unqualified
{
if (!IsPostBack)
{
UnitService.GetUnit(drpProposeUnit, CurrUser.LoginProjectId, true);
UnitService.InitUnitDropDownList(drpProposeUnit, CurrUser.LoginProjectId, true);
Funs.FineUIPleaseSelect(this.drpIsReply);
Funs.FineUIPleaseSelect(this.drpState);
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
@@ -53,7 +53,7 @@ namespace FineUIPro.Web.CQMS.Unqualified
{
if (!IsPostBack)
{
UnitService.GetUnit(drpUnit, CurrUser.LoginProjectId, false);
UnitService.InitUnitDropDownList(drpUnit, CurrUser.LoginProjectId, false);
//主送单位
gvMainSendUnit.DataSource = UnitService.GetUnitByProjectIdList(CurrUser.LoginProjectId);
gvMainSendUnit.DataBind();