コード例 #1
0
 /// <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)));
     }
 }
コード例 #2
0
 /// <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)));
     }
 }
コード例 #3
0
 /// <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)));
     }
 }
コード例 #4
0
 /// <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)));
     }
 }
コード例 #5
0
 /// <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)));
 }
コード例 #6
0
 /// <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)));
 }
コード例 #7
0
 /// <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)));
 }
コード例 #8
0
 /// <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)));
 }
コード例 #9
0
ファイル: ContactListEdit.aspx.cs プロジェクト: klniu/SUBHSSE
 /// <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)));
 }
コード例 #10
0
        /// <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)));
        }
コード例 #11
0
 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)));
 }
コード例 #12
0
 /// <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)));
 }
コード例 #13
0
ファイル: PauseNoticeView.aspx.cs プロジェクト: klniu/SUBHSSE
 /// <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)));
         }
     }
 }
コード例 #14
0
 /// <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)));
     }
 }
コード例 #15
0
 /// <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)));
 }
コード例 #16
0
        /// <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));
        }
コード例 #17
0
 /// <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)));
 }
コード例 #18
0
ファイル: CheckDayXAView.aspx.cs プロジェクト: klniu/SUBHSSE
 /// <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)));
 }
コード例 #19
0
 /// <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)));
 }