Ejemplo n.º 1
0
        public OCA.Common.DataSets.Kartabl.Attach GetAttaches(string Mail_Num)
        {
            sda = new SqlDataAdapter(" select * from Tbl_Attach WHERE Mail_Num = " + Mail_Num.Replace("ی", "ي"), conn);

            try
            {
                dsattach.Clear();

                if (conn.State == ConnectionState.Closed)
                {
                    conn.Open();
                }

                sda.Fill(dsattach.Tbl_Attach);

                return(dsattach);
            }
            catch
            {
                throw new Exception("خطا در ارتباط با بانک اطلاعاتی!");
            }
            finally
            {
                conn.Close();
            }
        }
Ejemplo n.º 2
0
 public OCA.Common.DataSets.Kartabl.Attach GetAttaches(string Mail_Num)
 {
     try
     {
         dsattach.Clear();
         dsattach = mailclass.GetAttaches(Mail_Num);
         return(dsattach);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }