Esempio n. 1
0
        public System.Data.DataTable GetData(PRPDCAP.CAPStatus Status1, PRPDCAP.CAPStatus Status2)
        {
            tblPRPDCAPTableAdapter da = new tblPRPDCAPTableAdapter();

            da.Connection = Connection;
            try
            {
                return(da.GetDataByApprove(Convert.ToInt32(Status1), Convert.ToInt32(Status2)));
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message, ex);
            }
            finally
            {
                da.Dispose();
            }
        }
Esempio n. 2
0
        public System.Data.DataTable GetDataByID(long PRPDCAPID)
        {
            tblPRPDCAPTableAdapter da = new tblPRPDCAPTableAdapter();

            da.Connection = Connection;
            try
            {
                return(da.GetDataByID(PRPDCAPID));
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message, ex);
            }
            finally
            {
                da.Dispose();
            }
        }
Esempio n. 3
0
 public PRPDCAP_DL(SqlConnection Conn)
 {
     Connection    = Conn;
     da            = new tblPRPDCAPTableAdapter();
     da.Connection = Connection;
 }