This commit is contained in:
佘春生 2024-05-22 22:57:06 +08:00
parent b7ece2ce51
commit df39b88c09
4 changed files with 16 additions and 21 deletions

View File

@ -162,7 +162,7 @@
</site>
<site name="WebApi" id="2">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="E:\湛江巴斯夫\Basf_TCC7\HJGL\WebApi" />
<virtualDirectory path="/" physicalPath="E:\MyProject\ZJ_BSF\Basf_TCC7\HJGL\WebApi" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:3862:localhost" />
@ -250,7 +250,7 @@
</site>
<site name="FineUIPro.Web(10)" id="13">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="E:\湛江巴斯夫\Basf_TCC7\HJGL\FineUIPro.Web" />
<virtualDirectory path="/" physicalPath="E:\MyProject\ZJ_BSF\Basf_TCC7\HJGL\FineUIPro.Web" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:13960:localhost" />

Binary file not shown.

View File

@ -146,7 +146,7 @@
runat="server" BoxFlex="1" DataKeyNames="PipelineId" AllowCellEditing="true"
EnableColumnLines="true" ClicksToEdit="2" DataIDField="PipelineId" AllowSorting="true"
SortField="WorkAreaCode,PipelineCode" SortDirection="ASC" OnSort="Grid1_Sort"
AllowPaging="true" IsDatabasePaging="true" PageSize="100"
AllowPaging="true" IsDatabasePaging="true" PageSize="100" OnRowDataBound="Grid1_RowDataBound"
OnPageIndexChange="Grid1_PageIndexChange" EnableTextSelection="True">
<Columns>
<f:CheckBoxField ColumnID="ckbIsSelected" Width="50px" RenderAsStaticField="false" HeaderText="选择"

View File

@ -4,6 +4,8 @@ using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Web.ModelBinding;
using System.Web.UI.DataVisualization.Charting;
using System.Windows.Forms;
using BLL;
using Model;
using Newtonsoft.Json.Linq;
@ -323,7 +325,6 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
Grid1.DataSource = table;
Grid1.DataBind();
this.GetInitGrid1Data();
}
/// <summary>
@ -388,6 +389,7 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
this.CollectGridJointInfo();
this.BindGrid();
this.ShowGridItem();
}
#endregion
@ -543,6 +545,8 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
JObject values = teamGroupRow.Value<JObject>("values");
string WeldJonintCodes = values.Value<string>("isALL");
string workAreaId = values.Value<string>("WorkAreaId");
if (string.IsNullOrEmpty(WeldJonintCodes))
WeldJonintCodes = "全部";
Model.PTP_PipelineList newitem = new Model.PTP_PipelineList();
newitem.PTP_ID = this.PTP_ID;
newitem.PipelineId = PipelineId;
@ -592,20 +596,12 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
#region Grid2列表
private void GetInitGrid1Data()
{
for (int i = 0; i < Grid1.Rows.Count; i++)
{
string rowID = Grid1.DataKeys[i][0].ToString();
this.GetBindGrid2Data(rowID);
}
}
private void GetBindGrid2Data(string PipelineID)
{
this.Grid2.DataSource = GetDataJointGrid2(PipelineID);
this.Grid2.DataBind();
}
private List<View_Pipeline_WeldJoint> GetDataJointGrid2(string PipelineID)
private List<Pipeline_WeldJoint> GetDataJointGrid2(string PipelineID)
{
string[] arr = null;
var tempData=Funs.DB.PTP_PipelineList.Where(t=>t.PipelineId == PipelineID && t.IsAll==false)
@ -615,7 +611,7 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
{
arr = tempData.Split(',');
}
var query = Funs.DB.View_Pipeline_WeldJoint.Where(t => t.PipelineId == PipelineID )
var query = Funs.DB.Pipeline_WeldJoint.Where(t => t.PipelineId == PipelineID )
.OrderBy(t => t.WeldJointCode).AsQueryable();
if (arr != null)
{
@ -627,13 +623,6 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
private Dictionary<int, Dictionary<string, object>> GetModifiedDict()
{
Dictionary<int, Dictionary<string, object>> modifiedDict = Grid2.GetModifiedDict();
return modifiedDict;
}
#endregion
#region Grid
@ -700,8 +689,14 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
this.BindGrid();
this.ShowGridItem();
}
#endregion
protected void Grid1_RowDataBound(object sender, GridRowEventArgs e)
{
string rowId = e.RowID;
Grid dataGrid = e.Row.FindControl("Grid2") as Grid;
}
}
}