2024-05-08 11:01:54 +08:00
using BLL ;
using System ;
using System.Collections.Generic ;
using System.Data ;
using System.Data.SqlClient ;
namespace FineUIPro.Web.EditorManage
{
public partial class EProjectDetail : PageBase
{
#region 定 义 集 合
/// <summary>
/// 项目经理编辑器明细集合
/// </summary>
private static List < Model . Editor_PM > pMLists = new List < Model . Editor_PM > ( ) ;
/// <summary>
/// 计划工程师编辑器明细集合
/// </summary>
//private static List<Model.Editor_ProjectControl> projectControlLists = new List<Model.Editor_ProjectControl>();
#endregion
#region 加 载
/// <summary>
/// 加载
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load ( object sender , EventArgs e )
{
if ( ! IsPostBack )
{
string eProjectId = Request . Params [ "eProjectId" ] ;
if ( ! string . IsNullOrEmpty ( eProjectId ) )
{
Model . Editor_EProject eproject = BLL . EProjectService . GeteProjectById ( eProjectId ) ;
if ( eproject ! = null )
{
#region 计 划 工 程 师 编 辑 器
this . txtJobNo . Text = eproject . ProjectControl_JobNo ;
this . txtNotesLink . Text = eproject . ProjectControl_NotesLink ;
this . txtFilesLink . Text = eproject . ProjectControl_FilesLink ;
this . txtConstManger . Text = eproject . ProjectControl_ConstManager ;
this . txtJobType . Text = eproject . ProjectControl_JobType ;
this . txtOrginalBudget . Text = eproject . ProjectControl_OrginalBudget ! = null ? "" : Convert . ToInt32 ( eproject . ProjectControl_OrginalBudget ) . ToString ( ) ;
this . txtEMManger . Text = eproject . ProjectControl_EMManager ;
this . txtJobStatus . Text = eproject . ProjectControl_JobStatus ;
this . txtAccount . Text = eproject . ProjectControl_Account ;
//this.txtSQIBManger.Text = eproject.ProjectControl_SQIBManager;
this . txtJobTitle . Text = eproject . ProjectControl_JobTitle ;
if ( eproject . ProjectControl_PVIPrediction . HasValue )
{
this . txtPVIPrediction . Text = eproject . ProjectControl_PVIPrediction . ToString ( ) ;
}
//this.txtPermitManger.Text = eproject.ProjectControl_PermitManager;
this . txtBuCode . Text = eproject . ProjectControl_BUCode ;
this . txtCostEffectvitity . Text = eproject . ProjectControl_CostEffectvitity ;
//this.txtTDCManager.Text = eproject.ProjectControl_TDCManager;
this . txtMOCFormNO . Text = eproject . ProjectControl_MOCFormNo ;
if ( ! string . IsNullOrEmpty ( eproject . ProjectControl_LeadBy ) )
{
this . txtLeadBy . Text = BLL . DepartService . GetDepartNameById ( eproject . ProjectControl_LeadBy ) ;
}
this . txtOprerationRep . Text = eproject . ProjectControl_OperationRep ;
this . txtNetworkNo . Text = eproject . ProjectControl_NetworkNo ;
this . txtProjectManager . Text = eproject . ProjectControl_ProjectManager ;
this . txtRemark . Text = eproject . ProjectControl_Remarks ;
if ( eproject . ProjectControl_LP_SchStart . HasValue )
{
this . txtLPSchStart . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . ProjectControl_LP_SchStart ) ;
}
if ( eproject . ProjectControl_LP_SchEnd . HasValue )
{
this . txtLPSchEnd . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . ProjectControl_LP_SchEnd ) ;
}
if ( eproject . ProjectControl_LP_Progress . HasValue )
{
this . txtLPProgress . Text = eproject . ProjectControl_LP_Progress . ToString ( ) ;
}
if ( eproject . ProjectControl_CC_SchStart . HasValue )
{
this . txtCCSchStart . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . ProjectControl_CC_SchStart ) ;
}
if ( eproject . ProjectControl_CC_SchEnd . HasValue )
{
this . txtCCSchEnd . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . ProjectControl_CC_SchEnd ) ;
}
if ( eproject . ProjectControl_CC_Progress . HasValue )
{
this . txtCCProgress . Text = eproject . ProjectControl_CC_Progress . ToString ( ) ;
}
if ( eproject . ProjectControl_CM_SchStart . HasValue )
{
this . txtCMSchStart . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . ProjectControl_CM_SchStart ) ;
}
if ( eproject . ProjectControl_CM_SchEnd . HasValue )
{
this . txtCMSchEnd . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . ProjectControl_CM_SchEnd ) ;
}
if ( eproject . ProjectControl_CM_Progress . HasValue )
{
this . txtCMProgress . Text = eproject . ProjectControl_CM_Progress . ToString ( ) ;
}
this . txtCIProcess . Text = eproject . ProjectControl_CI_ProcessName ;
this . txtEquipment . Text = eproject . ProjectControl_CI_EquipmentName ;
this . txtInstrument . Text = eproject . ProjectControl_CI_InstrumentName ;
this . txtElectrical . Text = eproject . ProjectControl_CI_ElectricalName ;
this . txtCivil . Text = eproject . ProjectControl_CI_CivilName ;
if ( eproject . ProjectControl_ChangedBudget . HasValue )
{
this . txtChangedBudget . Text = eproject . ProjectControl_ChangedBudget . ToString ( ) ;
}
if ( eproject . ProjectControl_CommittedPRPO . HasValue )
{
this . txtCommitted_PRPO . Text = eproject . ProjectControl_CommittedPRPO . ToString ( ) ;
}
if ( eproject . ProjectControl_CommittedSSRs . HasValue )
{
this . txtCommitted_SSRs . Text = eproject . ProjectControl_CommittedSSRs . ToString ( ) ;
}
if ( eproject . ProjectControl_Actual . HasValue )
{
this . txtActual . Text = eproject . ProjectControl_Actual . ToString ( ) ;
}
if ( eproject . ProjectControl_MS_ResourcePlanReceived . HasValue )
{
this . txtResourcePlanReceived . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . ProjectControl_MS_ResourcePlanReceived ) ;
}
if ( eproject . PM_MA_SR . HasValue )
{
this . txtMS_SR . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . PM_MA_SR ) ;
}
if ( eproject . ProjectControl_MS_Approval . HasValue )
{
this . txtMS_Approval . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . ProjectControl_MS_Approval ) ;
}
if ( eproject . ProjectControl_MS_MC . HasValue )
{
this . txtMS_MC . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . ProjectControl_MS_MC ) ;
}
if ( eproject . ProjectControl_MS_Close . HasValue )
{
this . txtMS_Close . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . ProjectControl_MS_Close ) ;
}
if ( eproject . ProjectControl_BC_CloseDate . HasValue )
{
this . txtBC_CloseDate . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . ProjectControl_BC_CloseDate ) ;
}
if ( eproject . ProjectControl_PC_CancelDate . HasValue )
{
this . txtCancelDate . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . ProjectControl_PC_CancelDate ) ;
}
this . txtCAPEXPlanNo . Text = eproject . CAPEXPlanNo ;
#endregion
#region 项 目 经 理 编 辑 器
this . txtGeneral_CDI . Text = eproject . PM_General_CDI ;
if ( eproject . PM_General_CostToComplete . HasValue )
{
this . txtGeneral_CostToComplete . Text = eproject . PM_General_CostToComplete . ToString ( ) ;
}
this . txtGeneral_Priority . Text = eproject . PM_General_Priority ;
this . txtGeneral_Category . Text = eproject . PM_General_Category ;
if ( eproject . PM_PP_PressureVessel . HasValue )
{
this . cbPM_PressureVessel . Checked = true ;
this . txtPM_PressureVessel . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . PM_PP_PressureVessel ) ;
}
if ( eproject . PM_PP_PressurePiping . HasValue )
{
this . cbPM_PressurePiping . Checked = true ;
this . txtPM_PressurePiping . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . PM_PP_PressurePiping ) ;
}
if ( eproject . PM_PP_SQIB . HasValue )
{
this . cbPM_SQIB . Checked = true ;
this . txtPM_SQIB . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . PM_PP_SQIB ) ;
}
if ( eproject . PM_SC_ApprovedQty . HasValue )
{
this . txtSC_ApprovedQty . Text = eproject . PM_SC_ApprovedQty . ToString ( ) ;
}
if ( eproject . PM_SC_ApprovedCost . HasValue )
{
this . txtSC_ApprovedCost . Text = eproject . PM_SC_ApprovedCost . ToString ( ) ;
}
if ( eproject . PM_SC_PendingQty . HasValue )
{
this . txtSC_PendingQty . Text = eproject . PM_SC_PendingQty . ToString ( ) ;
}
if ( eproject . PM_SC_PendingCost . HasValue )
{
this . txtSC_PendingCost . Text = eproject . PM_SC_PendingCost . ToString ( ) ;
}
if ( eproject . PM_MA_JobReveive . HasValue )
{
this . txtMA_JobReveive . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . PM_MA_JobReveive ) ;
}
if ( eproject . PM_MA_KickOffMeeting . HasValue )
{
this . txtMA_KickOffMeeting . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . PM_MA_KickOffMeeting ) ;
}
if ( eproject . PM_MA_SR . HasValue )
{
this . txtMA_SR . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . PM_MA_SR ) ;
}
if ( eproject . PM_MA_ProjectApproval . HasValue )
{
this . txtProjectApproval . Text = string . Format ( "{0:yyyy-MM_dd}" , eproject . PM_MA_ProjectApproval ) ;
}
if ( eproject . PM_LLEP_RevisedStart . HasValue )
{
this . txtLLEP_RevisedStart . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . PM_LLEP_RevisedStart ) ;
}
if ( eproject . PM_LLEP_RevisedEnd . HasValue )
{
this . txtLLEP_RevisedEnd . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . PM_LLEP_RevisedEnd ) ;
}
if ( eproject . PM_LLEP_ActualProgress . HasValue )
{
this . txtLLEP_ActualProgress . Text = eproject . PM_LLEP_ActualProgress . ToString ( ) ;
}
if ( eproject . PM_Study_StartDate . HasValue )
{
txtStartDate . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . PM_Study_StartDate ) ;
}
if ( eproject . PM_Study_EndDate . HasValue )
{
this . txtEndDate . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . PM_Study_EndDate ) ;
}
this . txtRemarks_Engineering . Text = eproject . PM_Remarks_Engineering ;
if ( ! string . IsNullOrEmpty ( eproject . CM_Remarks_Procurement ) )
{
lblCMProcurement . Text = "CM-Procurement: " + eproject . CM_Remarks_Procurement ;
}
this . txtRemarks_Procurement . Text = eproject . PM_Remarks_Procurement ;
//加载明细
pMLists = BLL . PMService . GetPMByEprojectId ( eProjectId ) ;
this . Grid2 . DataSource = pMLists ;
this . Grid2 . DataBind ( ) ;
#endregion
#region 施 工 经 理 编 辑 器
if ( eproject . CM_CC_RevisedStart . HasValue )
{
this . txtCCRevisedStart . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . CM_CC_RevisedStart ) ;
}
if ( eproject . CM_CC_RevisedEnd . HasValue )
{
this . txtCCRevisedEnd . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . CM_CC_RevisedEnd ) ;
}
if ( eproject . CM_CC_AcutalProgress . HasValue )
{
this . txtCCAcutalProgress . Text = eproject . CM_CC_AcutalProgress . ToString ( ) ;
}
if ( eproject . CM_CM_RevisedStart . HasValue )
{
this . txtCM_RevisedStart . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . CM_CM_RevisedStart ) ;
}
if ( eproject . CM_CM_RevisedEnd . HasValue )
{
this . txtCM_RevisedEnd . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . CM_CM_RevisedEnd ) ;
}
if ( eproject . CM_CM_AcutalProgress . HasValue )
{
this . txtCM_AcutalProgress . Text = eproject . CM_CM_AcutalProgress . ToString ( ) ;
}
if ( eproject . CM_KickOffMetting . HasValue )
{
this . txtCM_KickOffMetting . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . CM_KickOffMetting ) ;
}
if ( eproject . CM_MA_MC . HasValue )
{
this . txtCM_MA_MC . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . CM_MA_MC ) ;
}
if ( eproject . CM_FC . HasValue )
{
this . txtCM_FC . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . CM_FC ) ;
}
if ( eproject . PM_General_CostToComplete . HasValue )
{
this . txtCM_Cost . Text = eproject . PM_General_CostToComplete . ToString ( ) ;
}
if ( eproject . CM_Punch_CKilledDate . HasValue )
{
this . txtCM_Punch_CKilledDate . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . CM_Punch_CKilledDate ) ;
}
this . txtConstruction . Text = eproject . CM_Remarks_Construction ;
this . txtProcurement . Text = eproject . CM_Remarks_Procurement ;
this . txtQualityHSE . Text = eproject . CM_Remarks_QualityHSE ;
if ( ! string . IsNullOrEmpty ( eproject . PM_Remarks_Procurement ) )
{
this . lblPMProcurement . Text = "PM-Procurement: " + eproject . PM_Remarks_Procurement ;
}
#endregion
#region SQIB编辑器
if ( eproject . SQIB_PressureVessel . HasValue )
{
this . txtPressureVessel . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . SQIB_PressureVessel ) ;
}
if ( eproject . SQIB_PressurePiping . HasValue )
{
this . txtPressurePiping . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . SQIB_PressurePiping ) ;
}
if ( eproject . SQIB_SQIB . HasValue )
{
this . txtSQIB . Text = string . Format ( "{0:yyyy-MM-dd}" , eproject . SQIB_SQIB ) ;
}
#endregion
#region Permit编辑器
txtPermit_PPA_EnvAssess . Text = eproject . Permit_PPA_EnvAssess = = null ? "" : Convert . ToDateTime ( eproject . Permit_PPA_EnvAssess ) . ToString ( "yyyy-MM-dd" ) ;
txtPermit_PPA_EnergySaving . Text = eproject . Permit_PPA_EnergySaving = = null ? "" : Convert . ToDateTime ( eproject . Permit_PPA_EnergySaving ) . ToString ( "yyyy-MM-dd" ) ;
txtPermit_PPA_ProjectRegistration . Text = eproject . Permit_PPA_ProjectRegistration = = null ? "" : Convert . ToDateTime ( eproject . Permit_PPA_ProjectRegistration ) . ToString ( "yyyy-MM-dd" ) ;
txtPermit_PPA_PlanningPermit . Text = eproject . Permit_PPA_PlanningPermit = = null ? "" : Convert . ToDateTime ( eproject . Permit_PPA_PlanningPermit ) . ToString ( "yyyy-MM-dd" ) ;
txtPermit_PPA_SafetyConRev . Text = eproject . Permit_PPA_SafetyConRev = = null ? "" : Convert . ToDateTime ( eproject . Permit_PPA_SafetyConRev ) . ToString ( "yyyy-MM-dd" ) ;
txtPermit_PPA_SafetyDesignRev . Text = eproject . Permit_PPA_SafetyDesignRev = = null ? "" : Convert . ToDateTime ( eproject . Permit_PPA_SafetyDesignRev ) . ToString ( "yyyy-MM-dd" ) ;
txtPermit_PS_SafetyDesginReview . Text = eproject . Permit_PS_SafetyDesginReview = = null ? "" : Convert . ToDateTime ( eproject . Permit_PS_SafetyDesginReview ) . ToString ( "yyyy-MM-dd" ) ;
txtPermit_PPA_FFDesignReview . Text = eproject . Permit_PPA_FFDesignReview = = null ? "" : Convert . ToDateTime ( eproject . Permit_PPA_FFDesignReview ) . ToString ( "yyyy-MM-dd" ) ;
txtPermit_PS_EnvAssess . Text = eproject . Permit_PS_EnvAssess = = null ? "" : Convert . ToDateTime ( eproject . Permit_PS_EnvAssess ) . ToString ( "yyyy-MM-dd" ) ;
txtPermit_PS_EnergySaving . Text = eproject . Permit_PS_EnergySaving = = null ? "" : Convert . ToDateTime ( eproject . Permit_PS_EnergySaving ) . ToString ( "yyyy-MM-dd" ) ;
txtPermit_PS_ProjectRegistr . Text = eproject . Permit_PS_ProjectRegistr = = null ? "" : Convert . ToDateTime ( eproject . Permit_PS_ProjectRegistr ) . ToString ( "yyyy-MM-dd" ) ;
txtPermit_PS_PlanningPermit . Text = eproject . Permit_PS_PlanningPermit = = null ? "" : Convert . ToDateTime ( eproject . Permit_PS_PlanningPermit ) . ToString ( "yyyy-MM-dd" ) ;
txtPermit_PS_SafetyConReview . Text = eproject . Permit_PS_SafetyConReview = = null ? "" : Convert . ToDateTime ( eproject . Permit_PS_SafetyConReview ) . ToString ( "yyyy-MM-dd" ) ;
txtPermit_PS_FFDesginReview . Text = eproject . Permit_PS_FFDesginReview = = null ? "" : Convert . ToDateTime ( eproject . Permit_PS_FFDesginReview ) . ToString ( "yyyy-MM-dd" ) ;
txtPermit_PS_ConstPermit . Text = eproject . Permit_PS_ConstPermit = = null ? "" : Convert . ToDateTime ( eproject . Permit_PS_ConstPermit ) . ToString ( "yyyy-MM-dd" ) ;
txtPermit_PS_SafetyFinalAcc . Text = eproject . Permit_PS_SafetyFinalAcc = = null ? "" : Convert . ToDateTime ( eproject . Permit_PS_SafetyFinalAcc ) . ToString ( "yyyy-MM-dd" ) ;
txtPermit_PS_FFFinalAcc . Text = eproject . Permit_PS_FFFinalAcc = = null ? "" : Convert . ToDateTime ( eproject . Permit_PS_FFFinalAcc ) . ToString ( "yyyy-MM-dd" ) ;
txtPermit_PS_EnvFinalAcc . Text = eproject . Permit_PS_EnvFinalAcc = = null ? "" : Convert . ToDateTime ( eproject . Permit_PS_EnvFinalAcc ) . ToString ( "yyyy-MM-dd" ) ;
txtPermit_PS_ArchiveAccep . Text = eproject . Permit_PS_ArchiveAccep = = null ? "" : Convert . ToDateTime ( eproject . Permit_PS_ArchiveAccep ) . ToString ( "yyyy-MM-dd" ) ;
txtPermit_PS_3rdConstJian . Text = eproject . Permit_PS_3rdConstJian = = null ? "" : Convert . ToDateTime ( eproject . Permit_PS_3rdConstJian ) . ToString ( "yyyy-MM-dd" ) ;
txtPermit_PA_ConstPermit . Text = eproject . Permit_PA_ConstPermit = = null ? "" : Convert . ToDateTime ( eproject . Permit_PA_ConstPermit ) . ToString ( "yyyy-MM-dd" ) ;
txtPermit_PA_SafetyFinalACC . Text = eproject . Permit_PA_SafetyFinalACC = = null ? "" : Convert . ToDateTime ( eproject . Permit_PA_SafetyFinalACC ) . ToString ( "yyyy-MM-dd" ) ;
txtPermit_PA_FFFinalACC . Text = eproject . Permit_PA_FFFinalACC = = null ? "" : Convert . ToDateTime ( eproject . Permit_PA_FFFinalACC ) . ToString ( "yyyy-MM-dd" ) ;
txtPermit_PA_EnvFinalACC . Text = eproject . Permit_PA_EnvFinalACC = = null ? "" : Convert . ToDateTime ( eproject . Permit_PA_EnvFinalACC ) . ToString ( "yyyy-MM-dd" ) ;
if ( eproject . Permit_PS_EnvAssess . HasValue | | eproject . Permit_PPA_EnvAssess . HasValue )
{
this . chkPermit_PS_EnvAssess . Checked = true ;
}
if ( eproject . Permit_PS_EnergySaving . HasValue | | eproject . Permit_PPA_EnergySaving . HasValue )
{
chkPermit_PS_EnergySaving . Checked = true ;
}
if ( eproject . Permit_PS_ProjectRegistr . HasValue | | eproject . Permit_PPA_ProjectRegistration . HasValue )
{
chkPermit_PS_ProjectRegistr . Checked = true ;
}
if ( eproject . Permit_PS_PlanningPermit . HasValue | | eproject . Permit_PPA_PlanningPermit . HasValue )
{
chkPermit_PS_PlanningPermit . Checked = true ;
}
if ( eproject . Permit_PS_SafetyDesginReview . HasValue | | eproject . Permit_PPA_SafetyDesignRev . HasValue )
{
chkPermit_PS_SafetyDesginReview . Checked = true ;
}
if ( eproject . Permit_PS_FFDesginReview . HasValue | | eproject . Permit_PPA_FFDesignReview . HasValue )
{
chkPermit_PS_FFDesginReview . Checked = true ;
}
if ( eproject . Permit_PS_ConstPermit . HasValue | | eproject . Permit_PA_ConstPermit . HasValue )
{
chkPermit_PS_ConstPermit . Checked = true ;
}
if ( eproject . Permit_PS_SafetyFinalAcc . HasValue | | eproject . Permit_PA_SafetyFinalACC . HasValue )
{
chkPermit_PS_SafetyFinalAcc . Checked = true ;
}
if ( eproject . Permit_PS_FFFinalAcc . HasValue | | eproject . Permit_PA_FFFinalACC . HasValue )
{
chkPermit_PS_FFFinalAcc . Checked = true ;
}
if ( eproject . Permit_PS_EnvFinalAcc . HasValue | | eproject . Permit_PA_EnvFinalACC . HasValue )
{
chkPermit_PS_EnvFinalAcc . Checked = true ;
}
if ( eproject . Permit_PS_ArchiveAccep . HasValue )
{
chkPermit_PS_ArchiveAccep . Checked = true ;
}
if ( eproject . Permit_PS_3rdConstJian . HasValue )
{
chkPermit_PS_3rdConstJian . Checked = true ;
}
#endregion
#region 文 档 编 辑 器
BindGridTDC ( ) ;
#endregion
#region 经 验 教 训 编 辑 器
BindGridLessonsLearned ( ) ;
#endregion
#region AreaConcern
BindGridAreaConcern ( ) ;
#endregion
#region Punch
BindGridPunch ( ) ;
#endregion
#region FCR Log
BindGridFCRLog ( ) ;
#endregion
2024-12-13 15:54:19 +08:00
#region Key Quantity
BindGridKeyQuantity ( ) ;
#endregion
2024-05-08 11:01:54 +08:00
}
}
}
}
#region 绑 定 数 据
#region 经 验 教 训
/// <summary>
/// 经验教训编辑器
/// </summary>
private void BindGridLessonsLearned ( )
{
string strSql = "SELECT LessonsLearnedId,Id,JobNo,PostBy,EntryDate,AppliedDiscip,Stage,Keyword,Description,RootCause,LessonLearned FROM dbo.Editor_LessonsLearned WHERE EProjectId=@eprojectId" ;
List < SqlParameter > listStr = new List < SqlParameter > ( ) ;
string eProjectId = Request . Params [ "eProjectId" ] ;
listStr . Add ( new SqlParameter ( "@eprojectId" , eProjectId ) ) ;
SqlParameter [ ] parameter = listStr . ToArray ( ) ;
DataTable tb = SQLHelper . GetDataTableRunText ( strSql , parameter ) ;
// 2.获取当前分页数据
//var table = this.GetPagedDataTable(Grid1, tb1);
GridLessonLearned . RecordCount = tb . Rows . Count ;
var table = this . GetPagedDataTable ( GridLessonLearned , tb ) ;
GridLessonLearned . DataSource = table ;
GridLessonLearned . DataBind ( ) ;
}
#region 分 页 、 排 序
/// <summary>
/// 分页
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void GridLessonLearned_PageIndexChange ( object sender , GridPageEventArgs e )
{
GridLessonLearned . PageIndex = e . NewPageIndex ;
BindGridLessonsLearned ( ) ;
}
/// <summary>
/// 分页显示条数下拉框
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ddlPageSize_SelectedIndexChanged ( object sender , EventArgs e )
{
GridLessonLearned . PageSize = Convert . ToInt32 ( ddlPageSize . SelectedValue ) ;
BindGridLessonsLearned ( ) ;
}
/// <summary>
/// 排序
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void GridLessonLearned_Sort ( object sender , FineUIPro . GridSortEventArgs e )
{
GridLessonLearned . SortDirection = e . SortDirection ;
GridLessonLearned . SortField = e . SortField ;
BindGridLessonsLearned ( ) ;
}
#endregion
#endregion
#region TDC
/// <summary>
/// 文档编辑器
/// </summary>
private void BindGridTDC ( )
{
string strSql = "SELECT TDCId, EProjectId, Type, Disc, A1Pages, ReceiveHC, ReceivePDF, ReceiveNative, PublishPDF, PublishNative, ToPlant, ToCHA, Remarks " +
" FROM dbo.Editor_TDC WHERE EProjectId=@eprojectId " ;
List < SqlParameter > listStr = new List < SqlParameter > ( ) ;
string eProjectId = Request . Params [ "eProjectId" ] ;
listStr . Add ( new SqlParameter ( "@eprojectId" , eProjectId ) ) ;
SqlParameter [ ] parameter = listStr . ToArray ( ) ;
DataTable tb = SQLHelper . GetDataTableRunText ( strSql , parameter ) ;
// 2.获取当前分页数据
//var table = this.GetPagedDataTable(Grid1, tb1);
GridTDC . RecordCount = tb . Rows . Count ;
var table = this . GetPagedDataTable ( GridTDC , tb ) ;
GridTDC . DataSource = table ;
GridTDC . DataBind ( ) ;
}
#region 分 页 、 排 序
/// <summary>
/// 分页
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void GridTDC_PageIndexChange ( object sender , GridPageEventArgs e )
{
GridTDC . PageIndex = e . NewPageIndex ;
BindGridTDC ( ) ;
}
/// <summary>
/// 分页显示条数下拉框
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ddlTDCPageSize_SelectedIndexChanged ( object sender , EventArgs e )
{
GridTDC . PageSize = Convert . ToInt32 ( ddlTDCPageSize . SelectedValue ) ;
BindGridTDC ( ) ;
}
/// <summary>
/// 排序
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void GridTDC_Sort ( object sender , FineUIPro . GridSortEventArgs e )
{
GridTDC . SortDirection = e . SortDirection ;
GridTDC . SortField = e . SortField ;
BindGridTDC ( ) ;
}
#endregion
#endregion
#region Area Concern
private void BindGridAreaConcern ( )
{
string strSql = "SELECT AreaConcernId,EProjectId,SN,EntryDate,CreatedByName,CategoryCauseName,Remark FROM dbo.Editor_AreaConcern WHERE EProjectId=@eprojectId" ;
List < SqlParameter > listStr = new List < SqlParameter > ( ) ;
string eProjectId = Request . Params [ "eProjectId" ] ;
listStr . Add ( new SqlParameter ( "@eprojectId" , eProjectId ) ) ;
SqlParameter [ ] parameter = listStr . ToArray ( ) ;
DataTable tb = SQLHelper . GetDataTableRunText ( strSql , parameter ) ;
// 2.获取当前分页数据
//var table = this.GetPagedDataTable(Grid1, tb1);
GridAreaConcern . RecordCount = tb . Rows . Count ;
var table = this . GetPagedDataTable ( GridAreaConcern , tb ) ;
GridAreaConcern . DataSource = table ;
GridAreaConcern . DataBind ( ) ;
}
#region 分 页 、 排 序
/// <summary>
/// 分页
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void GridAreaConcern_PageIndexChange ( object sender , GridPageEventArgs e )
{
GridAreaConcern . PageIndex = e . NewPageIndex ;
BindGridAreaConcern ( ) ;
}
/// <summary>
/// 分页显示条数下拉框
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ddlAreaConcern_SelectedIndexChanged ( object sender , EventArgs e )
{
GridAreaConcern . PageSize = Convert . ToInt32 ( ddlAreaConcern . SelectedValue ) ;
BindGridAreaConcern ( ) ;
}
/// <summary>
/// 排序
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void GridAreaConcern_Sort ( object sender , FineUIPro . GridSortEventArgs e )
{
GridAreaConcern . SortDirection = e . SortDirection ;
GridAreaConcern . SortField = e . SortField ;
BindGridAreaConcern ( ) ;
}
#endregion
#endregion
#region Punch
private void BindGridPunch ( )
{
string strSql = "SELECT * FROM dbo.Editor_Punch WHERE EProjectId=@eprojectId" ;
List < SqlParameter > listStr = new List < SqlParameter > ( ) ;
string eProjectId = Request . Params [ "eProjectId" ] ;
listStr . Add ( new SqlParameter ( "@eprojectId" , eProjectId ) ) ;
SqlParameter [ ] parameter = listStr . ToArray ( ) ;
DataTable tb = SQLHelper . GetDataTableRunText ( strSql , parameter ) ;
// 2.获取当前分页数据
//var table = this.GetPagedDataTable(Grid1, tb1);
GridPunch . RecordCount = tb . Rows . Count ;
var table = this . GetPagedDataTable ( GridPunch , tb ) ;
GridPunch . DataSource = table ;
GridPunch . DataBind ( ) ;
}
#region 分 页 、 排 序
/// <summary>
/// 分页
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void GridPunch_PageIndexChange ( object sender , GridPageEventArgs e )
{
GridPunch . PageIndex = e . NewPageIndex ;
BindGridPunch ( ) ;
}
/// <summary>
/// 分页显示条数下拉框
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ddlPunch_SelectedIndexChanged ( object sender , EventArgs e )
{
GridPunch . PageSize = Convert . ToInt32 ( ddlPunch . SelectedValue ) ;
BindGridPunch ( ) ;
}
/// <summary>
/// 排序
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void GridPunch_Sort ( object sender , FineUIPro . GridSortEventArgs e )
{
GridPunch . SortDirection = e . SortDirection ;
GridPunch . SortField = e . SortField ;
BindGridPunch ( ) ;
}
#endregion
#endregion
#region FCR Log
private void BindGridFCRLog ( )
{
string strSql = "SELECT * FROM dbo.Editor_FCRLog WHERE EProjectId=@eprojectId" ;
List < SqlParameter > listStr = new List < SqlParameter > ( ) ;
string eProjectId = Request . Params [ "eProjectId" ] ;
listStr . Add ( new SqlParameter ( "@eprojectId" , eProjectId ) ) ;
SqlParameter [ ] parameter = listStr . ToArray ( ) ;
DataTable tb = SQLHelper . GetDataTableRunText ( strSql , parameter ) ;
// 2.获取当前分页数据
//var table = this.GetPagedDataTable(Grid1, tb1);
GridFCRLog . RecordCount = tb . Rows . Count ;
var table = this . GetPagedDataTable ( GridFCRLog , tb ) ;
GridFCRLog . DataSource = table ;
GridFCRLog . DataBind ( ) ;
}
#region 分 页 、 排 序
/// <summary>
/// 分页
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void GridFCRLog_PageIndexChange ( object sender , GridPageEventArgs e )
{
GridFCRLog . PageIndex = e . NewPageIndex ;
BindGridFCRLog ( ) ;
}
/// <summary>
/// 分页显示条数下拉框
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ddlFCRLog_SelectedIndexChanged ( object sender , EventArgs e )
{
GridFCRLog . PageSize = Convert . ToInt32 ( ddlFCRLog . SelectedValue ) ;
BindGridFCRLog ( ) ;
}
/// <summary>
/// 排序
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void GridFCRLog_Sort ( object sender , FineUIPro . GridSortEventArgs e )
{
GridFCRLog . SortDirection = e . SortDirection ;
GridFCRLog . SortField = e . SortField ;
BindGridFCRLog ( ) ;
}
#endregion
#endregion
2024-12-13 15:54:19 +08:00
#region Key Quantity
private void BindGridKeyQuantity ( )
{
List < SqlParameter > listStr = new List < SqlParameter >
{
new SqlParameter ( "@eprojectId" , Request . Params [ "eProjectId" ] )
} ;
SqlParameter [ ] parameter = listStr . ToArray ( ) ;
DataTable tb = SQLHelper . GetDataTableRunProc ( "Proc_KeyQuantityLists" , parameter ) ;
this . GridKeyQuantity . RecordCount = tb . Rows . Count ;
var table = this . GetPagedDataTable ( GridKeyQuantity , tb ) ;
GridKeyQuantity . DataSource = table ;
GridKeyQuantity . DataBind ( ) ;
}
#region 分 页 、 排 序
/// <summary>
/// 分页
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void GridKeyQuantity_PageIndexChange ( object sender , GridPageEventArgs e )
{
GridKeyQuantity . PageIndex = e . NewPageIndex ;
BindGridKeyQuantity ( ) ;
}
/// <summary>
/// 分页显示条数下拉框
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ddlKeyQuantity_SelectedIndexChanged ( object sender , EventArgs e )
{
GridKeyQuantity . PageSize = Convert . ToInt32 ( ddlKeyQuantity . SelectedValue ) ;
BindGridKeyQuantity ( ) ;
}
/// <summary>
/// 排序
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void GridKeyQuantity_Sort ( object sender , FineUIPro . GridSortEventArgs e )
{
GridKeyQuantity . SortDirection = e . SortDirection ;
GridKeyQuantity . SortField = e . SortField ;
BindGridKeyQuantity ( ) ;
}
#endregion
#endregion
2024-05-08 11:01:54 +08:00
#endregion
#endregion
}
}