示例#1
0
 private void buttonX1_Click(object sender, EventArgs e)
 {
     if (NameTeam == null)
     {
         if (comboBoxEx1.SelectedIndex != -1)
         {
             NameTeam          = new NameTeam(0, textBoxX1.Text, NameTeamType.NameTeamTypeStatic[Convert.ToInt32(comboBoxEx1.SelectedIndex)].id);
             this.DialogResult = System.Windows.Forms.DialogResult.OK;
         }
         else
         {
             MegBox.Show("يجب إختيار نوع الفريق من القائمة", this);
         }
     }
     else
     {
         if (comboBoxEx1.SelectedIndex != -1)
         {
             NameTeam          = new NameTeam(NameTeam.id, textBoxX1.Text, NameTeamType.NameTeamTypeStatic[Convert.ToInt32(comboBoxEx1.SelectedIndex)].id);
             this.DialogResult = System.Windows.Forms.DialogResult.OK;
         }
         else
         {
             MegBox.Show("يجب إختيار نوع الفريق من القائمة", this);
         }
     }
 }
        public async static void SetUpAll()
        {
            #region ConvertIdBranchToString
            ConvertIdBranchToString.Add("حلب");
            ConvertIdBranchToString.Add("حلب-سفيرة");
            ConvertIdBranchToString.Add("حلب-الباب");
            ConvertIdBranchToString.Add("حلب-عفرين");
            ConvertIdBranchToString.Add("حلب- أروم الكبرى");
            #endregion
            #region SewtWationDec
            SewtWationDec.Add("أساسي");
            SewtWationDec.Add("رديف");
            SewtWationDec.Add("موظف");
            SewtWationDec.Add("دوار");
            SewtWationDec.Add("غير فعال");
            SewtWationDec.Add("مسافر");
            SewtWationDec.Add("منقطع");
            #endregion


            await Sqldatabasethrding.SqlGetAllNnameTeam(NameTeam.GetAll());

            await Sqldatabasethrding.SqlGetAllJob(Jop.GetAll());

            await Sqldatabasethrding.SqlGetAllTypeOfCouress(TypeofCouress.GetAll());
        }
示例#3
0
        private async void buttonItem1_Click(object sender, EventArgs e)
        {
            AdderTeamName AdderTeamName1 = new AdderTeamName(null);

            if (AdderTeamName1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                await Sqldatabasethrding.SqlSaveVitl(AdderTeamName1.NameTeam.adder());

                NameTeam.NameTeamStatic = await NameTeam.GetAll();

                ClassDataGridViewDo.DataGridEnterGridFornameTeamOption(dataGridViewX2, NameTeam.NameTeamStatic);
            }
        }
示例#4
0
        private async void dataGridViewX2_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex > -1)
            {
                AdderTeamName AdderTeamName = new AdderTeamName(NameTeam.NameTeamStatic[ClassDataGridViewDo.RetunIndexByIdSech(Convert.ToInt32(dataGridViewX2.Rows[e.RowIndex].Cells[0].Value), NameTeam.NameTeamStatic)]);

                if (AdderTeamName.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    if (await Sqldatabasethrding.SqlSaveVitl(AdderTeamName.NameTeam.updata()))
                    {
                        NameTeam.NameTeamStatic = await NameTeam.GetAll();

                        ClassDataGridViewDo.DataGridEnterGridFornameTeamOption(dataGridViewX2, NameTeam.NameTeamStatic);
                    }
                    else
                    {
                        MegBox.Show("خطأ بالإتصال");
                    }
                }
                this.Opacity = 1;
            }
        }
示例#5
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;
        }
示例#6
0
 public AdderTeamName(NameTeam NameTeam)
 {
     InitializeComponent();
     this.NameTeam = NameTeam;
 }
 public AdderNameForTeam(NameTeam NameTeam)
 {
     NameTeam = this.NameTeam;
     InitializeComponent();
 }