2023-04-28 天辰质量报验移植
This commit is contained in:
@@ -4,8 +4,6 @@ using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace FineUIPro.Web.Comprehensive
|
||||
{
|
||||
public partial class InspectionPerson : PageBase
|
||||
@@ -32,7 +30,7 @@ namespace FineUIPro.Web.Comprehensive
|
||||
/// </summary>
|
||||
public void BindGrid()
|
||||
{
|
||||
string strSql = @"select InspectionPersonId, InspectionPersonCode, PersonName,
|
||||
string strSql = @"select InspectionPersonId, InspectionPersonCode, PersonName, Status,
|
||||
CertificateNumber, QualifiedProjectCode, ValidityDate, ApprovalTime,
|
||||
DepartureTime, AttachUrl,CompileMan, CompileDate,
|
||||
IsOnSite, UnitWorkId,U.UnitName,CN.ProfessionalName ,P.PostName
|
||||
@@ -292,7 +290,7 @@ namespace FineUIPro.Web.Comprehensive
|
||||
{
|
||||
lbfAction1.Enabled = true;
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
lbfAction1.Enabled = false;
|
||||
}
|
||||
@@ -311,29 +309,34 @@ namespace FineUIPro.Web.Comprehensive
|
||||
}
|
||||
}
|
||||
|
||||
#region 导出按钮
|
||||
/// 导出按钮
|
||||
/// </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 = Encoding.UTF8;
|
||||
this.Grid1.PageSize = Grid1.RecordCount;
|
||||
this.BindGrid();
|
||||
Response.Write(GetGridTableHtml2(Grid1));
|
||||
Response.End();
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void ddlPageSize_SelectedIndexChanged1(object sender, EventArgs e)
|
||||
public static string ConvertState(object Status)
|
||||
{
|
||||
this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
|
||||
BindGrid();
|
||||
if (Status != null)
|
||||
{
|
||||
if (Status.ToString().Trim() == BLL.Const.Comprehensive_ReCompile)
|
||||
{
|
||||
return "重报";
|
||||
}
|
||||
else if (Status.ToString().Trim() == BLL.Const.Comprehensive_ReJect)
|
||||
{
|
||||
return "驳回";
|
||||
}
|
||||
else if (Status.ToString().Trim() == BLL.Const.Comprehensive_Compile)
|
||||
{
|
||||
return "编制";
|
||||
}
|
||||
else if (Status.ToString().Trim() == BLL.Const.Comprehensive_Audit)
|
||||
{
|
||||
return "待审批";
|
||||
}
|
||||
else if (Status.ToString().Trim() == BLL.Const.Comprehensive_Complete)
|
||||
{
|
||||
return "审批完成";
|
||||
}
|
||||
}
|
||||
|
||||
return "编制";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user