예제 #1
0
        private void ShowInfo(int id)
        {
            Maticsoft.BLL.account        bll   = new Maticsoft.BLL.account();
            Maticsoft.Model.account      model = bll.GetModel(id);
            Maticsoft.BLL.account_detail ac_d  = new BLL.account_detail();
            dt_all = ac_d.GetList(500, "", " id desc").Tables[0];
            //leibie.SelectedIndex = 1;
            leibie.SelectedValue = model.leibei.ToString().Trim();
            this.lblid.Text      = model.id.ToString();
            this.txtname.Text    = model.name;
            lururen.Text         = model.lururen;
            lurushijian.Text     = model.time.ToString();
            this.txtbeizhu.Text  = model.beizhu;
            this.txtbeizhu2.Text = model.beizhu2;

            Maticsoft.BLL.peixunban1 pei_bll = new Maticsoft.BLL.peixunban1();
            DataSet ds = new DataSet();

            ds = pei_bll.GetList("");
            qishu.DataSource     = ds;
            qishu.DataTextField  = "name";
            qishu.DataValueField = "id";
            qishu.DataBind();
            //qishu.SelectedValue = model.peixunban_id.ToString();
            if (model.peixunban_id != 0)
            {
                qishu.Items.FindByValue(model.peixunban_id.ToString()).Selected = true;
            }
            else
            {
                qishu.Enabled = false;
            }
        }
예제 #2
0
 private void ShowInfo(int id)
 {
     Maticsoft.BLL.account   bll   = new Maticsoft.BLL.account();
     Maticsoft.Model.account model = bll.GetModel(id);
     this.lblid.Text      = model.id.ToString();
     this.lblname.Text    = model.name;
     this.lblleibei.Text  = model.leibei;
     this.lbllururen.Text = model.lururen;
     this.lbltime.Text    = model.time.ToString();
     if (model.peixunban_id != 0)
     {
         Maticsoft.BLL.peixunban1   pei_bll = new BLL.peixunban1();
         Maticsoft.Model.peixunban1 pei_mol = new Model.peixunban1();
         pei_mol = pei_bll.GetModel(Convert.ToInt16(model.peixunban_id));
         this.lblpeixunban_id.Text = pei_mol.name;
     }
     this.lblbeizhu.Text = model.beizhu;
 }