焊接管理修改

This commit is contained in:
2025-08-28 15:41:32 +08:00
parent edebefa3c9
commit 87bbd83e25
24 changed files with 444 additions and 170 deletions
@@ -32,40 +32,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// 绑定数据
/// </summary>
private void BindGrid()
{
// string strSql = @"select pack.PackagingManageId,
// pack.PackagingCode,
// com.PipelineComponentCode,
// unit.UnitWorkName,
// pipe.PlanStartDate,
// pack.ProjectId,
// pack.StackingPosition,
// pack.State,
// pack.ContactName,
// pack.ContactPhone,
//pack.ReceiveDate,
//person.PersonName
// from HJGL_PackagingManage as pack
// left join HJGL_Pipeline_Component com on com.PipelineComponentId=pack.PipelineComponentId
// left join HJGL_Pipeline pipe on pipe.PipelineId =com.PipelineId
// left join WBS_UnitWork unit on pipe.UnitWorkId=unit.UnitWorkId
// left join Person_Persons person on pack.ReceiveMan=person.PersonId
// WHERE pack.ProjectId = @ProjectId ";
// List<SqlParameter> listStr = new List<SqlParameter>();
// listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
// if (!string.IsNullOrEmpty(this.txtPackagingCode.Text.Trim()))
// {
// strSql += " AND pack.PackagingCode LIKE @PackagingCode";
// listStr.Add(new SqlParameter("@PackagingCode", "%" + this.txtPackagingCode.Text.Trim() + "%"));
// }
// SqlParameter[] parameter = listStr.ToArray();
// DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
//Grid1.RecordCount = tb.Rows.Count;
//tb = GetFilteredTable(Grid1.FilteredData, tb);
//var table = this.GetPagedDataTable(Grid1, tb);
//Grid1.DataSource = table;
//Grid1.DataBind();
{
var list = BLL.HJGL_PackagingmanageService.GetPackagingManageList(this.CurrUser.LoginProjectId, this.txtPackagingCode.Text.Trim(), this.Grid1.PageIndex, this.Grid1.PageSize);
Grid1.RecordCount = list.Total;
Grid1.DataSource = list.Data;
@@ -341,7 +308,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
ShowNotify("请选择要打印的项", MessageBoxIcon.Warning);
return;
}
DataTable tb = BLL.HJGL_PackagingmanageService.GetPackagingDetailById(Id);
DataTable tb = LINQToDataTable(BLL.HJGL_PackagingmanageService.GetPackagingDetailById(Id));
if (tb.Rows.Count > 0)
{
var model = HJGL_PackagingmanageService.GetHJGL_PackagingManageById(Id);