コード例 #1
0
 public static void UpdateVariableExpend(variableExpendsTable selectedVariablrExp, EmployeeTable selectedEmployee,
                                         string notes, string name, int cost,
                                         DateTime date, int active)
 {
     if (selectedEmployee != null)
     {
         selectedVariablrExp.EmployeeTable = selectedEmployee;
         selectedVariablrExp.employee_id   = selectedEmployee.Id;
     }
     selectedVariablrExp.notes  = notes;
     selectedVariablrExp.name   = name;
     selectedVariablrExp.cost   = cost;
     selectedVariablrExp.date   = date;
     selectedVariablrExp.active = active;
     db.SaveChanges();
 }
コード例 #2
0
 public static void UpdateVariableExpend(variableExpendsTable selectedVariablrExp, EmployeeTable selectedEmployee,
                                         string notes, string name, int cost,
                                         DateTime date, int active)
 {
     DataLayer.UpdateVariableExpend(selectedVariablrExp, selectedEmployee, notes, name, cost, date, active);
 }