public DataTable BankSearch(bank_Prop bankprop)
 {
     try
     {
         return(SqlHelper.ExecuteDataset(com.con, "usp_Bank_search", new object[] { bankprop.BankCode, bankprop.BankName }).Tables[0]);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
 public string BankDelete(bank_Prop bankprop)
 {
     try
     {
         return(SqlHelper.ExecuteDataset(com.con, "usp_Bank_delete", new object[] { bankprop.BankCode }).Tables[0].Rows[0][0].ToString());
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Ejemplo n.º 3
0
 public string BankInsert(bank_Prop bankprop)
 {
     try
     {
         return(SqlHelper.ExecuteDataset(com.con, "usp_bank_insert", new object[] { bankprop.BankCode, bankprop.BankName }).Tables[0].Rows[0][0].ToString());
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Ejemplo n.º 4
0
 public DataTable BankSearch(bank_Prop bankprop)
 {
     try
     {
         bankdal = new bank_dal();
         DataTable dt = bankdal.BankSearch(bankprop);
         return(dt);
     }
     catch (Exception e)
     {
         ErrMessage = e.Message;
         return(null);
     }
 }
Ejemplo n.º 5
0
 public string BankDelete(bank_Prop bankprop)
 {
     try
     {
         bankdal = new bank_dal();
         string strMsg = bankdal.BankDelete(bankprop);
         return(strMsg);
     }
     catch (Exception e)
     {
         ErrMessage = e.Message;
         return("");
     }
 }