예제 #1
0
        public AdderWereType(bool Adder, WereType WereType)
        {
            InitializeComponent();
            this.AdderOrEdit = Adder;
            this.WereType    = WereType;
            if (AdderOrEdit)
            {
                this.Text          = "اضافة مناصب";
                this.buttonX1.Text = "إضافة";
            }
            else
            {
                this.Text          = "تعديل مناصب";
                this.buttonX1.Text = "تعديل";

                textBoxX1.Text = WereType.WareName;
                textBoxX2.Text = WereType.descrption;
            }
        }
예제 #2
0
        private async void buttonItem4_Click(object sender, EventArgs e)
        {
            this.Opacity = 0.5;
            AdderWereType AdderWereType = new AdderWereType(true, null);

            if (AdderWereType.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                if (await Sqldatabasethrding.SqlSaveVitl(AdderWereType.WereType.adder()))
                {
                    WereType.WereTypeList = WereType.GetAll();
                    ClassDataGridViewDo.DataGridEnterGridForWereTypeOption(dataGridViewX5, WereType.WereTypeList);
                }
                else
                {
                    MegBox.Show("خطأ بالإتصال");
                }
            }
            this.Opacity = 1;
        }
예제 #3
0
        private void buttonX1_Click(object sender, EventArgs e)
        {
            if (textBoxX1.Text.Trim() != "" && textBoxX2.Text.Trim() != "")
            {
                if (AdderOrEdit)
                {
                    WereType          = new WereType(0, textBoxX1.Text, textBoxX2.Text);
                    this.DialogResult = System.Windows.Forms.DialogResult.OK;
                }
                else
                {
                    this.Text          = "تعديل مناصب";
                    this.buttonX1.Text = "تعديل";
                    WereType           = new WereType(WereType.id, textBoxX1.Text, textBoxX2.Text);


                    this.DialogResult = System.Windows.Forms.DialogResult.OK;
                }
            }
            else
            {
                MegBox.Show("أحد الحقول فارغه");
            }
        }
예제 #4
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;
        }