Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            AeMployeeRepisotary      hexaRepo = new AeMployeeRepisotary();
            List <RequestedDonation> reqList  = hexaRepo.GetALLRequestedDonation();

            this.RequiredDonationGridView2.DataSource = reqList;
        }
Example #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            AeMployeeRepisotary    hexaRepoa = new AeMployeeRepisotary();
            List <DonationByDonar> reqList   = hexaRepoa.GetALLDonarGivenDonation();

            this.dataGridView1.DataSource = reqList;
        }
Example #3
0
        private void button3_Click(object sender, EventArgs e)
        {
            DateTime      dt    = new DateTime();
            string        s     = DateTime.Now.ToString();
            UpcomingEvent xaxxc = new UpcomingEvent();

            xaxxc.Projectname = this.textBox3.Text;
            xaxxc.ProjectID   = this.textBox5.Text;

            xaxxc.Projectarea = this.textBox2.Text;

            xaxxc.ProposedDate = Convert.ToDateTime(this.textBox1.Text);



            //bList.Add(bd);

            AeMployeeRepisotary depkRepof = new AeMployeeRepisotary();

            if (depkRepof.Updatex(xaxxc))
            {
                MessageBox.Show("Update Success", "Update");

                AeMployeeRepisotary ZxRee = new AeMployeeRepisotary();

                List <UpcomingEvent> bList = ZxRee.GetAllUpcomingList();
                this.UpcomingProjectGridView2.DataSource = bList;
            }
            else
            {
                MessageBox.Show("Can Not Update", "Update Error");
            }
        }
Example #4
0
        private void LoginButton_Click(object sender, EventArgs e)
        {
            Employee user = new Employee();

            user.EmployeeId       = this.EmpLogintextBox1.Text;
            user.EmployeePassword = this.EmpLoginPassbox.Text;

            string uid  = this.EmpLogintextBox1.Text;
            string pass = this.EmpLogintextBox1.Text;
            //  Home h = new Home(uid, pass);
            //  h.Show();
            //  this.Hide();

            AeMployeeRepisotary empRepo = new AeMployeeRepisotary();

            if (empRepo.UserLoginVerification(user))
            {
                Enter00Employee00000 h = new Enter00Employee00000(uid, pass);
                h.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Invalid ID or Password", "Login Failed");
            }
        }
Example #5
0
        private void DonateSuccessButton_Click(object sender, EventArgs e)
        {
            Employee pas11st = new Employee();

            pas11st.EmployeeId       = this.UserIDTextBox.Text;
            pas11st.EmployeePassword = this.PasswordTextOLD.Text;


            Employee pas22nd = new Employee();

            pas22nd.EmployeeId       = this.UserIDTextBox.Text;
            pas22nd.EmployeePassword = this.NewPasswordTEXTBOx.Text;



            AeMployeeRepisotary empRepod11 = new AeMployeeRepisotary();

            if (empRepod11.UserLoginVerification(pas11st))
            {
                empRepod11.Updater(pas22nd);


                MessageBox.Show("Changed Success", "Update");
            }

            else
            {
                MessageBox.Show("your ID or OLd Password did not Matched", "Failed");
            }
        }
Example #6
0
        private void DeleteUser_Click(object sender, EventArgs e)
        {
            DateTime dt = new DateTime();

            UpcomingEvent tasf = new UpcomingEvent();

            tasf.Projectname = this.textBox3.Text;
            tasf.ProjectID   = this.textBox5.Text;

            tasf.Projectarea = this.textBox2.Text;
            String ProjectIdtext = this.textBox5.Text;

            // tasf.ProposedDate = Convert.ToDateTime(this.textBox1.Text);



            //bList.Add(bd);

            AeMployeeRepisotary depkRepof = new AeMployeeRepisotary();

            if (depkRepof.Delete(ProjectIdtext))
            {
                MessageBox.Show("dElete Success", "Update");
                AeMployeeRepisotary accRepo = new AeMployeeRepisotary();

                List <UpcomingEvent> bList = accRepo.GetAllUpcomingList();
                this.UpcomingProjectGridView2.DataSource = bList;
            }
            else
            {
                MessageBox.Show("Can Not dElete", "dElete Error");
            }
        }
Example #7
0
        private void DeleteUser_Click(object sender, EventArgs e)
        {
            DateTime dt = new DateTime();

            RecieverPeople tasf = new RecieverPeople();
            //   tasf.Proj = this.textBox3.Text;
            //   tasf.ProjectID = this.textBox5.Text;

            String RecieverIdtext = this.textBox1.Text;
            //    String ProjectIdtext = this.textBox5.Text;

            // tasf.ProposedDate = Convert.ToDateTime(this.textBox1.Text);



            //bList.Add(bd);

            AeMployeeRepisotary depkRepof = new AeMployeeRepisotary();

            if (depkRepof.DeleteReciever(RecieverIdtext))
            {
                MessageBox.Show("dElete Success", "dElete");
                AeMployeeRepisotary accRepo = new AeMployeeRepisotary();

                List <RecieverPeople> bList = accRepo.GetallRecieverPeople();
                this.MemberListGridView1.DataSource = bList;
            }
            else
            {
                MessageBox.Show("Can Not dElete", "dElete Error");
            }
        }
Example #8
0
        private void DonateNowButton_CLICK(object sender, EventArgs e)
        {
            string        s  = DateTime.Now.ToString();
            DonationByNgo bd = new DonationByNgo();

            bd.DonationId = this.RecieverIDtextBox5.Text;

            bd.DonationTitle = Convert.ToString(this.DonationTitleCombobox.SelectedItem);
            bd.RecieverId    = this.donationIDtextBox.Text;
            bd.GivenTime     = Convert.ToString(s);

            bd.DonationItem  = Convert.ToString(this.DonationItemComboBox.SelectedItem);
            bd.RecieverPhone = this.ContacttextBox2.Text;

            bd.GiveBYID = Convert.ToString(VariableHolderValueLabel.Text);



            AeMployeeRepisotary bookRepo = new AeMployeeRepisotary();

            if (bookRepo.Insert(bd))
            {
                MessageBox.Show("Sucessfully Donated", "Insert Sucess");
                this.RecieverIDtextBox5.Text = "";
                this.ContacttextBox2.Text    = "";
                this.donationIDtextBox.Text  = "";
                //  this.RecieverIDtextBox5.Text = "";
            }
            else
            {
                MessageBox.Show("Donation Missing", "Insert Error");
            }
        }
Example #9
0
        private void button5_Click(object sender, EventArgs e)
        {
            string text = this.DistributedSearchTextbox.Text;
            AeMployeeRepisotary  obj    = new AeMployeeRepisotary();
            List <DonationByNgo> donobj = obj.SearchAllDonation(text);

            this.AlreadyDistributedDonationGrid.DataSource = donobj;
        }
Example #10
0
        private void searchProjectdataBtn_Click(object sender, EventArgs e)
        {
            string text = this.Searchbox1.Text;
            AeMployeeRepisotary         accRepo = new AeMployeeRepisotary();
            List <EnrollingProjectData> accList = accRepo.searchProjectdata(text);

            this.ProjectListGridView1.DataSource = accList;
        }
Example #11
0
        private void loadEmpBtn_Click(object sender, EventArgs e)
        {
            AeMployeeRepisotary accRepo = new AeMployeeRepisotary();

            List <EnrollingProjectData> bList = accRepo.GetallEnrollingProjectdata();

            this.ProjectListGridView1.DataSource = bList;
        }
Example #12
0
        private void searchDistributeddataBtn_Click(object sender, EventArgs e)
        {
            string text = this.UpcomingDonationSearchTextbox.Text;
            AeMployeeRepisotary  accRepo = new AeMployeeRepisotary();
            List <UpcomingEvent> accList = accRepo.searchUpcomingEvent(text);

            this.UpcomingProjectGridView2.DataSource = accList;
        }
Example #13
0
        private void button4_Click(object sender, EventArgs e)
        {
            string text = this.textBox6.Text;
            AeMployeeRepisotary    hexaRepoat = new AeMployeeRepisotary();
            List <DonationByDonar> reqListe   = hexaRepoat.SearchALLDonarDonation(text);

            this.dataGridView1.DataSource = reqListe;
        }
Example #14
0
        private void loadEmpBtn_Click(object sender, EventArgs e)
        {
            //  string text = this.ProjectListGridView1.Text;
            AeMployeeRepisotary   accRepo = new AeMployeeRepisotary();
            List <RecieverPeople> accList = accRepo.GetallRecieverPeople();

            this.MemberListGridView1.DataSource = accList;
        }
Example #15
0
        private void button2_Click(object sender, EventArgs e)
        {
            string text = this.textBox5.Text;
            AeMployeeRepisotary      accRepo = new AeMployeeRepisotary();
            List <RequestedDonation> accList = accRepo.SearchALLRequestedDonation(text);

            this.RequiredDonationGridView2.DataSource = accList;
        }
Example #16
0
        private void LoadDistributedButton_Click(object sender, EventArgs e)
        {
            //  GetAllUpcomingList
            AeMployeeRepisotary accRepo = new AeMployeeRepisotary();

            List <UpcomingEvent> bList = accRepo.GetAllUpcomingList();

            this.UpcomingProjectGridView2.DataSource = bList;
        }
Example #17
0
        private void searchProjectdataBtn_Click(object sender, EventArgs e)
        {
            string text = this.REcieverIdidTextbox.Text;
            AeMployeeRepisotary   accRepo = new AeMployeeRepisotary();
            List <RecieverPeople> accList = accRepo.searchRecieverPeople(text);

            this.MemberListGridView1.DataSource = accList;
            // searchRecieverPeople(string text)
        }
Example #18
0
        // String ax = uid;

        private void LoadDistributedButton_Click(object sender, EventArgs e)
        {
            AeMployeeRepisotary bookRepo = new AeMployeeRepisotary();


            //  GetAllDonation
            //  string text = this.ProjectListGridView1.Text;
            AeMployeeRepisotary  accRepo = new AeMployeeRepisotary();
            List <DonationByNgo> accList = accRepo.GetAllDonation();

            this.AlreadyDistributedDonationGrid.DataSource = accList;


            //List<UpcomingEvent> bList = bookRepo.();
            //  this.bookGridView.DataSource = bList;
        }
Example #19
0
        private void button2_Click(object sender, EventArgs e)
        {
            DateTime      dt = new DateTime();
            string        s  = DateTime.Now.ToString();
            UpcomingEvent bd = new UpcomingEvent();

            bd.Projectname = this.textBox3.Text;
            bd.ProjectID   = this.textBox5.Text;

            bd.Projectarea = this.textBox2.Text;

            bd.ProposedDate = Convert.ToDateTime(this.textBox1.Text);



            //bList.Add(bd);

            AeMployeeRepisotary depkRepo = new AeMployeeRepisotary();

            if (depkRepo.Insert(bd))
            {
                MessageBox.Show("Can  Insert ", "Insert Sucess");

                this.textBox3.Text = "";
                this.textBox2.Text = "";
                this.textBox5.Text = "";
                this.textBox1.Text = "";

                AeMployeeRepisotary accRepo = new AeMployeeRepisotary();

                List <UpcomingEvent> bList = accRepo.GetAllUpcomingList();
                this.UpcomingProjectGridView2.DataSource = bList;
            }
            else
            {
                MessageBox.Show("Can Not Insert ", "Insert Error");
            }
        }