private void SetDepYearMonth()
 {
     XTHospital.COM.ReturnValue resoult = null;
     XTHospital.BLL.BLL_LoginUser bll = new XTHospital.BLL.BLL_LoginUser();
     try
     {
         resoult = bll.GetYearMonth();
     }
     catch
     {
         Response.Redirect("ErrorPage.aspx");
         return;
     }
     if (resoult.ErrorFlag)
     {
         //YearMonthHashTable.Clear();
         //for (int i = 0; i < resoult.ResultDataSet.Tables[0].Rows.Count; i++)
         //{
         //    YearMonthHashTable.Add(resoult.ResultDataSet.Tables[0].Rows[i]["SelectYearMonthValue"].ToString(), resoult.ResultDataSet.Tables[0].Rows[i]["SelectYearMonth"].ToString());
         //}
         this.drpYearMonth.DataSource = resoult.ResultDataSet.Tables[0];
         this.drpYearMonth.DataTextField = "SelectYearMonthValue";
         this.drpYearMonth.DataValueField = "SelectYearMonthValue";
         this.drpYearMonth.DataBind();
     }
     else
     {
         LiteralMsg.Text = resoult.ErrorID;
         LiteralMsg.DataBind();
     }
 }
Exemplo n.º 2
0
 public ReturnValue GetYearMonth()
 {
     BLL_LoginUser bll = new BLL_LoginUser();
     return bll.GetYearMonth();
 }