Exemple #1
0
        public DataTable GetEmployeeDetails(Employees obj)
        {
            QueryParameterCollection coll = new QueryParameterCollection();

            coll.Add("email", obj.email, DbType.String);
            return(DbActions.GetTable(coll, "vom_employee_getdetails", dp));
        }
Exemple #2
0
        public DataTable ListEmployeeCount(Guid company_uuid)
        {
            QueryParameterCollection coll = new QueryParameterCollection();

            coll.Add("@company_uuid", company_uuid, DbType.String);
            return(DbActions.GetTable(coll, "vom_employee_count", dp));
        }
Exemple #3
0
        public DataTable GetEmployee(Guid user_uuid)
        {
            QueryParameterCollection coll = new QueryParameterCollection();

            coll.Add("@user_uuid", user_uuid, DbType.Guid);
            return(DbActions.GetTable(coll, "vom_employee_get", dp));
        }
Exemple #4
0
        public DataTable GetEmployeeUUID(Employees obj)
        {
            QueryParameterCollection coll = new QueryParameterCollection();

            coll.Add("emp_name", obj.emp_name, DbType.String);
            return(DbActions.GetTable(coll, "vom_employee_getuuid", dp));
        }
Exemple #5
0
        //public DataTable EditEmployee(Employees obj)
        //{
        //    QueryParameterCollection coll = new QueryParameterCollection();
        //    coll.Add("uuid", obj.uuid, DbType.Guid);
        //    coll.Add("emp_name", obj.emp_name, DbType.String);
        //    coll.Add("emp_salary", obj.emp_salary, DbType.Int64);
        //    coll.Add("email", obj.email, DbType.String);
        //    coll.Add("password", obj.password, DbType.String);
        //    coll.Add("emp_department", obj.emp_department, DbType.String);
        //    coll.Add("emp_phone_number", obj.emp_phone_number, DbType.Int64);
        //    coll.Add("emp_address", obj.emp_address, DbType.String);
        //    DataTable dt = DbActions.GetTable(coll, "vom_employee_editprofile", dp);
        //    return dt;
        //}
        public DataTable ListEmployee(Employees obj)
        {
            QueryParameterCollection coll = new QueryParameterCollection();

            coll.Add("company_uuid", obj.company_uuid, DbType.String);
            return(DbActions.GetTable(coll, "vom_employee_list", dp));
        }
        public ActionResult Delete(int id)
        {
            DbActions dbacc = new DbActions();

            dbacc.Delete(id);
            return(RedirectToAction("Index"));
        }
        public ActionResult Edit(int Id)
        {
            DbActions dbacc = new DbActions();
            Post      po    = dbacc.getPost(Id);

            return(View(po));
        }
Exemple #8
0
        public AddRecipeViewModel(DbActions dbActions, ObservableCollection <Recipe> recipeItems)
        {
            this.dbActions = dbActions;
            _recipeItems   = recipeItems;

            AddRecipeToDBCommand = new RelayCommand(AddRecipe);
        }
Exemple #9
0
        public ViewResult RsvpForm(GuestResponseModel guestResponse)
        {
            string c = guestResponse.RSVpType;

            if (c == ("none") | c == ("null"))
            {
                ViewBag.Error = "Please select your room type";
                return(View());
            }
            else
            {
                ViewBag.Greeting = "Good Evening, " + guestResponse.Name +
                                   "\n Your Reservation was completed We will call you to confirm. \nThank you";
                int res = DbActions.CustomerRVSP(guestResponse);
                if (res > 0)
                {
                    ViewData["Message"] = "Reservation Successfully";
                }
                else
                {
                    ViewData["Message"] = "Something Went Wrong";
                }
                return(View("Index"));
            }

            //TODO: SubscribeUser(model.Email);

            // TODO: Email response to the party organizer
        }
Exemple #10
0
        public DataTable GetAssignedTask(Guid emp_uuid)
        {
            QueryParameterCollection coll = new QueryParameterCollection();

            coll.Add("@emp_uuid", emp_uuid, DbType.Guid);
            return(DbActions.GetTable(coll, "vom_employee_getassignedtask", dp));
        }
Exemple #11
0
        public DataTable GetCategoryUUID(Category obj)
        {
            QueryParameterCollection coll = new QueryParameterCollection();

            coll.Add("category_name", obj.category_name, DbType.String);
            return(DbActions.GetTable(coll, "vom_category_getuuid", dp));
        }
Exemple #12
0
        public DataTable GetTask(Guid task_uuid)
        {
            QueryParameterCollection coll = new QueryParameterCollection();

            coll.Add("@task_uuid", task_uuid, DbType.Guid);
            return(DbActions.GetTable(coll, "vom_task_get", dp));
        }
Exemple #13
0
        public DataTable ListCategory(Category obj)
        {
            QueryParameterCollection coll = new QueryParameterCollection();

            coll.Add("company_uuid", obj.company_uuid, DbType.String);
            return(DbActions.GetTable(coll, "vom_category_list", dp));
        }
Exemple #14
0
        public DataTable GetCompanyUser(Guid user_uuid)
        {
            QueryParameterCollection coll = new QueryParameterCollection();

            coll.Add("@user_uuid", user_uuid, DbType.Guid);
            return(DbActions.GetTable(coll, "vom_company_getuser", dp));
        }
Exemple #15
0
        public DataTable GetProjectUUID(Project obj)
        {
            QueryParameterCollection coll = new QueryParameterCollection();

            coll.Add("project_name", obj.project_name, DbType.String);
            return(DbActions.GetTable(coll, "vom_project_getuuid", dp));
        }
Exemple #16
0
        public DataTable RemoveCategory(string uuid)
        {
            QueryParameterCollection coll = new QueryParameterCollection();

            coll.Add("uuid", uuid, DbType.String);
            return(DbActions.GetTable(coll, "vom_category_remove", dp));
        }
Exemple #17
0
        public DataTable GetCategory(Guid category_uuid)
        {
            QueryParameterCollection coll = new QueryParameterCollection();

            coll.Add("@category_uuid", category_uuid, DbType.Guid);
            return(DbActions.GetTable(coll, "vom_category_get", dp));
        }
Exemple #18
0
        public DataTable GetProject(Guid project_uuid)
        {
            QueryParameterCollection coll = new QueryParameterCollection();

            coll.Add("@project_uuid", project_uuid, DbType.Guid);
            return(DbActions.GetTable(coll, "vom_project_get", dp));
        }
Exemple #19
0
        public MainWindow()
        {
            InitializeComponent();
            DbActions dbActions = new DbActions();

            DataContext = new MainWindowViewModel(dbActions);
        }
Exemple #20
0
        private void btnAggiornaDB_Click(object sender, EventArgs e)
        {
            DbActions.CreateListCars();

            timer1.Start();
            lblEvent.Text = "Dati aggiornati!!";
        }
Exemple #21
0
        public DataTable GetVerification(string verify_code)
        {
            QueryParameterCollection coll = new QueryParameterCollection();

            coll.Add("@verify_code", verify_code, DbType.String);
            return(DbActions.GetTable(coll, "vom_company_get_verification", dp));
        }
Exemple #22
0
 public ActionResult <List <CClassTerm> > GetClassTermList(int teacherId)
 {
     if (DbActions.ValidateRequest(Request))
     {
         return(DbActions.GetClassTermsForRec(teacherId));
     }
     return(StatusCode(401));
 }
Exemple #23
0
 public ActionResult <CTeacher> GetTeacher(int teacherId, int userId)
 {
     if (DbActions.ValidateRequest(Request))
     {
         return(DbActions.GetTeacher(teacherId, userId));
     }
     return(StatusCode(401));
 }
Exemple #24
0
 public ActionResult <int> GetIdOfNearestSession(int teacherId)
 {
     if (DbActions.ValidateRequest(Request))
     {
         return(DbActions.GetClosestSessionId(teacherId));
     }
     return(StatusCode(401));
 }
Exemple #25
0
 public ActionResult <CSession> GetAttendance(int sessionId)
 {
     if (DbActions.ValidateRequest(Request))
     {
         return(DbActions.GetSession(sessionId));
     }
     return(StatusCode(401));
 }
Exemple #26
0
 private void FormMain_Load(object sender, EventArgs e)
 {
     if (DbActions.bindingListVeicoli.Count == 0)
     {
         DbActions.CreateListCars();
     }
     loadVehicles();
 }
Exemple #27
0
        public DataTable GetTaskByFlag(string flag, Guid emp_uuid)
        {
            QueryParameterCollection coll = new QueryParameterCollection();

            coll.Add("@emp_uuid", emp_uuid, DbType.Guid);
            coll.Add("@flag", flag, DbType.String);
            return(DbActions.GetTable(coll, "vom_task_getbyflag", dp));
        }
Exemple #28
0
        public DataTable SearchTask(string search_text, Guid emp_uuid)
        {
            QueryParameterCollection coll = new QueryParameterCollection();

            coll.Add("@search_text", search_text, DbType.String);
            coll.Add("@emp_uuid", emp_uuid, DbType.Guid);
            return(DbActions.GetTable(coll, "vom_task_search", dp));
        }
Exemple #29
0
 public ActionResult <bool> CheckDuplicateEmail(String emailAddress)
 {
     if (DbActions.ValidateRequest(Request))
     {
         return(DbActions.CheckIfEmailIsDuplicate(emailAddress));
     }
     return(StatusCode(401));
 }
Exemple #30
0
        public AddIngredientsViewModel(DbActions dbActions, ObservableCollection <Ingredient> ingredientItems)
        {
            this.dbActions = dbActions;

            _ingredientItems = ingredientItems;

            AddIngredientToDBCommand = new RelayCommand(AddIngredient);
        }