移交管理
This commit is contained in:
@@ -55,10 +55,15 @@ namespace FineUIPro.Web.Transfer
|
||||
{
|
||||
strSql += " And FINALStatus='" + ddStatus.SelectedValue + "' ";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtSystem.Text.Trim()))
|
||||
//if (!string.IsNullOrEmpty(this.txtSystem.Text.Trim()))
|
||||
//{
|
||||
// strSql += " AND SYSTEM like @SYSTEM";
|
||||
// listStr.Add(new SqlParameter("@SYSTEM", "%" + this.txtSystem.Text.Trim() + "%"));
|
||||
//}
|
||||
if (!string.IsNullOrEmpty(this.txtTurnoverSystemCode.Text.Trim()))
|
||||
{
|
||||
strSql += " AND SYSTEM like @SYSTEM";
|
||||
listStr.Add(new SqlParameter("@SYSTEM", "%" + this.txtSystem.Text.Trim() + "%"));
|
||||
strSql += " AND TestPackage like @SUBSYSTEM";
|
||||
listStr.Add(new SqlParameter("@SUBSYSTEM", "%" + this.txtTurnoverSystemCode.Text.Trim() + "%"));
|
||||
}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
@@ -206,6 +211,48 @@ namespace FineUIPro.Web.Transfer
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 导出
|
||||
|
||||
/// <summary>
|
||||
/// 导出
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnOut_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.ClearContent();
|
||||
string filename = Funs.GetNewFileName();
|
||||
Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("管道" + filename, System.Text.Encoding.UTF8) + ".xls");
|
||||
Response.ContentType = "application/excel";
|
||||
Response.ContentEncoding = System.Text.Encoding.UTF8;
|
||||
this.Grid1.PageSize = 100000;
|
||||
this.BindGrid();
|
||||
Response.Write(GetGridMultiHeaderTableHtml(Grid1));
|
||||
//Response.Write(GetGridTableHtml(Grid1));
|
||||
Response.End();
|
||||
}
|
||||
|
||||
#endregion
|
||||
#region 清空数据
|
||||
|
||||
/// <summary>
|
||||
/// 清空数据
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnClear_Click(object sender, EventArgs e)
|
||||
{
|
||||
var ProjectId = this.CurrUser.LoginProjectId;
|
||||
if (!string.IsNullOrWhiteSpace(ProjectId))
|
||||
{
|
||||
string strSql = $"delete from Transfer_Piping where ProjectId = '{ProjectId}';";
|
||||
BLL.SQLHelper.ExecutSql(strSql);
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 获取按钮权限
|
||||
/// <summary>
|
||||
/// 获取按钮权限
|
||||
@@ -224,6 +271,7 @@ namespace FineUIPro.Web.Transfer
|
||||
if (buttonList.Contains(BLL.Const.BtnDelete))
|
||||
{
|
||||
this.btnMenuDel.Hidden = false;
|
||||
this.btnClear.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnSave))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user