Beispiel #1
0
 protected void DisplayRecard()
 {
     try
     {
         DataSet            ds                    = null;
         JMMMedicalHist     objJmmMedical         = new JMMMedicalHist();
         usrMedLogBasicSrch objusrMedLogBasicSrch = (usrMedLogBasicSrch)this.tabMedLogSrch.Tabs.FindTabFromKey("BSC").FindControl("usrMedLogBasicSrch1");
         objusrMedLogBasicSrch.ReadScr(ref objJmmMedical);
         JmmMedPresHistBL objMedPresHistBL = new JmmMedPresHistBL();
         ds = objMedPresHistBL.SearchAllMedication(objJmmMedical);
         if (ds.Tables[0].Rows.Count == 0)
         {
             DispScr(false);
             ShowMsg(MsgType.Info, FrwkMsg.NO_RECORD_FOUND);
         }
         else
         {
             grdMedLog.DataSource = ds;
             grdMedLog.DataBind();
             DispScr(true);
         }
     }
     catch (Exception objErr)
     {
         throw objErr;
     }
 }
Beispiel #2
0
 private DataSet GetData(bool blnExcel)
 {
     try
     {
         JMMMedicalHist     objJmmMedical         = new JMMMedicalHist();
         usrMedLogBasicSrch objusrMedLogBasicSrch = (usrMedLogBasicSrch)this.tabMedLogSrch.Tabs.FindTabFromKey("BSC").FindControl("usrMedLogBasicSrch1");
         objusrMedLogBasicSrch.ReadScr(ref objJmmMedical);
         JmmMedPresHistBL objMedPresHistBL = new JmmMedPresHistBL();
         return(objMedPresHistBL.SearchAllMedication(objJmmMedical));
     }
     catch (Exception objError)
     {
         throw objError;
     }
 }