コード例 #1
0
ファイル: RectifyNotices.aspx.cs プロジェクト: klniu/SUBHSSE
        /// <summary>
        ///
        /// </summary>
        private void EditData(string rectifyNoticeId)
        {
            bool flag = false;

            Model.Check_RectifyNotices RectifyNotices = RectifyNoticesService.GetRectifyNoticesById(Grid1.SelectedRowID);
            if (RectifyNotices.States == "0" || RectifyNotices.States == "1")
            {
                if (this.CurrUser.UserId == RectifyNotices.CompleteManId || this.CurrUser.UserId == RectifyNotices.SignPerson)
                {
                    flag = true;
                    PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("RectifyNoticesEdit.aspx?RectifyNoticesId={0}", rectifyNoticeId, "编辑 - ")));
                }
            }
            else if (RectifyNotices.States == "2")
            {
                if (this.CurrUser.UserId == RectifyNotices.DutyPersonId)
                {
                    flag = true;
                    PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("RectifyNoticesEdit.aspx?RectifyNoticesId={0}", rectifyNoticeId, "编辑 - ")));
                }
            }
            else if (RectifyNotices.States == "3")
            {
                if (this.CurrUser.UserId == RectifyNotices.UnitHeadManId)
                {
                    flag = true;
                    PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("RectifyNoticesEdit.aspx?RectifyNoticesId={0}", rectifyNoticeId, "编辑 - ")));
                }
            }
            else if (RectifyNotices.States == "4")
            {
                if (this.CurrUser.UserId == RectifyNotices.CheckPerson)
                {
                    flag = true;
                    PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("RectifyNoticesEdit.aspx?RectifyNoticesId={0}", rectifyNoticeId, "编辑 - ")));
                }
            }
            else
            {
                PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("RectifyNoticesView.aspx?RectifyNoticesId={0}", rectifyNoticeId, "查看 - ")));
            }
            if (!flag)
            {
                PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("RectifyNoticesView.aspx?RectifyNoticesId={0}", rectifyNoticeId, "查看 - ")));
            }
        }
コード例 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         txtProjectName.Text = BLL.ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId).ProjectName;
         ////自动生成编码
         this.txtRectifyNoticesCode.Text = BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(BLL.Const.ProjectRectifyNoticesMenuId, this.CurrUser.LoginProjectId, this.CurrUser.UnitId);
         //受检单位
         BLL.UnitService.InitUnitByProjectIdUnitTypeDropDownList(this.drpUnitId, this.CurrUser.LoginProjectId, Const.ProjectUnitType_2, false);
         //区域
         BLL.WorkAreaService.InitWorkAreaDropDownList(this.drpWorkAreaId, this.CurrUser.LoginProjectId, true);
         ///检察人员
         BLL.UserService.InitFlowOperateControlUserDropDownList(this.drpCheckPerson, this.CurrUser.LoginProjectId, BLL.CommonService.GetIsThisUnitId(), true);
         RectifyNoticesId = Request.Params["RectifyNoticesId"];
         if (!string.IsNullOrEmpty(RectifyNoticesId))
         {
             Model.Check_RectifyNotices RectifyNotices = RectifyNoticesService.GetRectifyNoticesById(RectifyNoticesId);
             if (!string.IsNullOrEmpty(RectifyNotices.UnitId))
             {
                 this.drpUnitId.SelectedValue = RectifyNotices.UnitId;
             }
             if (!string.IsNullOrEmpty(RectifyNotices.WorkAreaId))
             {
                 this.drpWorkAreaId.SelectedValue = RectifyNotices.WorkAreaId;
             }
             if (!string.IsNullOrEmpty(RectifyNotices.CheckManIds))
             {
                 this.drpCheckPerson.SelectedValueArray = RectifyNotices.CheckManIds.Split(',');
             }
             this.txtRectifyNoticesCode.Text = RectifyNotices.RectifyNoticesCode;
             this.txtCompleteDate.Text       = RectifyNotices.CompleteDate.ToString();
             if (!string.IsNullOrEmpty(RectifyNotices.HiddenHazardType))
             {
                 this.drpHiddenHazardType.SelectedValue = RectifyNotices.HiddenHazardType;
             }
             this.txtReCheckOpinion.Text = RectifyNotices.ReCheckOpinion;
             BindGrid1();
             BindGrid();
         }
     }
 }
コード例 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                ////自动生成编码
                this.txtRectifyNoticesCode.Text = BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(BLL.Const.ProjectRectifyNoticesMenuId, this.ProjectId, this.CurrUser.UnitId);
                //受检单位
                BLL.UnitService.InitUnitByProjectIdUnitTypeDropDownList(this.drpUnitId, this.CurrUser.LoginProjectId, Const.ProjectUnitType_2, false);
                //区域
                BLL.WorkAreaService.InitWorkAreaDropDownList(this.drpWorkAreaId, this.CurrUser.LoginProjectId, true);
                ///安全经理
                BLL.UserService.InitFlowOperateControlUserDropDownList(this.drpSignPerson, this.CurrUser.LoginProjectId, BLL.CommonService.GetIsThisUnitId(), true);

                ///检察人员
                BLL.UserService.InitFlowOperateControlUserDropDownList(this.drpCheckPerson, this.CurrUser.LoginProjectId, BLL.CommonService.GetIsThisUnitId(), true);
                RectifyNoticesId = Request.Params["RectifyNoticesId"];
                if (!string.IsNullOrEmpty(RectifyNoticesId))
                {
                    this.hdRectifyNoticesId.Text = RectifyNoticesId;
                    Model.Check_RectifyNotices RectifyNotices = RectifyNoticesService.GetRectifyNoticesById(RectifyNoticesId);
                    if (!string.IsNullOrEmpty(RectifyNotices.UnitId))
                    {
                        this.drpUnitId.SelectedValue = RectifyNotices.UnitId;
                    }
                    if (!string.IsNullOrEmpty(RectifyNotices.WorkAreaId))
                    {
                        this.drpWorkAreaId.SelectedValue = RectifyNotices.WorkAreaId;
                    }
                    if (!string.IsNullOrEmpty(RectifyNotices.CheckManIds))
                    {
                        this.drpCheckPerson.SelectedValueArray = RectifyNotices.CheckManIds.Split(',');
                    }
                    this.txtRectifyNoticesCode.Text = RectifyNotices.RectifyNoticesCode;
                    this.txtCompleteDate.Text       = RectifyNotices.CompleteDate.ToString();
                    if (!string.IsNullOrEmpty(RectifyNotices.HiddenHazardType))
                    {
                        this.drpHiddenHazardType.SelectedValue = RectifyNotices.HiddenHazardType;
                    }
                    if (!string.IsNullOrEmpty(RectifyNotices.States))
                    {
                        State = RectifyNotices.States;
                    }
                    else
                    {
                        State             = "0";
                        this.next1.Hidden = true;
                        this.next2.Hidden = true;
                        this.next3.Hidden = true;
                        this.next4.Hidden = true;
                    }
                    if (State == "0")
                    {
                        this.next1.Hidden = true;
                        this.next2.Hidden = true;
                        this.next3.Hidden = true;
                        this.next4.Hidden = true;
                    }
                    if (State == "1")
                    {
                        this.next.Hidden        = true;
                        this.next2.Hidden       = true;
                        this.next3.Hidden       = true;
                        this.next4.Hidden       = true;
                        this.Itemcontent.Hidden = true;
                        this.btnSure.Hidden     = true;
                        BLL.UserService.InitUserProjectIdUnitIdDropDownList(this.drpDutyPerson, this.CurrUser.LoginProjectId, this.drpUnitId.SelectedValue, true);                     //接收人
                        BLL.UserService.InitFlowOperateControlUserDropDownList(this.drpProfessionalEngineer, this.CurrUser.LoginProjectId, BLL.CommonService.GetIsThisUnitId(), true); //专业工程师
                        BLL.UserService.InitFlowOperateControlUserDropDownList(this.drpConstructionManager, this.CurrUser.LoginProjectId, BLL.CommonService.GetIsThisUnitId(), true);  //施工经理
                        BLL.UserService.InitFlowOperateControlUserDropDownList(this.drpProjectManager, this.CurrUser.LoginProjectId, BLL.CommonService.GetIsThisUnitId(), true);       //项目经理
                    }
                    else if (State == "2")
                    {
                        this.next.Hidden              = true;
                        this.next1.Hidden             = true;
                        this.next3.Hidden             = true;
                        this.next4.Hidden             = true;
                        this.after.Hidden             = false;
                        this.txtWrongContent.Readonly = true;
                        this.txtRequirement.Readonly  = true;
                        this.txtLimitTime.Readonly    = true;
                        BLL.UserService.InitUserProjectIdUnitIdDropDownList(this.drpUnitHeadManId, this.CurrUser.LoginProjectId, this.drpUnitId.SelectedValue, true);//施工单位负责人
                    }
                    else if (State == "3")
                    {
                        this.next.Hidden        = true;
                        this.next1.Hidden       = true;
                        this.next2.Hidden       = true;
                        this.next4.Hidden       = true;
                        this.Itemcontent.Hidden = true;
                        this.btnSure.Hidden     = true;
                        BLL.UserService.InitUserProjectIdUnitIdDropDownList(this.drpSignPerson1, this.CurrUser.LoginProjectId, this.drpUnitId.SelectedValue, true);//复查人
                    }
                    else if (State == "4")
                    {
                        this.next.Hidden                = true;
                        this.next1.Hidden               = true;
                        this.next2.Hidden               = true;
                        this.next3.Hidden               = true;
                        this.end.Hidden                 = false;
                        this.after.Hidden               = false;
                        this.txtWrongContent.Readonly   = true;
                        this.txtRequirement.Readonly    = true;
                        this.txtLimitTime.Readonly      = true;
                        this.txtRectifyResults.Readonly = true;
                        Funs.FineUIPleaseSelect(drpIsRectify);
                    }
                    else if (State == "5")
                    {
                        this.next.Hidden        = true;
                        this.next1.Hidden       = true;
                        this.next2.Hidden       = true;
                        this.next3.Hidden       = true;
                        this.Itemcontent.Hidden = true;
                    }
                }
                else
                {
                    this.txtCompleteDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
                    State             = "0";
                    this.next1.Hidden = true;
                    this.next2.Hidden = true;
                    this.next3.Hidden = true;
                    this.next3.Hidden = true;
                    this.next4.Hidden = true;
                }

                BindGrid();
            }
        }
コード例 #4
0
        /// <summary>
        /// 保存方法
        /// </summary>
        /// <param name="saveType"></param>
        private void SavePauseNotice(string saveType)
        {
            Model.Check_RectifyNotices Notices = new Model.Check_RectifyNotices();
            Notices.RectifyNoticesCode = this.txtRectifyNoticesCode.Text.Trim();
            Notices.ProjectId          = this.CurrUser.LoginProjectId;
            if (this.drpUnitId.SelectedValue != BLL.Const._Null)
            {
                Notices.UnitId = this.drpUnitId.SelectedValue;
            }
            if (this.drpWorkAreaId.SelectedValue != BLL.Const._Null)
            {
                Notices.WorkAreaId = this.drpWorkAreaId.SelectedValue;
            }
            if (this.drpCheckPerson.SelectedValue != BLL.Const._Null)
            {
                string str      = GetStringByArray(this.drpCheckPerson.SelectedValueArray);
                string UserName = string.Empty;
                if (!string.IsNullOrEmpty(str))
                {
                    string[] seeUsers = str.Split(',');
                    foreach (var seeUser in seeUsers)
                    {
                        if (!string.IsNullOrEmpty(seeUser))
                        {
                            UserName += BLL.UserService.getUserNamesUserIds(seeUser) + ",";
                        }
                    }
                    if (!string.IsNullOrEmpty(UserName))
                    {
                        UserName = UserName.Substring(0, UserName.LastIndexOf(","));
                    }
                }
                Notices.CheckManNames = UserName;
                Notices.CheckManIds   = str;
            }
            if (this.drpSignPerson.SelectedValue != BLL.Const._Null)
            {
                Notices.SignPerson = this.drpSignPerson.SelectedValue;
            }
            if (!string.IsNullOrEmpty(this.txtCompleteDate.Text.Trim()))
            {
                Notices.CheckedDate = Convert.ToDateTime(this.txtCompleteDate.Text.Trim());
            }
            if (this.drpHiddenHazardType.SelectedValue != BLL.Const._Null)
            {
                Notices.HiddenHazardType = this.drpHiddenHazardType.SelectedValue;
            }
            if (saveType == "submit")
            {
                Notices.States = Convert.ToInt32(Convert.ToInt32(State) + 1).ToString();
            }
            else
            {
                var isUpdate = Funs.DB.Check_RectifyNotices.FirstOrDefault(x => x.RectifyNoticesId == RectifyNoticesId);
                if (isUpdate != null)
                {
                    if (string.IsNullOrEmpty(Notices.States))
                    {
                        Notices.States = State;
                    }
                    else
                    {
                        Notices.States = isUpdate.States;
                    }
                }
                else
                {
                    Notices.States = State;
                }
            }
            if (!string.IsNullOrEmpty(RectifyNoticesId))
            {
                Model.Check_RectifyNotices isUpdate = RectifyNoticesService.GetRectifyNoticesById(RectifyNoticesId);
                if (Notices.States == "0" || Notices.States == "1")  ////编制人 修改或提交
                {
                    isUpdate.UnitId           = this.drpUnitId.SelectedValue;
                    isUpdate.WorkAreaId       = this.drpWorkAreaId.SelectedValue;
                    isUpdate.CheckManNames    = BLL.UserService.GetUserNameByUserId(this.CurrUser.UserId);
                    isUpdate.CheckManIds      = this.CurrUser.UserId;
                    isUpdate.CheckedDate      = Funs.GetNewDateTime(this.txtCompleteDate.Text.Trim());
                    isUpdate.HiddenHazardType = this.drpHiddenHazardType.SelectedValue;
                    if (Notices.States == "1" && !string.IsNullOrEmpty(Notices.SignPerson))
                    {
                        isUpdate.SignPerson = Notices.SignPerson;
                        isUpdate.States     = "1";
                    }
                    BLL.Funs.DB.SubmitChanges();
                    Model.Check_RectifyNoticesFlowOperate newOItem = new Model.Check_RectifyNoticesFlowOperate
                    {
                        FlowOperateId    = SQLHelper.GetNewID(typeof(Model.Check_RectifyNoticesFlowOperate)),
                        RectifyNoticesId = isUpdate.RectifyNoticesId,
                        OperateName      = "检查人员下发整改单",
                        OperateManId     = CurrUser.UserId,
                        OperateTime      = DateTime.Now,
                    };
                    BLL.Funs.DB.Check_RectifyNoticesFlowOperate.InsertOnSubmit(newOItem);
                    BLL.Funs.DB.SubmitChanges();
                }
                else if (Notices.States == "2") ////总包单位项目安全经理 审核
                {
                    /// 不同意 打回 同意抄送专业工程师、施工经理、项目经理 并下发分包接收人(也就是施工单位项目安全经理)
                    if (this.rdbIsAgree.SelectedValue.Equals("false"))
                    {
                        Notices.States = isUpdate.States = "0";
                    }
                    else
                    {
                        if (this.drpProfessionalEngineer.SelectedValue != BLL.Const._Null)
                        {
                            isUpdate.ProfessionalEngineerId = this.drpProfessionalEngineer.SelectedValue;
                        }
                        if (this.drpConstructionManager.SelectedValue != BLL.Const._Null)
                        {
                            isUpdate.ConstructionManagerId = this.drpConstructionManager.SelectedValue;
                        }
                        if (this.drpProjectManager.SelectedValue != BLL.Const._Null)
                        {
                            isUpdate.ProjectManagerId = this.drpProjectManager.SelectedValue;
                        }
                        if (this.drpDutyPerson.SelectedValue != BLL.Const._Null)
                        {
                            isUpdate.DutyPersonId   = this.drpDutyPerson.SelectedValue;
                            isUpdate.DutyPerson     = this.drpDutyPerson.SelectedValue;
                            isUpdate.SignDate       = DateTime.Now;
                            isUpdate.DutyPersonTime = DateTime.Now;
                        }
                        Notices.States = isUpdate.States = "2";
                        BLL.Funs.DB.SubmitChanges();
                    }
                    Model.Check_RectifyNoticesFlowOperate newOItem = new Model.Check_RectifyNoticesFlowOperate
                    {
                        FlowOperateId    = SQLHelper.GetNewID(typeof(Model.Check_RectifyNoticesFlowOperate)),
                        RectifyNoticesId = isUpdate.RectifyNoticesId,
                        OperateName      = "总包单位项目安全经理签发",
                        OperateManId     = CurrUser.UserId,
                        Opinion          = reason.Text,
                        IsAgree          = Convert.ToBoolean(this.rdbIsAgree.SelectedValue),
                        OperateTime      = DateTime.Now,
                    };
                    BLL.Funs.DB.Check_RectifyNoticesFlowOperate.InsertOnSubmit(newOItem);
                    BLL.Funs.DB.SubmitChanges();
                }
                else if (Notices.States == "3") /// 施工单位项目安全经理 整改 提交施工单位项目负责人
                {
                    //// 整改明细反馈
                    var getViewList = this.CollectGridInfo();
                    if (getViewList != null && getViewList.Count() > 0)
                    {
                        foreach (var rItem in getViewList)
                        {
                            var getUpdateItem = Funs.DB.Check_RectifyNoticesItem.FirstOrDefault(x => x.RectifyNoticesItemId == rItem.RectifyNoticesItemId);
                            if (getUpdateItem != null)
                            {
                                getUpdateItem.RectifyResults = rItem.RectifyResults;
                                //if (getUpdateItem.IsRectify != true)
                                //{
                                //    getUpdateItem.IsRectify = null;
                                //}
                                Funs.DB.SubmitChanges();
                            }
                        }
                    }

                    if (this.drpUnitHeadManId.SelectedValue != BLL.Const._Null)
                    {
                        isUpdate.UnitHeadManId = this.drpUnitHeadManId.SelectedValue;
                        isUpdate.CompleteDate  = DateTime.Now;
                        Notices.States         = isUpdate.States = "3";
                    }
                    Funs.DB.SubmitChanges();
                    Model.Check_RectifyNoticesFlowOperate newOItem = new Model.Check_RectifyNoticesFlowOperate
                    {
                        FlowOperateId    = SQLHelper.GetNewID(typeof(Model.Check_RectifyNoticesFlowOperate)),
                        RectifyNoticesId = isUpdate.RectifyNoticesId,
                        OperateName      = "责任人整改",
                        OperateManId     = CurrUser.UserId,
                        OperateTime      = DateTime.Now,
                    };
                    BLL.Funs.DB.Check_RectifyNoticesFlowOperate.InsertOnSubmit(newOItem);
                    BLL.Funs.DB.SubmitChanges();
                }
                else if (Notices.States == "4")
                { /// 施工单位项目负责人不同意 打回施工单位项目安全经理,同意提交安全经理/安全工程师复查
                    if (this.rdbUnitHeadManAgree.SelectedValue.Equals("false"))
                    {
                        Notices.States        = isUpdate.States = "2";
                        isUpdate.CompleteDate = null;
                    }
                    else
                    {
                        if (drpSignPerson1.SelectedValue != BLL.Const._Null)
                        {
                            isUpdate.UnitHeadManDate = DateTime.Now;
                            isUpdate.CheckPerson     = drpSignPerson1.SelectedValue;
                            Notices.States           = isUpdate.States = "4";
                        }
                        Funs.DB.SubmitChanges();
                    }
                    Model.Check_RectifyNoticesFlowOperate newOItem = new Model.Check_RectifyNoticesFlowOperate
                    {
                        FlowOperateId    = SQLHelper.GetNewID(typeof(Model.Check_RectifyNoticesFlowOperate)),
                        RectifyNoticesId = isUpdate.RectifyNoticesId,
                        OperateName      = "施工单位项目负责人审核",
                        OperateManId     = CurrUser.UserId,
                        Opinion          = this.reason1.Text,
                        IsAgree          = Convert.ToBoolean(this.rdbUnitHeadManAgree.SelectedValue),
                        OperateTime      = DateTime.Now,
                    };
                    BLL.Funs.DB.Check_RectifyNoticesFlowOperate.InsertOnSubmit(newOItem);
                    BLL.Funs.DB.SubmitChanges();
                }
                else if (Notices.States == "5")
                {  ////安全经理/安全工程师 同意关闭,不同意打回施工单位项目安全经理
                    isUpdate.ReCheckOpinion = drpReCheckOpinion.SelectedValue;
                    if (this.drpReCheckOpinion.SelectedValue.Equals("false"))
                    {
                        Notices.States                     = isUpdate.States = "2";
                        isUpdate.UnitHeadManDate           = null;
                        isUpdate.CompleteDate              = null;
                        isUpdate.ProfessionalEngineerTime2 = null;
                        isUpdate.ConstructionManagerTime2  = null;
                        isUpdate.ProjectManagerTime2       = null;
                    }
                    else
                    {
                        isUpdate.ReCheckDate = DateTime.Now;
                        Notices.States       = isUpdate.States = "5";
                    }
                    Funs.DB.SubmitChanges();
                    //// 整改明细反馈
                    var getViewList = this.CollectGridInfo();
                    if (getViewList != null && getViewList.Count() > 0)
                    {
                        foreach (var rItem in getViewList)
                        {
                            var getUpdateItem = Funs.DB.Check_RectifyNoticesItem.FirstOrDefault(x => x.RectifyNoticesItemId == rItem.RectifyNoticesItemId);
                            if (getUpdateItem != null)
                            {
                                if (this.drpReCheckOpinion.SelectedValue.Equals("false"))
                                {
                                    getUpdateItem.IsRectify = false;
                                }
                                else
                                {
                                    getUpdateItem.IsRectify = true;
                                }

                                Funs.DB.SubmitChanges();
                            }
                        }
                    }
                    bool flag = false;
                    if (this.drpReCheckOpinion.SelectedValue == "整改通过")
                    {
                        flag = true;
                    }
                    Model.Check_RectifyNoticesFlowOperate newOItem = new Model.Check_RectifyNoticesFlowOperate
                    {
                        FlowOperateId    = SQLHelper.GetNewID(typeof(Model.Check_RectifyNoticesFlowOperate)),
                        RectifyNoticesId = isUpdate.RectifyNoticesId,
                        OperateName      = "总包单位安全经理/安全工程师复查",
                        OperateManId     = CurrUser.UserId,
                        Opinion          = this.drpReCheckOpinion.SelectedValue,
                        IsAgree          = flag,
                        OperateTime      = DateTime.Now,
                    };
                    BLL.Funs.DB.Check_RectifyNoticesFlowOperate.InsertOnSubmit(newOItem);
                    BLL.Funs.DB.SubmitChanges();
                }
            }
            else
            {
                if (!string.IsNullOrEmpty(this.hdRectifyNoticesId.Text))
                {
                    Notices.RectifyNoticesId = this.hdRectifyNoticesId.Text;
                }
                else
                {
                    Notices.RectifyNoticesId = SQLHelper.GetNewID(typeof(Model.Check_RectifyNotices));
                }
                Notices.CompleteManId = this.CurrUser.UserId;
                Notices.CompleteDate  = DateTime.Now;
                Notices.Isprint       = "0";
                Notices.Isprintf      = "0";
                Notices.SignPerson    = this.drpSignPerson.SelectedValue;
                RectifyNoticesService.AddRectifyNotices(Notices);
                RectifyNoticesId = Notices.RectifyNoticesId;
                Model.Check_RectifyNotices Notices1 = RectifyNoticesService.GetRectifyNoticesById(RectifyNoticesId);

                Model.Check_RectifyNoticesFlowOperate newOItem = new Model.Check_RectifyNoticesFlowOperate
                {
                    FlowOperateId    = SQLHelper.GetNewID(typeof(Model.Check_RectifyNoticesFlowOperate)),
                    RectifyNoticesId = Notices1.RectifyNoticesId,
                    OperateName      = "检查人员下发整改单",
                    OperateManId     = this.CurrUser.UserId,
                    OperateTime      = DateTime.Now,
                };
                BLL.Funs.DB.Check_RectifyNoticesFlowOperate.InsertOnSubmit(newOItem);
                BLL.Funs.DB.SubmitChanges();

                var getViewList           = this.CollectGridInfo();
                var getRectifyNoticesItem = from x in getViewList
                                            select new Model.Check_RectifyNoticesItem
                {
                    RectifyNoticesItemId = x.RectifyNoticesItemId,
                    RectifyNoticesId     = Notices1.RectifyNoticesId,
                    WrongContent         = x.WrongContent,
                    Requirement          = x.Requirement,
                    LimitTime            = x.LimitTime,
                };
                if (getRectifyNoticesItem.Count() > 0)
                {
                    Funs.DB.Check_RectifyNoticesItem.InsertAllOnSubmit(getRectifyNoticesItem);
                    Funs.DB.SubmitChanges();
                }
            }

            ShowNotify("提交成功!", MessageBoxIcon.Success);
            PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
        }