Beispiel #1
0
 private void Bind()
 {
     model               = manage.GetModel(Request["ID"].ToString());
     txtDictName.Text    = model.DICTIONARYNAME;
     txtParent.Text      = model.PARENTID;
     txtDictCode.Text    = model.DICTIONARYVALUE;
     txtDescription.Text = model.DESCRIPTION;
     txtDictList.Text    = model.SORTLIST.ToString();
     if (model.PARENTID != null)
     {
         model            = new E_Model.Dictionary();
         txtParentID.Text = manage.GetModel(txtParent.Text).DICTIONARYNAME;
     }
 }
Beispiel #2
0
 private void Bind(string ID)
 {
     model               = manage.GetModel(ID);
     txtDeptName.Text    = model.DICTIONARYNAME;
     txtID.Text          = model.ID;
     txtParent.Text      = model.PARENTID;
     txtDeptCode.Text    = model.DICTIONARYVALUE;
     txtDescription.Text = model.DESCRIPTION;
     if (model.PARENTID != null)
     {
         model            = new E_Model.Dictionary();
         txtParentID.Text = manage.GetModel(txtParent.Text).DICTIONARYNAME;
     }
 }