/// <summary> /// 上传附件资源 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnUploadResources_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(this.HSECertificateId)) { PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/HSECertificate&menuId=9A034CAD-C7D5-4DE4-9FF5-828D35FFEE28", this.HSECertificateId))); } }
/// <summary> /// 上传附件资源 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnUploadResources_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(this.RectifyNoticeId)) { PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/RectifyNotice&menuId=0038D764-D628-46F0-94FF-D0A22C3C45A3", this.RectifyNoticeId))); } }
/// <summary> /// 上传附件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnAttachUrl_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(this.ActionPlanSummaryId)) { PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/ActionPlanSummaryAttachUrl&menuId={1}&type=-1", this.ActionPlanSummaryId, BLL.Const.ProjectActionPlanSummaryMenuId))); } }
/// <summary> /// 上传附件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnAttachUrl_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(this.CostSmallDetailId)) { PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CostSmallDetailAttachUrl&menuId={1}", this.CostSmallDetailId, BLL.Const.ProjectCostSmallDetailMenuId))); } }
/// <summary> /// 上传附件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnAttachUrl_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.AccidentReportId)) { if (this.drpAccidentTypeId.SelectedValue == BLL.Const._Null) { Alert.ShowInTop("请选择事故类型!", MessageBoxIcon.Warning); return; } if (this.rbIsNotConfirm.SelectedValue == "True") { if (this.drpUnitId2.SelectedValue == BLL.Const._Null) { Alert.ShowInTop("请选择事故责任单位!", MessageBoxIcon.Warning); return; } } else { if (this.drpUnitId.SelectedValue == BLL.Const._Null) { Alert.ShowInTop("请选择事故责任单位!", MessageBoxIcon.Warning); return; } } this.SaveData(BLL.Const.BtnSave); } PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/AccidentReportAttachUrl&menuId={1}", this.AccidentReportId, BLL.Const.ProjectAccidentReportMenuId))); }
/// <summary> /// 上传附件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnAttachUrl_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.CheckColligationId)) { SaveNew(); } PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CheckColligation&menuId={1}", this.CheckColligationId, BLL.Const.ProjectCheckColligationMenuId))); }
/// <summary> /// 上传附件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnAttachUrl_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.ManageRuleId)) { SaveData(BLL.Const.BtnSave); } PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/ActionPlanManagerRule&menuId={1}", ManageRuleId, BLL.Const.ActionPlan_ManagerRuleMenuId))); }
/// <summary> /// 上传附件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnAttachUrl_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.NoFourLetoffId)) { SaveData(false); } PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/NoFourLetoffAttachUrl&menuId={1}", NoFourLetoffId, BLL.Const.ProjectAccidentHandleMenuId))); }
/// <summary> /// 上传附件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnAttachUrl_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.ContactListId)) { SaveData(BLL.Const.BtnSave); } PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/ContactListAttachUrl&menuId={1}", ContactListId, BLL.Const.ProjectContactListMenuId))); }
/// <summary> /// 回执单上传附件资源 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnUploadResources_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.PunishNoticeId)) { this.SaveData(BLL.Const.BtnSave); } PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/PunishNotice&menuId=" + Const.ProjectPunishNoticeMenuId, this.PunishNoticeId))); }
protected void btnAttachUrlafter_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.hdTestPlanTrainingId.Text)) //新增记录 { this.hdTestPlanTrainingId.Text = SQLHelper.GetNewID(typeof(Model.Check_RectifyNoticesItem)); } if (State == "4") { PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/RectifyNotices&menuId={1}&type=-1", this.hdTestPlanTrainingId.Text + "#1", BLL.Const.ProjectRectifyNoticesMenuId))); } PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/RectifyNotices&menuId={1}&type=0", this.hdTestPlanTrainingId.Text + "#1", BLL.Const.ProjectRectifyNoticesMenuId))); }
/// <summary> /// 上传附件资源 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnUploadResources_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.RectifyNoticeId)) { if (this.drpUnitId.SelectedValue == BLL.Const._Null) { Alert.ShowInTop("请选择责任单位!", MessageBoxIcon.Warning); return; } SaveData(false); } PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/RectifyNotice&menuId=0038D764-D628-46F0-94FF-D0A22C3C45A3", this.RectifyNoticeId))); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnNoticeUrl_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(this.PauseNoticeId)) { var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.ProjectPauseNoticeMenuId); if (buttonList.Count() > 0) { PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader.aspx?toKeyId={0}&type=0&path=FileUpload/PauseNotice&menuId=" + BLL.Const.ProjectPauseNoticeMenuId, this.PauseNoticeId))); } else { PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/PauseNotice&menuId=" + BLL.Const.ProjectPauseNoticeMenuId, this.PauseNoticeId))); } } }
/// <summary> /// 上传附件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnAttachUrl_Click(object sender, EventArgs e) { if (this.btnSave.Hidden) { PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/MeasuresPlanAttachUrl&type=-1", this.MeasuresPlanId, BLL.Const.ProjectMeasuresPlanMenuId))); } else { if (string.IsNullOrEmpty(this.MeasuresPlanId)) { if (this.drpUnitId.SelectedValue == BLL.Const._Null) { Alert.ShowInTop("请选择单位名称!", MessageBoxIcon.Warning); return; } SaveData(); } PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/MeasuresPlanAttachUrl&menuId={1}", this.MeasuresPlanId, BLL.Const.ProjectMeasuresPlanMenuId))); } }
/// <summary> /// 上传附件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnAttachUrl_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.AccidentPersonRecordId)) { if (this.drpAccidentTypeId.SelectedValue == BLL.Const._Null) { Alert.ShowInTop("请选择事故类别!", MessageBoxIcon.Warning); return; } if (this.drpWorkAreaId.SelectedValue == BLL.Const._Null) { Alert.ShowInTop("请选择发生区域!", MessageBoxIcon.Warning); return; } if (this.drpPersonId.SelectedValue == BLL.Const._Null) { Alert.ShowInTop("请选择人员姓名!", MessageBoxIcon.Warning); return; } this.SaveData(BLL.Const.BtnSave); } PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/AccidentPersonRecordAttachUrl&menuId={1}", this.AccidentPersonRecordId, BLL.Const.ProjectAccidentPersonRecordMenuId))); }
/// <summary> /// 上传附件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnUrl_Click(object sender, EventArgs e) { string window = String.Format("HSSECostUnitManageRatifiedItemView.aspx?HSSECostUnitManageId={0}&Type={1}", this.HSSECostUnitManageId, ((FineUIPro.ControlBase)sender).ID.Replace("btn", ""), "增加 - "); PageContext.RegisterStartupScript(WindowAtt.GetShowReference(window)); }
/// <summary> /// 通知单上传附件资源 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnPunishNoticeUrl_Click(object sender, EventArgs e) { PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/PunishNoticeStatistics&type=-1&menuId=" + BLL.Const.ProjectPunishNoticeStatisticsMenuId, this.PunishNoticeId))); }
/// <summary> /// 上传附件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnHandleAttachUrl_Click(object sender, EventArgs e) { PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CheckDayXA&menuId={1}&type=-1", this.CheckDayId + "1", BLL.Const.ProjectCheckDayXAMenuId))); }
/// <summary> /// 上传附件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnAttachUrl_Click(object sender, EventArgs e) { PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CheckHoliday&menuId={1}", this.CheckHolidayDetailId, BLL.Const.ProjectCheckHolidayMenuId))); }