コード例 #1
0
 public string[] GetApproverEmail(string EmpID)
 {
     string[] email = new string[2];
     try
     {
         DALBase   obj = new DALBase(_config);
         DataSet   ds  = obj.GetApproverEmail("BCL_GETApproverEmail", EmpID);
         DataTable dt  = ds.Tables[0];
         if (dt != null)
         {
             if (dt.Rows.Count > 0)
             {
                 email[0] = dt.Rows[0]["Approvername"].ToString();
                 email[1] = dt.Rows[0]["Emailid"].ToString();
             }
         }
         return(email);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }