예제 #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));
        }
예제 #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));
        }
예제 #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));
        }
예제 #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));
        }
예제 #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));
        }
예제 #6
0
        public ActionResult Delete(int id)
        {
            DbActions dbacc = new DbActions();

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

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

            AddRecipeToDBCommand = new RelayCommand(AddRecipe);
        }
예제 #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
        }
예제 #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));
        }
예제 #11
0
파일: DCategory.cs 프로젝트: thebinod7/vom
        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));
        }
예제 #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));
        }
예제 #13
0
파일: DCategory.cs 프로젝트: thebinod7/vom
        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));
        }
예제 #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));
        }
예제 #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));
        }
예제 #16
0
파일: DCategory.cs 프로젝트: thebinod7/vom
        public DataTable RemoveCategory(string uuid)
        {
            QueryParameterCollection coll = new QueryParameterCollection();

            coll.Add("uuid", uuid, DbType.String);
            return(DbActions.GetTable(coll, "vom_category_remove", dp));
        }
예제 #17
0
파일: DCategory.cs 프로젝트: thebinod7/vom
        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));
        }
예제 #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));
        }
예제 #19
0
        public MainWindow()
        {
            InitializeComponent();
            DbActions dbActions = new DbActions();

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

            timer1.Start();
            lblEvent.Text = "Dati aggiornati!!";
        }
예제 #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));
        }
예제 #22
0
 public ActionResult <List <CClassTerm> > GetClassTermList(int teacherId)
 {
     if (DbActions.ValidateRequest(Request))
     {
         return(DbActions.GetClassTermsForRec(teacherId));
     }
     return(StatusCode(401));
 }
예제 #23
0
 public ActionResult <CTeacher> GetTeacher(int teacherId, int userId)
 {
     if (DbActions.ValidateRequest(Request))
     {
         return(DbActions.GetTeacher(teacherId, userId));
     }
     return(StatusCode(401));
 }
예제 #24
0
 public ActionResult <int> GetIdOfNearestSession(int teacherId)
 {
     if (DbActions.ValidateRequest(Request))
     {
         return(DbActions.GetClosestSessionId(teacherId));
     }
     return(StatusCode(401));
 }
예제 #25
0
 public ActionResult <CSession> GetAttendance(int sessionId)
 {
     if (DbActions.ValidateRequest(Request))
     {
         return(DbActions.GetSession(sessionId));
     }
     return(StatusCode(401));
 }
예제 #26
0
 private void FormMain_Load(object sender, EventArgs e)
 {
     if (DbActions.bindingListVeicoli.Count == 0)
     {
         DbActions.CreateListCars();
     }
     loadVehicles();
 }
예제 #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));
        }
예제 #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));
        }
예제 #29
0
 public ActionResult <bool> CheckDuplicateEmail(String emailAddress)
 {
     if (DbActions.ValidateRequest(Request))
     {
         return(DbActions.CheckIfEmailIsDuplicate(emailAddress));
     }
     return(StatusCode(401));
 }
예제 #30
0
        public AddIngredientsViewModel(DbActions dbActions, ObservableCollection <Ingredient> ingredientItems)
        {
            this.dbActions = dbActions;

            _ingredientItems = ingredientItems;

            AddIngredientToDBCommand = new RelayCommand(AddIngredient);
        }