Пример #1
0
    private void bind(string pk)
    {
        CheckInfo checkInfo = CheckAction.GetCheckInfo(pk);

        this.TextBox_jcdw.Text             = checkInfo.ExamineUnit;
        this.TextBox_sjdw.Text             = checkInfo.AcceptCheckUnit;
        this.TextBox_jcnr.Text             = checkInfo.AcceptCheckContent;
        this.TextBox_jcyj.Text             = checkInfo.AcceptCheckGist;
        this.DropDownList_lb.SelectedValue = checkInfo.AcceptCheckSort.ToString();
        this.TextBox_jcfzr.Text            = checkInfo.AcceptCheckAnswerForPerson;
        this.DateBox_jcrq.Text             = checkInfo.AcceptCheckDate.ToString("d");
        this.Textbox_jcjg.Text             = checkInfo.AcceptCheckResult;
        this.Textbox_zgnr.Text             = checkInfo.CompleteApplyContent;
        this.Textbox_bz.Text                = checkInfo.Remark;
        this.DateBox_yqwcsj.Text            = checkInfo.requestfinishtime.ToString("d");
        this.DateBox_jhwcsj.Text            = checkInfo.planfinishtime.ToString("d");
        this.DateBox_sjwcsj.Text            = checkInfo.factfinishtime.ToString("d");
        this.TextBox_sjjg.Text              = checkInfo.factresult;
        this.TextBox_xmjh.Text              = checkInfo.prjplan;
        this.ddlCheckResult.SelectedValue   = checkInfo.CheckResult.ToString();
        this.ddlCertifiResult.SelectedValue = checkInfo.CertifiResult.ToString();
        this.ddlCheckResults.SelectedValue  = checkInfo.checkResults.ToString();
        this.DDTClass.SelectedValue         = checkInfo.FilesType.ToString();
        this.ViewState["Mark"]              = checkInfo.Mark.ToString();
        if (checkInfo.Mark.ToString() != "2")
        {
            this.cbkmark.Checked = true;
        }
        else
        {
            this.cbkmark.Checked = false;
        }
        this.rectifyMarkID = checkInfo.RectifyMarkID;
    }
Пример #2
0
    private void bind(string pk)
    {
        CheckInfo checkInfo = CheckAction.GetCheckInfo(pk);
        DateTime  now       = DateTime.Now;

        this.DateBox_sprq.Text = string.Format("{0:yyyy-MM-dd}", now);
        this.TextBox_spyj.Text = checkInfo.ExamineApproveIdea;
        this.TextBox_spr.Text  = checkInfo.ExamineApprovePerson;
        if (checkInfo.ExamineApproveResult == 1)
        {
            this.RadioButton_ok.Checked = true;
            return;
        }
        if (checkInfo.ExamineApproveResult == 0)
        {
            this.RadioButton_no.Checked = true;
        }
    }