Exemplo n.º 1
0
        public ShowAllIteam(WereDelivery Waredelivare)
        {
            InitializeComponent();
            ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBoxEx1, WereType.WereTypeList);
            this.Waredelivare = Waredelivare;
            if (Waredelivare == null)
            {
                this.Text     = "إضافة أستلام جديد للمتطوع";
                buttonX1.Text = "إضافة أستلام";
            }
            else
            {
                this.Text                 = "تعديل أستلام  للمتطوع";
                buttonX1.Text             = "تعديل أستلام";
                comboBoxEx1.SelectedIndex = ClassDataGridViewDo.RetunIndexByIdSech(this.Waredelivare.Id_WereType, WereType.WereTypeList);
                if (Waredelivare.dateDeliveryitem != null)
                {
                    checkBoxX1.Checked = true;
                }

                if (Waredelivare.DateBackitem != null)
                {
                    checkBoxX2.Checked = true;
                }
            }
        }
        private void AdderNameForTeam_Load(object sender, EventArgs e)
        {
            ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBoxEx3, Jop.JopStatic);
            ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBoxEx2, Team.Setwation);
            intList = RibbonForm1.intList;
            textBoxX1.AutoCompleteCustomSource = RibbonForm1.Combox;
            textBoxX1.AutoCompleteMode         = AutoCompleteMode.SuggestAppend;
            textBoxX1.AutoCompleteSource       = AutoCompleteSource.CustomSource;
            if (Team == null)
            {
                buttonX1.Text = "إضافة";
            }
            else
            {
                textBoxX1.Text            = RibbonForm1.Combox[intList.IndexOf(Team.ID_informtion)];
                comboBoxEx2.SelectedIndex = Team.Setewation;
                comboBoxEx3.SelectedIndex = ClassDataGridViewDo.RetunIndexByIdSech(Team.Id_Jop_Ta, Jop.JopStatic);
                if (ClassConvert.ConvDateTimeNull(Team.date_Start) != null)
                {
                    dateTimeInput1.Value = ClassConvert.ConvDateTime(Team.date_Start);
                }

                if (ClassConvert.ConvDateTimeNull(Team.Date_End) != null)
                {
                    dateTimeInput2.Value = ClassConvert.ConvDateTime(Team.Date_End);
                }

                buttonX1.Text = "تعديل";
            }
        }
Exemplo n.º 3
0
 private void CV_Load(object sender, EventArgs e)
 {
     ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBox1, CV_Study.CV_StudyList);
     ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBox3, CvTeamNeed.CvTeamNeedList);
     ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBoxEx1, CvTeamNeed.CvTeamNeedList);
     ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBoxEx2, Scileis.ScileislList);
 }
Exemplo n.º 4
0
        private async void  buttonX2_Click(object sender, EventArgs e)
        {
            CVadderTeam CVadderTeam = new CVadderTeam();

            this.Opacity = 0.3;
            CVadderTeam.ShowDialog();
            this.Opacity = 1;

            CvTeamNeed.CvTeamNeedList = await CvTeamNeed.GetAll();

            ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBox3, CvTeamNeed.CvTeamNeedList);
            ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBoxEx1, CvTeamNeed.CvTeamNeedList);
        }
Exemplo n.º 5
0
        private async void buttonX3_Click(object sender, EventArgs e)
        {
            this.Opacity = 0.5;
            CVadderStudy CVadderStudy = new CVadderStudy();

            CVadderStudy.ShowDialog();

            CV_Study.CV_StudyList = await CV_Study.GetAll();

            ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBox1, CV_Study.CV_StudyList);

            this.Opacity = 1;
        }
        private async void buttonX2_Click(object sender, EventArgs e)
        {
            this.Opacity = 0.5;

            SeliAdderForm SeliAdderForm1 = new SeliAdderForm();

            SeliAdderForm1.ShowDialog();
            Scileis.ScileislList = await Scileis.GetAll();

            ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBoxEx1, Scileis.ScileislList);

            this.Opacity = 1;
        }
        private void UserAndNameAdderingToWebSite_Load(object sender, EventArgs e)
        {
            try
            {
                DownloadDataFromWebCliend.LoginSet("m5524512", "m5524512");
            }
            catch (Exception ex)
            {
                ErrorClass.SaveErrorFile(ex, true);

                this.Close();
            }
            UserNameGetWebSite1 = DownloadDataFromWebCliend.GetInfrmationofdateGet();
            ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBoxEx2, Valuationname.Valuationnamelist);
            ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBoxEx1, UserNameGetWebSite1);
        }
Exemplo n.º 8
0
        private void AdderTeamName_Load(object sender, EventArgs e)
        {
            ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBoxEx1, NameTeamType.NameTeamTypeStatic);

            if (NameTeam == null)
            {
                buttonX1.Text = "إضافة";
                this.Text     = "إضافة الفريق";
            }
            else
            {
                textBoxX1.Text            = NameTeam.nameOftame;
                comboBoxEx1.SelectedIndex = ClassDataGridViewDo.RetunIndexByIdSech(NameTeam.NameTeamType_Id, NameTeamType.NameTeamTypeStatic);
                buttonX1.Text             = "تعديل";
                this.Text = "تعديل الفريق";
            }
        }
        private void AdderHaveSciles_Load(object sender, EventArgs e)
        {
            ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBoxEx1, Scileis.ScileislList);

            if (HaveScil == null)
            {
                this.Text     = "إضافة";
                buttonX1.Text = "إضافة";
            }
            else
            {
                this.Text     = "تعديل";
                buttonX1.Text = "تعديل";

                comboBoxEx1.SelectedIndex = ClassDataGridViewDo.RetunIndexByIdSech(HaveScil.Scileis_ID, Scileis.ScileislList);
                ratingStar1.Rating        = HaveScil.Star;
            }
        }
Exemplo n.º 10
0
        private void AdderCouresFor_Load(object sender, EventArgs e)
        {
            ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBoxEx1, TypeofCouress.TypeofCouressList);


            if (NameOfCouress1 == null)
            {
                buttonX1.Text = "إضافة";
            }
            else
            {
                dateTimeInput1.Value      = NameOfCouress1.dataStart;
                dateTimeInput2.Value      = NameOfCouress1.DataENd;
                checkBoxX1.Checked        = NameOfCouress1.Suport;
                integerInput1.Value       = NameOfCouress1.IntCoures;
                textBoxX1.Text            = NameOfCouress1.Decrption;
                comboBoxEx1.SelectedIndex = ClassDataGridViewDo.RetunIndexByIdSech(NameOfCouress1.Id_TypeofCouress_ta, TypeofCouress.TypeofCouressList);
                comboBoxEx2.SelectedIndex = NameOfCouress1.WhereIS;
                buttonX1.Text             = "تعديل";
            }
        }
Exemplo n.º 11
0
        private async void CvAdder_Load(object sender, EventArgs e)
        {
            ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBoxEx1, CV_Study.CV_StudyList);
            ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBoxEx3, CvTeamNeed.CvTeamNeedList);
            ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBoxEx4, CvTeamNeed.CvTeamNeedList);
            if (CV_i != null)
            {
                labelX4.Text              = CV_i.GetCodeArch();
                textBoxX1.Text            = CV_i.FullName;
                textBoxX2.Text            = CV_i.Notes;
                comboBoxEx1.SelectedIndex = ClassDataGridViewDo.RetunIndexByIdSech(CV_i.Id_Study, CV_Study.CV_StudyList);
                comboBoxEx2.SelectedIndex = CV_i.Year_sutr;
                comboBoxEx3.SelectedIndex = ClassDataGridViewDo.RetunIndexByIdSech(CV_i.ID_TemaNeed, CvTeamNeed.CvTeamNeedList);
                checkBoxX1.Checked        = CV_i.Bit;
                integerInput1.Value       = CV_i.Numberphone;

                /////
                comboBoxEx4.SelectedIndex = ClassDataGridViewDo.RetunIndexByIdSech(CV_i.ToOutTeam, CvTeamNeed.CvTeamNeedList);

                if (CV_i.Date != null)
                {
                    dateTimeInput2.Value = Convert.ToDateTime(CV_i.ToOutDate);
                }
                textBoxX3.Text = CV_i.Notesout;
                /////////
                if (CV_i.Date != null)
                {
                    dateTimeInput1.Value = Convert.ToDateTime(CV_i.Date);
                }

                listHavescil = await HaveScil.GetByidInfoCV(CV_i.id);


                ClassDataGridViewDo.DataGridEnterGridHaveSsciles(dataGridViewX1, listHavescil);
            }
            else
            {
                dateTimeInput1.Value = DateTime.Now;
            }
        }
Exemplo n.º 12
0
        private void Corser_Load(object sender, EventArgs e)
        {
            ClassDataGridViewDo.DataGridAddVuleComBoxEx((DataGridViewComboBoxExColumn)dataGridViewX1.Columns["Id_Jop_Ta"], Jop.JopStatic);
            ClassDataGridViewDo.DataGridAddVuleComBoxEx((DataGridViewComboBoxExColumn)dataGridViewX1.Columns["Setewation"], Team.Setwation);
            EditTame.AdderComvbox(comboBoxEx1, NameTeamType.NameTeamTypeStatic);
            if (NameTeam != null)
            {
                ///////
                Type                      = NameTeam.NameTeamType_Id;
                textBoxX1.Text            = NameTeam.nameOftame;
                comboBoxEx1.SelectedIndex = ClassDataGridViewDo.RetunIndexByIdSech(NameTeam.NameTeamType_Id, NameTeamType.NameTeamTypeStatic);
                comboBoxEx1.Enabled       = false;
                ////////////////

                TeamList = Team.GetByGetbyIdNameName(NameTeam.id, checkBoxX1.Checked);
                foreach (Team TeamVX in TeamList)
                {
                    VitlByIdList.Add(new IdAndName(TeamVX.ID_informtion));
                }

                ClassDataGridViewDo.DataGridEnterGridToWorkTeam(dataGridViewX1, TeamList, VitlByIdList);
            }
        }
Exemplo n.º 13
0
 private void ShowAllIteam_Load(object sender, EventArgs e)
 {
     ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBoxEx1, WereType.WereTypeList);
 }
Exemplo n.º 14
0
 private void AdderTypeCoures_Load(object sender, EventArgs e)
 {
     ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBoxEx1, NameTeam.NameTeamStatic);
 }
Exemplo n.º 15
0
        private async void RibbonForm2_Load(object sender, EventArgs e)
        {
            #region تحميل الفريم الأولي

            #region تحميل معلومات الأساسية للجدول الفريق
            ClassDataGridViewDo.DataGridAddVuleComBoxEx((DataGridViewComboBoxExColumn)dataGridViewX1.Columns["TeamTeam"], NameTeamType.NameTeamTypeStatic, NameTeam.NameTeamStatic);
            ClassDataGridViewDo.DataGridAddVuleComBoxEx((DataGridViewComboBoxExColumn)dataGridViewX1.Columns["TeamJop"], Jop.JopStatic);
            ClassDataGridViewDo.DataGridAddVuleComBoxEx((DataGridViewComboBoxExColumn)dataGridViewX2.Columns["id_NameOfCouress"], NameOfCouress.NameOfCouresslist);
            ClassDataGridViewDo.DataGridAddVuleComBoxEx((DataGridViewComboBoxExColumn)dataGridViewX1.Columns["TeamStatus"], Team.Setwation);

            #endregion


            /// في كان ت
            if (idvite != 0)
            {
                #region تحميل المعلومات في حال كان هناك مستخدم للتعديل
                #region معلومات العامة
                vitl1                         = new Vitl(idvite);
                first_name.Text               = vitl1.first_name;
                Last_name.Text                = vitl1.Last_name;
                Father_name.Text              = vitl1.Father_name;
                Mather_name.Text              = vitl1.Mather_name;
                natiol_id.Text                = ClassConvert.ConvToIdNational(vitl1.natiol_id);
                Gender.SelectedIndex          = ClassConvert.ConvGenderBoolNull(vitl1.Gender);
                where_birth.Text              = vitl1.where_birth;
                data_barthday.Value           = vitl1.data_barthday;
                Hanei_whare.Text              = vitl1.Hanei_whare;
                Hanei_whare1.Text             = vitl1.Hanei_whare1;
                adderas.Text                  = vitl1.adderas;
                e_mail.Text                   = vitl1.e_mail;
                Stutes_Jtma3.SelectedIndex    = vitl1.Stutes_Jtma3;
                Phone_Ground.Text             = vitl1.Phone_Ground.ToString();
                Phone_Mobile1.Text            = vitl1.Phone_Mobile1.ToString();
                Phone_Mobile2.Text            = vitl1.Phone_Mobile2.ToString();
                Facebook.Text                 = vitl1.Facebook;
                Twiter.Text                   = vitl1.Twiter;
                whatsApp.Text                 = vitl1.whatsApp.ToString();
                viper.Text                    = vitl1.viper.ToString();
                study.Text                    = vitl1.study;
                yearstudy.SelectedIndex       = vitl1.yearstudy;
                Id_course.Text                = vitl1.Id_course.ToString();
                Id_course_Ware.Text           = vitl1.Id_course_Ware;
                data_regs.Value               = vitl1.data_regs;
                Image_id_nationl1.Image       = vitl1.Image_id_nationl1;
                Image_id_nationl2.Image       = vitl1.Image_id_nationl2;
                image.Image                   = vitl1.image;
                image1.Image                  = vitl1.image;
                Image_font.Image              = vitl1.Image_font;
                bitd_id.SelectedIndex         = vitl1.Boold_id;
                Nkname.Text                   = vitl1.Nkname;
                nameEnglish.Text              = vitl1.nameEnglish;
                Z1.SelectedIndex              = vitl1.Z1;
                z2.Text                       = vitl1.z2.ToString();
                z3.SelectedIndex              = vitl1.z3;
                this.dataGridView7.DataSource = vitl1.XmlHobbies;
                #endregion
                #region الفريق

                /////إضافة الفريق إلى جدول الفرق
                EditTame.CountOfNew = 0;
                TeamList            = await Team.GetByIdVil(idvite);

                ClassDataGridViewDo.DataGridEnterGridToWorkTeam(dataGridViewX1, TeamList);
                #endregion
                #region الدورات
                CoresEditAdder.CountOfNew = 0;
                CouressList = Couress.GetByIdVil(idvite);
                ClassDataGridViewDo.DataGridEnterGridToWorkCorser(dataGridViewX2, CouressList);
                #endregion
                #region المواد

                WereDeliveryList = WereDelivery.GetByIdVil(idvite);
                ClassDataGridViewDo.DataGridEnterGridToWorkWereDelivery(dataGridViewX3, WereDeliveryList);

                #endregion

                #region المواد

                ValuationList = Valuation.GetByIdVil(idvite);
                ClassDataGridViewDo.DataGridEnterGridToWorkValuation(dataGridViewX4, ValuationList);

                #endregion
                #endregion
            }
            else
            {
                this.Text = "تسجيل متطوع جديد";
            }

            #endregion
            needSeaving = false;
        }
Exemplo n.º 16
0
 private void CoureesExcl_Load(object sender, EventArgs e)
 {
     ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBoxEx1, TypeofCouress.TypeofCouressList);
 }
Exemplo n.º 17
0
        private async void RibbonForm1_Load(object sender, EventArgs e)
        {
            #region setup1
            Vitl.SetUpNameDataBase();



            #endregion
            //      Sqldatabasethrding.SqlConnection1.ConnectionString = Sqldatabasethrding.sqlconction;
            //      Sqldatabasethrding.SqlConnection1.Open();


            #region SetUpCLassis
            CvTeamNeed.CvTeamNeedList = await CvTeamNeed.GetAll();

            CV_Study.CV_StudyList = await CV_Study.GetAll();

            NameTeamType.NameTeamTypeStatic = NameTeamType.GetAll();
            NameTeam.NameTeamStatic         = await NameTeam.GetAll();

            Jop.JopStatic = Jop.GetAll();

            TypeofCouress.TypeofCouressList = TypeofCouress.GetAll();
            NameOfCouress.NameOfCouresslist = NameOfCouress.GetAll();
            WereType.WereTypeList           = WereType.GetAll();
            Valuationname.Valuationnamelist = Valuationname.GetAll();

            Scileis.ScileislList = await Scileis.GetAll();


            Qustiones.Qustioneslist = Qustiones.GetAll();


            //من أجل عم بحث على أنهم غير فعالين
            Team.ListNotAllAtive.Add(4);
            Team.ListNotAllAtive.Add(5);
            //من أجل عم بحث على أنهم غير فعالين
            ////

            Team.Setwation.Add("رديف");
            Team.Setwation.Add("أساسي");
            Team.Setwation.Add("دوار");
            Team.Setwation.Add("موظف");
            Team.Setwation.Add("مسافر");
            Team.Setwation.Add("منقطع");
            Team.Setwation.Add("تطوعي غير مؤجور");
            ///
            Valuationname.ValuationnameTypeInt.Add("دائمين");
            Valuationname.ValuationnameTypeInt.Add("تجربين");
            Valuationname.ValuationnameTypeInt.Add("شامل لكل المتطوعين");
            Valuationname.ValuationnameTypeInt.Add("مخصص");
            //
            Vitl.Bransh.Add("حلب");
            Vitl.Bransh.Add("حلب-سفيرة");
            //
            #endregion

            #region interFace

            ClassDataGridViewDo.DataGridAddVuleComBoxEx((DataGridViewComboBoxExColumn)dataGridViewX3.Columns["Id_TypeofCouress_ta"], TypeofCouress.TypeofCouressList);
            ClassDataGridViewDo.DataGridAddVuleComBoxEx((DataGridViewComboBoxExColumn)dataGridViewX9.Columns["NameTeamType_Id"], NameTeamType.NameTeamTypeStatic);
            ClassDataGridViewDo.DataGridEnterGridToWorkNameOfCouress_ta(dataGridViewX3, NameOfCouress.NameOfCouresslist);
            //dataGridViewX9
            ClassDataGridViewDo.DataGridEnterGridToWorkNameTeam_Ta(dataGridViewX9, NameTeam.NameTeamStatic);
            await Sqldatabasethrding.GetNameForRibbonForm1Combox(intList);

            #endregion
            comboBoxEx1.AutoCompleteCustomSource = Combox;
        }
Exemplo n.º 18
0
 private void Form1_Load(object sender, EventArgs e)
 {
     ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBoxEx1, CvTeamNeed.CvTeamNeedList);
 }