Exemplo n.º 1
0
    private void bind(string pk)
    {
        SuperviseInfo superviseInfo = SuperviseAction.GetSuperviseInfo(pk);

        this.TextBox_prjname.Text = superviseInfo.PrjName;
        this.TextBox_lxdw.Text    = superviseInfo.StandNapeUnit;
        this.DateBox_lxsj.Text    = superviseInfo.StandNapeDate.ToString("d").Replace("/", "-");
        this.TextBox_lxmc.Text    = superviseInfo.StandNapeName;
        this.TextBox_lxay.Text    = superviseInfo.StandItemRecord;
        switch (superviseInfo.ApproveResult)
        {
        case 0:
            this.TextBox_ldps.Text = "未通过";
            break;

        case 1:
            this.TextBox_ldps.Text = "通过";
            break;

        case 2:
            this.TextBox_ldps.Text = "未审核";
            break;
        }
        this.TextBox_jcjy.Text = superviseInfo.SuperviseAdvice;
        this.TextBox_zgcs.Text = superviseInfo.CompleteApply;
        this.DateBox_jxsj.Text = superviseInfo.KnotItemDate.ToString("d").Replace("/", "-");
        this.TextBox_jcxn.Text = superviseInfo.SuperviseEffciency;
    }
Exemplo n.º 2
0
    private void bind(string pk)
    {
        SuperviseInfo superviseInfo = SuperviseAction.GetSuperviseInfo(pk);

        this.DateBox_sprq.Text = ((superviseInfo.ApproveDate.ToString("d") == "0001/1/1") ? DateTime.Now.ToString("d") : superviseInfo.ApproveDate.ToString("d"));
        this.TextBox_spyj.Text = superviseInfo.ApproveIdea;
        this.TextBox_spr.Text  = superviseInfo.ApprovePerson;
        if (superviseInfo.ApproveResult == 1)
        {
            this.RadioButton_ok.Checked = true;
            return;
        }
        if (superviseInfo.ApproveResult == 0)
        {
            this.RadioButton_no.Checked = true;
        }
    }