示例#1
0
 public static DataTable TruncateExpenses()
 {
     try
     {
         DataKernal.Expenses objExpenses = new DataKernal.Expenses();
         return(objExpenses.ExpensesTruncate().Tables[0]);
     }
     catch (System.Exception ex)
     {
         return(null);
     }
 }
示例#2
0
 public static DataTable DeleteExpenses(int intClassID)
 {
     try
     {
         DataKernal.Expenses objExpenses = new DataKernal.Expenses();
         return(objExpenses.DeleteExpenses(intClassID).Tables[0]);
     }
     catch (System.Exception ex)
     {
         return(null);
     }
 }
示例#3
0
 public static DataTable GetAllExpenses()
 {
     try
     {
         DataKernal.Expenses objExpenses = new DataKernal.Expenses();
         return(objExpenses.SelectExpenses().Tables[0]);
     }
     catch (System.Exception ex)
     {
         return(null);
     }
 }
示例#4
0
 public static DataTable InsertUpdateExpenses(BusinessEntities.Expenses objExpenses)
 {
     try
     {
         DataKernal.Expenses objDExpenses = new DataKernal.Expenses();
         return(objDExpenses.InsertUpdateExpenses(objExpenses.ExpensesID, objExpenses.ExpenseName, objExpenses.ExpenseType, objExpenses.DateCreated, objExpenses.IsEnabled, objExpenses.Remarks, objExpenses.UserID).Tables[0]);
     }
     catch (System.Exception ex)
     {
         return(null);
     }
 }