2022-11-9 焊接施工计划导入增加流水段

This commit is contained in:
李鹏飞 2022-11-09 18:16:18 +08:00
parent 1f39165abd
commit a0a3f525ab
8 changed files with 29 additions and 4 deletions

View File

@ -131,6 +131,7 @@ namespace BLL
,line.ActStartDate
,line.ActEndDate
,line.IsFinished
,line.FlowingSection
,com.PipelineComponentId
,com.PreUnit
,com.PipelineComponentCode
@ -210,6 +211,7 @@ namespace BLL
,line.ActStartDate
,line.ActEndDate
,line.IsFinished
,line.FlowingSection
,unit.UnitWorkName
from HJGL_Pipeline line
left join WBS_UnitWork unit on line.UnitWorkId=unit.UnitWorkId
@ -297,6 +299,7 @@ namespace BLL
newPipeline.PCtype = pipeline.PCtype;
newPipeline.MaterialId = pipeline.MaterialId;
newPipeline.State = pipeline.State;
newPipeline.FlowingSection=pipeline.FlowingSection;
db.HJGL_Pipeline.InsertOnSubmit(newPipeline);
db.SubmitChanges();
}
@ -341,6 +344,8 @@ namespace BLL
newPipeline.ActEndDate = pipeline.ActEndDate;
newPipeline.WBSId = pipeline.WBSId;
newPipeline.State = pipeline.State;
newPipeline.FlowingSection = pipeline.FlowingSection;
try
{
db.SubmitChanges(System.Data.Linq.ConflictMode.ContinueOnConflict);

View File

@ -85,6 +85,9 @@
EmptyText="输入查询条件"
Width="180px" LabelWidth="80px" LabelAlign="Right">
</f:TextBox>
<f:TextBox ID="txtFlowingSection" runat ="server" Label="流水段" EmptyText="输入查询条件"
Width="180px" LabelWidth="80px" LabelAlign="Right">
</f:TextBox>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnQuery" ToolTip="查询" Icon="SystemSearch"
EnablePostBack="true" OnClick="btnQuery_Click" runat="server">
@ -102,6 +105,10 @@
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号"
Width="60px" HeaderTextAlign="Center" TextAlign="Center" />
<f:RenderField HeaderText="流水段" ColumnID="FlowingSection" Locked="true"
DataField="FlowingSection" SortField="FlowingSection" FieldType="String"
HeaderTextAlign="Center" TextAlign="Left" Width="150px">
</f:RenderField>
<f:WindowField ColumnID="PipelineCode" HeaderTextAlign="Center" TextAlign="Left"
Width="280px" WindowID="Window1" HeaderText="管线号" DataTextField="PipelineCode"
DataIFrameUrlFields="PipelineId" DataIFrameUrlFormatString="PipelineFinish.aspx?PipelineId={0}"

View File

@ -171,6 +171,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
,line.ActStartDate
,line.ActEndDate
,line.IsFinished
,line.FlowingSection
,com.PipelineComponentId
,com.PreUnit
,com.PipelineComponentCode
@ -212,6 +213,12 @@ namespace FineUIPro.Web.HJGL.WeldingManage
strSql += " AND mat.MaterialCode LIKE @MaterialCode";
listStr.Add(new SqlParameter("@MaterialCode", "%" + this.txtMaterialCode.Text.Trim() + "%"));
}
if (!string.IsNullOrEmpty(this.txtFlowingSection.Text.Trim()))
{
strSql += " AND line.FlowingSection LIKE @FlowingSection";
listStr.Add(new SqlParameter("@FlowingSection", "%" + this.txtFlowingSection.Text.Trim() + "%"));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);

View File

@ -184,6 +184,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtPipelineCode;
protected global::FineUIPro.TextBox txtFlowingSection;
/// <summary>
/// txtSingleName 控件。

View File

@ -60,6 +60,10 @@
<asp:Label ID="lbPipelineId" runat="server" Text='<%# ConvertPipelineId(Eval("PipelineId")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField HeaderText="流水段" ColumnID="FlowingSection"
DataField="FlowingSection" SortField="FlowingSection" FieldType="String"
HeaderTextAlign="Center" TextAlign="Left" Width="150px">
</f:RenderField>
<f:RenderField HeaderText="预制组件" ColumnID="PipelineComponentCode"
DataField="PipelineComponentCode" SortField="PipelineComponentCode" FieldType="String"
HeaderTextAlign="Center" TextAlign="Left" Width="150px">

View File

@ -142,10 +142,10 @@ namespace FineUIPro.Web.HJGL.WeldingManage
switch (Type)
{
case BLL.PipelineService.PipeArea_SHOP:
responeData = AddDatasetToSQL_SHOP(rows, 13);
responeData = AddDatasetToSQL_SHOP(rows, 14);
break;
case BLL.PipelineService.PipeArea_FIELD:
responeData = AddDatasetToSQL_FIELD(rows, 8);
responeData = AddDatasetToSQL_FIELD(rows, 9);
break;
}
if (responeData.code==1)
@ -188,6 +188,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
{
Model.HJGL_Pipeline pipeline = new Model.HJGL_Pipeline();
string pioelinecode = pds.Rows[i]["管线号"].ToString();
string flowingSection = pds.Rows[i]["流水段"].ToString();
string PlanStartDate = pds.Rows[i]["计划开始时间"].ToString();
string PlanEndDate = pds.Rows[i]["计划结束时间"].ToString();
@ -209,7 +210,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
{
pipeline.PlanStartDate = Convert.ToDateTime(PlanStartDate);
pipeline.PlanEndDate = Convert.ToDateTime(PlanEndDate);
pipeline.FlowingSection = flowingSection;
}
catch (Exception)
{