质量专项检查增加附件

This commit is contained in:
geh 2025-07-16 18:33:26 +08:00
parent c763312888
commit ce2cac6a10
6 changed files with 189 additions and 84 deletions

View File

@ -80,7 +80,15 @@
<f:DropDownList ID="drpProposeUnit" ShowRedStar="true" EmptyText="--请选择--" AutoSelectFirstItem="false" <f:DropDownList ID="drpProposeUnit" ShowRedStar="true" EmptyText="--请选择--" AutoSelectFirstItem="false"
LabelWidth="120px" Required="true" runat="server" Label="提出单位" LabelAlign="Right" EnableEdit="true"> LabelWidth="120px" Required="true" runat="server" Label="提出单位" LabelAlign="Right" EnableEdit="true">
</f:DropDownList> </f:DropDownList>
<f:Label runat="server" Hidden="true"></f:Label> <f:Panel ID="Panel2" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
<Items>
<f:Label ID="Label1" runat="server" Label="上传附件"
LabelAlign="Right" LabelWidth="110px">
</f:Label>
<f:Button ID="btnAttach" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttach_Click">
</f:Button>
</Items>
</f:Panel>
</Items> </Items>
</f:FormRow> </f:FormRow>
<f:FormRow> <f:FormRow>

View File

@ -128,6 +128,7 @@ namespace FineUIPro.Web.CQMS.Check
{ {
State = BLL.Const.JointCheck_Compile; State = BLL.Const.JointCheck_Compile;
} }
this.hdAttachUrl.Text = this.JointCheckId;
jointCheckDetails.Clear(); jointCheckDetails.Clear();
BindData(); BindData();
} }
@ -528,7 +529,16 @@ namespace FineUIPro.Web.CQMS.Check
} }
else else
{ {
jointCheck.JointCheckId = SQLHelper.GetNewID(typeof(Model.Check_JointCheck)); ; if (!string.IsNullOrEmpty(this.hdAttachUrl.Text))
{
jointCheck.JointCheckId = this.hdAttachUrl.Text;
}
else
{
jointCheck.JointCheckId = SQLHelper.GetNewID(typeof(Model.Check_JointCheck));
this.hdAttachUrl.Text = jointCheck.JointCheckId;
}
// jointCheck.JointCheckId = SQLHelper.GetNewID(typeof(Model.Check_JointCheck));
jointCheck.CheckMan = CurrUser.UserId; jointCheck.CheckMan = CurrUser.UserId;
JointCheckService.AddJointCheck(jointCheck); JointCheckService.AddJointCheck(jointCheck);
if (saveType == "submit") if (saveType == "submit")
@ -825,5 +835,21 @@ namespace FineUIPro.Web.CQMS.Check
} }
return str; return str;
} }
#region
/// <summary>
/// 附件上传
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnAttach_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(this.hdAttachUrl.Text)) //新增记录
{
this.hdAttachUrl.Text = SQLHelper.GetNewID(typeof(Model.Check_JointCheck));
}
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/JointCheck&menuId={1}&edit=1", this.hdAttachUrl.Text, BLL.Const.JointCheckMenuId)));
}
#endregion
} }
} }

View File

@ -7,10 +7,12 @@
// </自动生成> // </自动生成>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace FineUIPro.Web.CQMS.Check { namespace FineUIPro.Web.CQMS.Check
{
public partial class EditJointCheck { public partial class EditJointCheck
{
/// <summary> /// <summary>
/// form1 控件。 /// form1 控件。
@ -120,6 +122,33 @@ namespace FineUIPro.Web.CQMS.Check {
/// </remarks> /// </remarks>
protected global::FineUIPro.DropDownList drpProposeUnit; protected global::FineUIPro.DropDownList drpProposeUnit;
/// <summary>
/// Panel2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel2;
/// <summary>
/// Label1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label1;
/// <summary>
/// btnAttach 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnAttach;
/// <summary> /// <summary>
/// drpJointCheckMans1 控件。 /// drpJointCheckMans1 控件。
/// </summary> /// </summary>

View File

@ -96,7 +96,15 @@
<f:TextBox ID="drpProposeUnit" LabelWidth="120" runat="server" Label="提出单位" LabelAlign="Right" <f:TextBox ID="drpProposeUnit" LabelWidth="120" runat="server" Label="提出单位" LabelAlign="Right"
MaxLength="50"> MaxLength="50">
</f:TextBox> </f:TextBox>
<f:Label runat="server" Hidden="true"></f:Label> <f:Panel ID="Panel2" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
<Items>
<f:Label ID="Label" runat="server" Label="上传附件"
LabelAlign="Right">
</f:Label>
<f:Button ID="btnAttach" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttach_Click">
</f:Button>
</Items>
</f:Panel>
</Items> </Items>
</f:FormRow> </f:FormRow>
<f:FormRow> <f:FormRow>

View File

@ -172,5 +172,10 @@ namespace FineUIPro.Web.CQMS.Check
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/JointCheck&menuId={1}&edit=1", itemId, BLL.Const.JointCheckMenuId))); PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/JointCheck&menuId={1}&edit=1", itemId, BLL.Const.JointCheckMenuId)));
} }
} }
protected void btnAttach_Click(object sender, EventArgs e)
{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/JointCheck&menuId={1}&edit=1", this.JointCheckId, BLL.Const.JointCheckMenuId)));
}
} }
} }

View File

@ -7,10 +7,12 @@
// </自动生成> // </自动生成>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace FineUIPro.Web.CQMS.Check { namespace FineUIPro.Web.CQMS.Check
{
public partial class JointCheckView { public partial class JointCheckView
{
/// <summary> /// <summary>
/// form1 控件。 /// form1 控件。
@ -120,6 +122,33 @@ namespace FineUIPro.Web.CQMS.Check {
/// </remarks> /// </remarks>
protected global::FineUIPro.TextBox drpProposeUnit; protected global::FineUIPro.TextBox drpProposeUnit;
/// <summary>
/// Panel2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel2;
/// <summary>
/// Label 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label;
/// <summary>
/// btnAttach 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnAttach;
/// <summary> /// <summary>
/// txtJointCheckMans1 控件。 /// txtJointCheckMans1 控件。
/// </summary> /// </summary>