This commit is contained in:
2022-12-07 17:16:46 +08:00
23 changed files with 714 additions and 146 deletions
@@ -37,19 +37,19 @@
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWeldingMethod" runat="server" Label="焊接方法" LabelWidth="160px" Enabled="false"></f:TextBox>
<f:TextBox ID="txtMaterialType" runat="server" Label="型号、牌号、级别" LabelWidth="160px" Enabled="false"></f:TextBox>
<f:TextBox ID="txtWeldingMethod" runat="server" Label="焊接方法" LabelWidth="160px" ></f:TextBox>
<f:TextBox ID="txtMaterialType" runat="server" Label="型号、牌号、级别" LabelWidth="160px" ></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWeldingLocation" runat="server" Label="焊接位置" LabelWidth="160px" Enabled="false"></f:TextBox>
<f:TextBox ID="txtWeldType" runat="server" Label="可焊焊缝类型" LabelWidth="160px" Enabled="false"></f:TextBox>
<f:TextBox ID="txtWeldingLocation" runat="server" Label="焊接位置" LabelWidth="160px" ></f:TextBox>
<f:TextBox ID="txtWeldType" runat="server" Label="可焊焊缝类型" LabelWidth="160px" ></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:CheckBox ID="ckbIsCanWeldG" runat="server" Label="是否可焊安装口" LabelWidth="160px" Enabled="false"></f:CheckBox>
<f:CheckBox ID="ckbIsCanWeldG" runat="server" Label="是否可焊安装口" LabelWidth="160px" ></f:CheckBox>
<f:DropDownList ID="drpWeldingMode" runat="server" Label="机动化程度"
LabelAlign="Right">
</f:DropDownList>
@@ -64,14 +64,14 @@
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtThicknessMin" runat="server" Label="壁厚覆盖范围(最小值)" Enabled="false" LabelWidth="200px" Readonly="true"></f:TextBox>
<f:TextBox ID="txtThicknessMax" runat="server" Label="壁厚覆盖范围(最大值)" Enabled="false" LabelWidth="200px" Readonly="true"></f:TextBox>
<f:TextBox ID="txtThicknessMin" runat="server" Label="壁厚覆盖范围(最小值)" LabelWidth="200px" ></f:TextBox>
<f:TextBox ID="txtThicknessMax" runat="server" Label="壁厚覆盖范围(最大值)" LabelWidth="200px" ></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtSizesMin" runat="server" Label="管径覆盖范围(最小值)" Enabled="false" LabelWidth="200px" Readonly="true"></f:TextBox>
<f:TextBox ID="txtSizesMax" runat="server" Label="管径覆盖范围(最大值)" Enabled="false" LabelWidth="200px" Readonly="true"></f:TextBox>
<f:TextBox ID="txtSizesMin" runat="server" Label="管径覆盖范围(最小值)" LabelWidth="200px" ></f:TextBox>
<f:TextBox ID="txtSizesMax" runat="server" Label="管径覆盖范围(最大值)" LabelWidth="200px" ></f:TextBox>
</Items>
</f:FormRow>
</Rows>
@@ -89,14 +89,14 @@
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtThicknessMin2" runat="server" Label="壁厚覆盖范围(最小值)" Enabled="false" LabelWidth="200px" Readonly="true"></f:TextBox>
<f:TextBox ID="txtThicknessMax2" runat="server" Label="壁厚覆盖范围(最大值)" Enabled="false" LabelWidth="200px" Readonly="true"></f:TextBox>
<f:TextBox ID="txtThicknessMin2" runat="server" Label="壁厚覆盖范围(最小值)" LabelWidth="200px" ></f:TextBox>
<f:TextBox ID="txtThicknessMax2" runat="server" Label="壁厚覆盖范围(最大值)" LabelWidth="200px" ></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtSizesMin2" runat="server" Label="管径覆盖范围(最小值)" Enabled="false" LabelWidth="200px" Readonly="true"></f:TextBox>
<f:TextBox ID="txtSizesMax2" runat="server" Label="管径覆盖范围(最大值)" Enabled="false" LabelWidth="200px" Readonly="true"></f:TextBox>
<f:TextBox ID="txtSizesMin2" runat="server" Label="管径覆盖范围(最小值)" LabelWidth="200px" ></f:TextBox>
<f:TextBox ID="txtSizesMax2" runat="server" Label="管径覆盖范围(最大值)" LabelWidth="200px" ></f:TextBox>
</Items>
</f:FormRow>
</Rows>
@@ -67,6 +67,23 @@ namespace FineUIPro.Web.CQMS.PersonManage
{
this.drpWeldingMode.SelectedValue = welderQualify.WelderMode;
}
if (welderQualify.IsAudit == true)
{
this.txtQualificationItem.Enabled = false;
this.txtWeldingMethod.Enabled = false;
this.txtMaterialType.Enabled = false;
this.txtWeldingLocation.Enabled = false;
this.txtWeldType.Enabled = false;
this.ckbIsCanWeldG.Enabled = false;
this.txtThicknessMin.Enabled = false;
this.txtThicknessMax.Enabled = false;
this.txtSizesMin.Enabled = false;
this.txtSizesMax.Enabled = false;
this.txtThicknessMin2.Enabled = false;
this.txtThicknessMax2.Enabled = false;
this.txtSizesMin2.Enabled = false;
this.txtSizesMax2.Enabled = false;
}
}
}
var w = BLL.SitePerson_PersonService.GetSitePersonByProjectIdPersonId(this.CurrUser.LoginProjectId, this.hdWelderId.Text);
+29 -3
View File
@@ -99,9 +99,6 @@
<HintPath>..\FineUIPro\Reference BLL\Interop.WIA.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="Microsoft.Office.Interop.Word, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
<EmbedInteropTypes>False</EmbedInteropTypes>
</Reference>
<Reference Include="Microsoft.QualityTools.Testing.Fakes, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
</Reference>
@@ -12219,6 +12216,35 @@
<ItemGroup>
<WCFMetadata Include="Service References\" />
</ItemGroup>
<ItemGroup>
<COMReference Include="Microsoft.Office.Core">
<Guid>{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}</Guid>
<VersionMajor>2</VersionMajor>
<VersionMinor>4</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>primary</WrapperTool>
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
</COMReference>
<COMReference Include="Microsoft.Office.Interop.Word">
<Guid>{00020905-0000-0000-C000-000000000046}</Guid>
<VersionMajor>8</VersionMajor>
<VersionMinor>4</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>primary</WrapperTool>
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
</COMReference>
<COMReference Include="VBIDE">
<Guid>{0002E157-0000-0000-C000-000000000046}</Guid>
<VersionMajor>5</VersionMajor>
<VersionMinor>3</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>primary</WrapperTool>
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
</COMReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
<ProjectExtensions>
@@ -37,19 +37,19 @@
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWeldingMethod" runat="server" Label="焊接方法" LabelWidth="160px" Enabled="false"></f:TextBox>
<f:TextBox ID="txtMaterialType" runat="server" Label="型号、牌号、级别" LabelWidth="160px" Enabled="false"></f:TextBox>
<f:TextBox ID="txtWeldingMethod" runat="server" Label="焊接方法" LabelWidth="160px" ></f:TextBox>
<f:TextBox ID="txtMaterialType" runat="server" Label="型号、牌号、级别" LabelWidth="160px" ></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWeldingLocation" runat="server" Label="焊接位置" LabelWidth="160px" Enabled="false"></f:TextBox>
<f:TextBox ID="txtWeldType" runat="server" Label="可焊焊缝类型" LabelWidth="160px" Enabled="false"></f:TextBox>
<f:TextBox ID="txtWeldingLocation" runat="server" Label="焊接位置" LabelWidth="160px" ></f:TextBox>
<f:TextBox ID="txtWeldType" runat="server" Label="可焊焊缝类型" LabelWidth="160px" ></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:CheckBox ID="ckbIsCanWeldG" runat="server" Label="是否可焊安装口" LabelWidth="160px" Enabled="false"></f:CheckBox>
<f:CheckBox ID="ckbIsCanWeldG" runat="server" Label="是否可焊安装口" LabelWidth="160px" ></f:CheckBox>
<f:DropDownList ID="drpWeldingMode" runat="server" Label="机动化程度"
LabelAlign="Right">
</f:DropDownList>
@@ -64,14 +64,14 @@
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtThicknessMin" runat="server" Label="壁厚覆盖范围(最小值)" Enabled="false" LabelWidth="200px" Readonly="true"></f:TextBox>
<f:TextBox ID="txtThicknessMax" runat="server" Label="壁厚覆盖范围(最大值)" Enabled="false" LabelWidth="200px" Readonly="true"></f:TextBox>
<f:TextBox ID="txtThicknessMin" runat="server" Label="壁厚覆盖范围(最小值)" LabelWidth="200px" ></f:TextBox>
<f:TextBox ID="txtThicknessMax" runat="server" Label="壁厚覆盖范围(最大值)" LabelWidth="200px" ></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtSizesMin" runat="server" Label="管径覆盖范围(最小值)" Enabled="false" LabelWidth="200px" Readonly="true"></f:TextBox>
<f:TextBox ID="txtSizesMax" runat="server" Label="管径覆盖范围(最大值)" Enabled="false" LabelWidth="200px" Readonly="true"></f:TextBox>
<f:TextBox ID="txtSizesMin" runat="server" Label="管径覆盖范围(最小值)" LabelWidth="200px" ></f:TextBox>
<f:TextBox ID="txtSizesMax" runat="server" Label="管径覆盖范围(最大值)" LabelWidth="200px" ></f:TextBox>
</Items>
</f:FormRow>
</Rows>
@@ -89,14 +89,14 @@
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtThicknessMin2" runat="server" Label="壁厚覆盖范围(最小值)" Enabled="false" LabelWidth="200px" Readonly="true"></f:TextBox>
<f:TextBox ID="txtThicknessMax2" runat="server" Label="壁厚覆盖范围(最大值)" Enabled="false" LabelWidth="200px" Readonly="true"></f:TextBox>
<f:TextBox ID="txtThicknessMin2" runat="server" Label="壁厚覆盖范围(最小值)" LabelWidth="200px" ></f:TextBox>
<f:TextBox ID="txtThicknessMax2" runat="server" Label="壁厚覆盖范围(最大值)" LabelWidth="200px" ></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtSizesMin2" runat="server" Label="管径覆盖范围(最小值)" Enabled="false" LabelWidth="200px" Readonly="true"></f:TextBox>
<f:TextBox ID="txtSizesMax2" runat="server" Label="管径覆盖范围(最大值)" Enabled="false" LabelWidth="200px" Readonly="true"></f:TextBox>
<f:TextBox ID="txtSizesMin2" runat="server" Label="管径覆盖范围(最小值)" LabelWidth="200px" ></f:TextBox>
<f:TextBox ID="txtSizesMax2" runat="server" Label="管径覆盖范围(最大值)" LabelWidth="200px" ></f:TextBox>
</Items>
</f:FormRow>
</Rows>
@@ -67,6 +67,23 @@ namespace FineUIPro.Web.HJGL.PersonManage
{
this.drpWeldingMode.SelectedValue = welderQualify.WelderMode;
}
if (welderQualify.IsAudit == true)
{
this.txtQualificationItem.Enabled = false;
this.txtWeldingMethod.Enabled = false;
this.txtMaterialType.Enabled = false;
this.txtWeldingLocation.Enabled = false;
this.txtWeldType.Enabled = false;
this.ckbIsCanWeldG.Enabled = false;
this.txtThicknessMin.Enabled = false;
this.txtThicknessMax.Enabled = false;
this.txtSizesMin.Enabled = false;
this.txtSizesMax.Enabled = false;
this.txtThicknessMin2.Enabled = false;
this.txtThicknessMax2.Enabled = false;
this.txtSizesMin2.Enabled = false;
this.txtSizesMax2.Enabled = false;
}
}
}
var w = BLL.SitePerson_PersonService.GetSitePersonById(this.hdWelderId.Text);
@@ -216,9 +216,6 @@
Icon="Delete" ConfirmText="删除选中行?" ConfirmTarget="Top"
runat="server" Text="删除">
</f:MenuButton>
<f:MenuButton ID="btnView" OnClick="btnView_Click" Icon="Find" EnablePostBack="true"
runat="server" Text="查看">
</f:MenuButton>
</f:Menu>
</form>
<script type="text/javascript">
@@ -34,7 +34,7 @@ namespace FineUIPro.Web.HJGL.PersonManage
{
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
{
Model.SitePerson_Person welder = BLL.SitePerson_PersonService.GetSitePersonById(this.tvControlItem.SelectedNodeID);
Model.SitePerson_Person welder = BLL.SitePerson_PersonService.GetSitePersonByProjectIdPersonId(this.CurrUser.LoginProjectId, this.tvControlItem.SelectedNodeID);
if (welder != null)
{
this.btnEdit.Hidden = false;
@@ -308,14 +308,5 @@ namespace FineUIPro.Web.HJGL.PersonManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuDelete;
/// <summary>
/// btnView 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnView;
}
}
+13 -12
View File
@@ -225,6 +225,11 @@ namespace FineUIPro.Web.HJGL.WPQ
Alert.ShowInTop("焊丝、焊条不能同时为空!", MessageBoxIcon.Warning);
return;
}
if (this.rblIsAgree.SelectedValue == "false" && (this.drpPerson.SelectedValue == BLL.Const._Null || string.IsNullOrEmpty(this.drpPerson.SelectedValue)))
{
Alert.ShowInTop("请选择办理人!", MessageBoxIcon.Warning);
return;
}
string id = SaveData(BLL.Const.BtnSubmit);
ShowNotify("提交成功!", MessageBoxIcon.Success);
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
@@ -352,7 +357,7 @@ namespace FineUIPro.Web.HJGL.WPQ
{
string newId = SQLHelper.GetNewID(typeof(Model.WPQ_WPQList));
wpq.WPQId = newId;
wpq.CompileMan = this.CurrUser.PersonId;
if (type == BLL.Const.BtnSubmit)
{
if (this.drpPerson.SelectedValue == BLL.Const._Null)
@@ -506,18 +511,14 @@ namespace FineUIPro.Web.HJGL.WPQ
Model.WPQ_WPQList wpq = BLL.WPQListServiceService.GetWPQById(WPQId);
if (wpq != null)
{
Model.WPQ_WPQListFlowOperate flowOperate = Funs.DB.WPQ_WPQListFlowOperate.FirstOrDefault(x => x.WPQId == WPQId && x.OperateName == "施工单位编制");
if (flowOperate != null)
Model.Person_Persons user = BLL.Person_PersonsService.GetPerson_PersonsById(wpq.CompileMan);
if (user != null)
{
Model.Person_Persons user = BLL.Person_PersonsService.GetPerson_PersonsById(flowOperate.OperateManId);
if (user != null)
{
ListItem[] list = new ListItem[1];
list[0] = new ListItem(user.PersonName ?? "", user.PersonId.ToString());
drpPerson.DataSource = list;
drpPerson.DataBind();
drpPerson.SelectedValue = user.PersonId;
}
ListItem[] list = new ListItem[1];
list[0] = new ListItem(user.PersonName ?? "", user.PersonId.ToString());
drpPerson.DataSource = list;
drpPerson.DataBind();
drpPerson.SelectedValue = user.PersonId;
}
}
}
+3 -1
View File
@@ -127,7 +127,7 @@
</f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow ColumnWidths="25% 25% 50%">
<f:FormRow ColumnWidths="20% 15% 15% 50%">
<Items>
<f:RadioButtonList ID="rblSex" runat="server" Label="性别">
<f:RadioItem Value="1" Text="男" Selected="true" />
@@ -135,6 +135,8 @@
</f:RadioButtonList>
<f:CheckBox runat="server" ID="ckIsPost" Label="在职" Checked="true"
AutoPostBack="true" OnCheckedChanged="ckIsPost_CheckedChanged"></f:CheckBox>
<f:CheckBox runat="server" ID="ckIsMultiProject" Label="多项目"
AutoPostBack="true" OnCheckedChanged="ckIsMultiProject_CheckedChanged"></f:CheckBox>
<f:DatePicker ID="txtBirthday" runat="server" Label="出生日期">
</f:DatePicker>
</Items>
@@ -92,6 +92,7 @@ namespace FineUIPro.Web.Person
this.txtJobNum.Text = person.JobNum;
this.drpUnit.SelectedValue = person.UnitId;
this.ckIsPost.Checked = person.IsPost ?? true;
this.ckIsMultiProject.Checked = person.MultiProject ?? false;
if (!string.IsNullOrEmpty(person.DepartId))
{
this.drpDepart.SelectedValue = person.DepartId;
@@ -528,6 +529,7 @@ namespace FineUIPro.Web.Person
Address = this.txtAddress.Text.Trim(),
SignatureUrl = this.SignatureUrl,
IsPost = this.ckIsPost.Checked,
MultiProject=this.ckIsMultiProject.Checked,
};
newPerson.RoleIds = Funs.GetStringByArray(this.drpRole.SelectedValueArray);
@@ -1087,5 +1089,18 @@ namespace FineUIPro.Web.Person
Alert.ShowInParent("人员不在职,则当前人所在的所有项目都将离场!", MessageBoxIcon.Warning);
}
}
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ckIsMultiProject_CheckedChanged(object sender, CheckedEventArgs e)
{
if (this.ckIsMultiProject.Checked)
{
Alert.ShowInParent("人员可在多个项目上同时在岗!", MessageBoxIcon.Warning);
}
}
}
}
+9
View File
@@ -248,6 +248,15 @@ namespace FineUIPro.Web.Person
/// </remarks>
protected global::FineUIPro.CheckBox ckIsPost;
/// <summary>
/// ckIsMultiProject 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.CheckBox ckIsMultiProject;
/// <summary>
/// txtBirthday 控件。
/// </summary>
@@ -20,6 +20,8 @@ namespace FineUIPro.Web.Person
this.GetButtonPower();
this.btnNew.OnClientClick = Window1.GetShowReference("ProjectPersonEdit.aspx") + "return false;";
ProjectService.InitProjectShortNameDropDownList(this.drpProject, false);
this.drpProject.SelectedIndex= 0;
Funs.FineUIPleaseSelect(drpProject, "按项目查询");
Funs.FineUIPleaseSelect(drpUnit, "按单位查询");
WorkPostService.InitWorkPostDropDownList(this.drpWorkPost, false);
@@ -281,7 +281,11 @@ namespace FineUIPro.Web.Person
var getProjectPerson = SitePerson_PersonService.GetSitePersonById(this.SitePersonId);
if (getProjectPerson != null)
{
this.txtIdentityCard.Text = getProjectPerson.IdentityCard;
if (!string.IsNullOrEmpty(getProjectPerson.IdentityCard))
{
this.txtIdentityCard.Text = getProjectPerson.IdentityCard;
}
if (!string.IsNullOrEmpty(getProjectPerson.PersonName))
{
this.txtPersonName.Text = getProjectPerson.PersonName;
@@ -302,7 +306,7 @@ namespace FineUIPro.Web.Person
{
this.btnOut.Hidden = false;
}
this.drpProject.SelectedValue = getProjectPerson.ProjectId;
InitDropDownListProject();
this.drpUnit.SelectedValue = getProjectPerson.UnitId;