2023-10-09
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
<f:RenderField Width="120px" ColumnID="ContactPhone" DataField="ContactPhone" FieldType="String"
|
||||
HeaderText="联系人电话" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="PersonName" DataField="PersonName" FieldType="String"
|
||||
<f:RenderField Width="120px" ColumnID="ReceiveMan" DataField="ReceiveMan" FieldType="String"
|
||||
HeaderText="接收人" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="ReceiveDate" DataField="ReceiveDate" FieldType="String"
|
||||
|
||||
@@ -14,6 +14,10 @@
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:Button ID="btnAttachUrl" Text="详情" ToolTip="附件上传及查看" Icon="TableCell" runat="server"
|
||||
OnClick="btnAttachUrl_Click" ValidateForms="SimpleForm1">
|
||||
</f:Button>
|
||||
<f:ToolbarFill runat="server"/>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ValidateForms="SimpForm" OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
@@ -185,6 +189,10 @@
|
||||
EnableMaximize="true" Target="Top" EnableResize="false" runat="server"
|
||||
IsModal="true" Width="1200px" Height="620px" OnClose="Window1_Close">
|
||||
</f:Window>
|
||||
<f:Window ID="WindowAtt" Title="附件" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||
Height="500px">
|
||||
</f:Window>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using BLL;
|
||||
using FineUIPro.Web.HSSE.Meeting;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -22,7 +23,18 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
ViewState["PipelineId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
public string WeldJointId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["WeldJointId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["WeldJointId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
@@ -52,7 +64,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
this.drpDetectionTypeId.DataTextField = "DetectionTypeCode";
|
||||
//Funs.FineUIPleaseSelect(this.drpDetectionTypeId);
|
||||
string flag = Request.Params["flag"];
|
||||
string weldJointId = Request.Params["WeldJointId"];
|
||||
WeldJointId = Request.Params["WeldJointId"];
|
||||
string isTwoJoint = Request.Params["IsTwoJoint"];
|
||||
|
||||
|
||||
@@ -66,9 +78,9 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
GroupPanel2.Hidden = true;
|
||||
IsReadOnly(false);
|
||||
}
|
||||
if (!string.IsNullOrEmpty(weldJointId))
|
||||
if (!string.IsNullOrEmpty(WeldJointId))
|
||||
{
|
||||
Model.HJGL_WeldJoint joint = BLL.WeldJointService.GetWeldJointByWeldJointId(weldJointId);
|
||||
Model.HJGL_WeldJoint joint = BLL.WeldJointService.GetWeldJointByWeldJointId(WeldJointId);
|
||||
Model.WPQ_WPQList list = BLL.WPQListServiceService.GetWPQById(joint.WPQId);
|
||||
this.txtWpqId.Text = joint.WPQId;
|
||||
|
||||
@@ -82,7 +94,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
}
|
||||
if (Request.Params["Type"] == "add") //插入焊口
|
||||
{
|
||||
var baseWeldJoints = BLL.WeldJointService.GetBaseWeldJointsByWeldJointId(weldJointId);
|
||||
var baseWeldJoints = BLL.WeldJointService.GetBaseWeldJointsByWeldJointId(WeldJointId);
|
||||
this.txtWeldJointCode.Text = joint.WeldJointCode + "Z-" + (baseWeldJoints.Count + 1).ToString();
|
||||
}
|
||||
else
|
||||
@@ -287,7 +299,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
weldJointCode = this.txtWeldJointCode.Text;
|
||||
}
|
||||
|
||||
if (BLL.WeldJointService.IsExistWeldJointCode(weldJointCode, this.PipelineId, Request.Params["WeldJointId"]))
|
||||
if (BLL.WeldJointService.IsExistWeldJointCode(weldJointCode, this.PipelineId, WeldJointId))
|
||||
{
|
||||
Alert.ShowInTop("该管线焊口已存在!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
@@ -318,7 +330,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
return;
|
||||
}
|
||||
Model.HJGL_WeldJoint joint = new Model.HJGL_WeldJoint();
|
||||
string weldJointId = Request.Params["WeldJointId"];
|
||||
string weldJointId = WeldJointId;
|
||||
joint.PipelineId = this.PipelineId;
|
||||
joint.PipelineCode = txtPipelineCode.Text.Trim();
|
||||
joint.ProjectId = this.CurrUser.LoginProjectId;
|
||||
@@ -435,6 +447,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
string newId = SQLHelper.GetNewID(typeof(Model.HJGL_WeldJoint));
|
||||
joint.WeldJointId = newId;
|
||||
joint.BaseWeldJointId = weldJointId;
|
||||
WeldJointId = joint.WeldJointId;
|
||||
BLL.WeldJointService.AddWeldJoint(joint);
|
||||
}
|
||||
}
|
||||
@@ -442,6 +455,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
{
|
||||
string newId = SQLHelper.GetNewID(typeof(Model.HJGL_WeldJoint));
|
||||
joint.WeldJointId = newId;
|
||||
WeldJointId = joint.WeldJointId;
|
||||
if (Request.Params["IsTwoJoint"] == "1")
|
||||
{
|
||||
joint.IsTwoJoint = true;
|
||||
@@ -854,5 +868,14 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
protected void btnAttachUrl_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.WeldJointId))
|
||||
{
|
||||
SaveData();
|
||||
}
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/WeldJoint&menuId={1}", WeldJointId, BLL.Const.HJGL_WeldJointMenuId)));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -50,6 +50,15 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// btnAttachUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAttachUrl;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
@@ -382,5 +391,14 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowAtt;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="Id" AllowCellEditing="true"
|
||||
ClicksToEdit="2" DataIDField="Id" AllowSorting="true" SortField="Id"
|
||||
ClicksToEdit="2" DataIDField="Id" AllowSorting="true" SortField="SerialNumber"
|
||||
SortDirection="DESC" OnSort="Grid1_Sort" EnableColumnLines="true"
|
||||
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableTextSelection="true"
|
||||
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
|
||||
@@ -66,7 +66,9 @@
|
||||
<asp:Label ID="lblNumber" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
|
||||
<f:RenderField Width="150px" ColumnID="SerialNumber" DataField="SerialNumber" SortField="SerialNumber"
|
||||
FieldType="String" HeaderText="序号" TextAlign="Left" HeaderTextAlign="Center" >
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="Major" DataField="Major" SortField="Major" Hidden="True"
|
||||
FieldType="String" HeaderText="专业" TextAlign="Left" HeaderTextAlign="Center" >
|
||||
</f:RenderField>
|
||||
|
||||
Reference in New Issue
Block a user