Esempio n. 1
0
 //初始化
 public void InitData()
 {
     try
     {
         int id = Convert.ToInt32(Request.QueryString["id"].ToString());
         Common.Entities.Achievement caa = ach.FindAll(id);
         name.Text   = caa.AchievementName;
         agency.Text = agen.FindAgenName(caa.AgencyID);
         unit.Text   = caa.AppraisalUnit;
     }
     catch (Exception ex)
     {
         pm.SaveError(ex, this.Request);
     }
 }
Esempio n. 2
0
 //初始化
 public void InitData()
 {
     try
     {
         Common.Entities.Achievement ach = achieve.FindAll(Convert.ToInt32(Session["AchievementID"]));
         tAchievementName.Text            = ach.AchievementName;
         DropDownListAgency.SelectedValue = agency.FindAgenName(ach.AgencyID);
         if (ach.ProjectName != null)
         {
             tProjectID.Text = (ach.ProjectName);
         }
         else
         {
             tProjectID.Text = "";
         }
         dAppraisalTime.SelectedDate            = ach.AppraisalTime;
         tAppraisalUnit.Text                    = ach.AppraisalUnit;
         tApRemarkRank.Text                     = ach.ApRemarkRank;
         tApprovalNum.Text                      = ach.ApprovalNum;
         dSecrecyLevel.SelectedIndex            = Convert.ToInt32(ach.SecrecyLevel - 1);
         ProjectInNum.Text                      = ach.ProjectInNum;//项目分类编号
         ProjectPeople.Text                     = ach.ProjectPeople;
         FirstFinishedPeople.Text               = ach.FirstFinishedPeople;
         DropDownListProjectForm.SelectedValue  = ach.ProjectForm;  //鉴定形式
         DropDownListProjectLevel.SelectedValue = ach.ProjectLevel; //鉴定水平
         //DropDownListProjectRank.SelectedValue = ach.ProjectRank;//鉴定级别
         //ach.EntryPerson = Session["LoginName"].ToString();
     }
     catch (Exception ex)
     {
         pm.SaveError(ex, this.Request);
     }
 }