20220923 焊接测试修改
This commit is contained in:
@@ -17,6 +17,8 @@ namespace FineUIPro.Web.HJGL.DataImport
|
||||
|
||||
//this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||
this.InitTreeMenu();//加载树
|
||||
Funs.FineUIPleaseSelect(DropImportType);
|
||||
|
||||
GetButtonPower();
|
||||
}
|
||||
}
|
||||
@@ -123,11 +125,13 @@ namespace FineUIPro.Web.HJGL.DataImport
|
||||
if (tvControlItem.SelectedNodeID == "1" || tvControlItem.SelectedNodeID == "2")
|
||||
{
|
||||
this.btnNew.Hidden = true;
|
||||
this.btnDelete.Hidden = true;
|
||||
this.btnSearch.Hidden = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.btnNew.Hidden = false;
|
||||
this.btnDelete.Hidden = false;
|
||||
this.btnSearch.Hidden = false;
|
||||
|
||||
|
||||
@@ -150,7 +154,7 @@ namespace FineUIPro.Web.HJGL.DataImport
|
||||
from ( select * from HJGL_DataImport a where not exists (select 1 from HJGL_DataImport b where a.FileName=b.FileName and a.UnitWorkId=b.UnitWorkId and a.Version<b.Version )) as Import
|
||||
left join Base_DesignProfessional as Design on Design.DesignProfessionalId=Import.DesignProfessionalId
|
||||
left join Person_Persons as Users on Users.PersonId=Import.CreateMan
|
||||
where Import.UnitWorkId=@UnitWorkId and Import.ProjectId=@ProjectId and Import.ImportType='0'";
|
||||
where Import.UnitWorkId=@UnitWorkId and Import.ProjectId=@ProjectId and Import.ImportType in ('0','3') ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||
listStr.Add(new SqlParameter("@UnitWorkId", this.tvControlItem.SelectedNodeID));
|
||||
@@ -159,6 +163,11 @@ namespace FineUIPro.Web.HJGL.DataImport
|
||||
strSql += " AND Import.FileName LIKE @FileName";
|
||||
listStr.Add(new SqlParameter("@FileName", "%" + this.txtfilename.Text.Trim() + "%"));
|
||||
}
|
||||
if (DropImportType.SelectedValue != Const._Null)
|
||||
{
|
||||
strSql += " AND Import.ImportType=@ImportType";
|
||||
listStr.Add(new SqlParameter("@ImportType", DropImportType.SelectedValue));
|
||||
}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
// 2.获取当前分页数据
|
||||
@@ -175,7 +184,7 @@ namespace FineUIPro.Web.HJGL.DataImport
|
||||
from ( select * from HJGL_DataImport a where exists (select 1 from HJGL_DataImport b where a.FileName=b.FileName and a.UnitWorkId=b.UnitWorkId and a.Version<b.Version )) as Import
|
||||
left join Base_DesignProfessional as Design on Design.DesignProfessionalId=Import.DesignProfessionalId
|
||||
left join Person_Persons as Users on Users.PersonId=Import.CreateMan
|
||||
where Import.UnitWorkId=@UnitWorkId and Import.ProjectId=@ProjectId and Import.FileName=@FileName and Import.ImportType='0'";
|
||||
where Import.UnitWorkId=@UnitWorkId and Import.ProjectId=@ProjectId and Import.FileName=@FileName and Import.ImportType in ('0','3')";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||
listStr.Add(new SqlParameter("@UnitWorkId", this.tvControlItem.SelectedNodeID));
|
||||
|
||||
Reference in New Issue
Block a user