コード例 #1
0
        /// <summary>
        /// 加载页面
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                hdAttachUrl.Text       = string.Empty;
                hdId.Text              = string.Empty;
                btnClose.OnClientClick = ActiveWindow.GetHideReference();

                checkSpecialDetails.Clear();

                this.CheckSpecialId = Request.Params["CheckSpecialId"];
                var checkSpecial = BLL.Check_CheckSpecialService.GetCheckSpecialByCheckSpecialId(this.CheckSpecialId);
                if (checkSpecial != null)
                {
                    this.txtCheckSpecialCode.Text = BLL.CodeRecordsService.ReturnCodeByDataId(this.CheckSpecialId);
                    if (checkSpecial.CheckTime != null)
                    {
                        this.txtCheckDate.Text = string.Format("{0:yyyy-MM-dd}", checkSpecial.CheckTime);
                    }

                    this.txtPartInPersonNames.Text = checkSpecial.PartInPersonNames;
                    this.txtSupCheckItemSet.Text   = Technique_CheckItemSetService.GetCheckItemSetNameById(checkSpecial.CheckItemSetId);
                    this.txtPartInPersons.Text     = checkSpecial.PartInPersons;
                    checkSpecialDetails            = (from x in Funs.DB.View_CheckSpecialDetail
                                                      where x.CheckSpecialId == this.CheckSpecialId
                                                      orderby x.CheckItem select x).ToList();
                }
                Grid1.DataSource = checkSpecialDetails;
                Grid1.DataBind();
            }
        }
コード例 #2
0
 private void getCheckItemDrp()
 {
     this.drpCheckItem.Items.Clear();
     Technique_CheckItemSetService.InitCheckItemSetNameDropDownList(this.drpCheckItem, "2", this.drpSupCheckItemSet.SelectedValue, false);
     checkSpecialDetails.Clear();
     Grid1.DataSource = checkSpecialDetails;
     Grid1.DataBind();
 }
コード例 #3
0
        /// <summary>
        ///  初始化下拉框
        /// </summary>
        private void InitDropDownList()
        {
            //检查组成员
            UserService.InitUserDropDownList(this.drpPartInPersons, this.ProjectId, true);

            checkSpecialDetails.Clear();
            ConstValue.InitConstNameDropDownList(this.drpHandleStep, ConstValue.Group_HandleStep, true);

            Technique_CheckItemSetService.InitCheckItemSetDropDownList(this.drpSupCheckItemSet, "2", "0", false);
            this.getCheckItemDrp();
            ///责任单位
            UnitService.InitUnitNameByProjectIdUnitTypeDropDownList(this.drpWorkUnit, this.ProjectId, Const.ProjectUnitType_2, false);
        }