コード例 #1
0
        private void btnKapat_Click(object sender, EventArgs e)
        {
            this.Close();
            frm_Anaform af = (frm_Anaform)Application.OpenForms["frm_Anaform"];

            af.RibonAktif();
        }
コード例 #2
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            List <MaterialList> items = UICurrentManager.Instance.CurrentTender.MaterialList.Where(p => p.WorkerMarkup == 0 && p.IsWorkship).ToList();

            if (UICurrentManager.Instance.CurrentTender.MaterialList.Where(p => p.IsWorkship).Count() != 0 && UICurrentManager.Instance.CurrentTender.MaterialList.Where(p => p.CustomWorkerUnitPrice == 0 && p.IsWorkship).Count() > 0)
            {
                DialogResult resultMsg = MessageBox.Show("İşçilik Birim Fiyat belirtmediginiz malzemeler var!!!");
                return;
            }

            if (items != null && items.Count != 0)
            {
                DialogResult resultMsg = MessageBox.Show("İşçilik kari belirtmediginiz malzemeler var emin misiniz? ", "Yeni ", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
                if (resultMsg.Equals(DialogResult.Yes))
                {
                    this.Close();
                    frm_Anaform af = (frm_Anaform)Application.OpenForms["frm_Anaform"];
                    af.RibonPasif();
                    af.btnAdimx5.PerformClick();
                }
            }
            else
            {
                bool personHour = cmbAdamSaat.Checked ? true : false;

                UICurrentManager.Instance.CurrentTender.PersonHour = personHour;
                TenderProvider.Instance.Save(UICurrentManager.Instance.CurrentTender);

                this.Close();
                frm_Anaform af = (frm_Anaform)Application.OpenForms["frm_Anaform"];
                af.RibonPasif();
                af.btnAdimx5.PerformClick();
            }
        }
コード例 #3
0
 private void barButtonItem14_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (UICurrentManager.Instance.CurrentOffer != null && UICurrentManager.Instance.CurrentOffer.MaterialList != null)
     {
         frm_Anaform af = (frm_Anaform)Application.OpenForms["frm_Anaform"];
         if (tg == null)
         {
             barButtonItem14.ButtonStyle = BarButtonStyle.Check;
             RibonPasif();
             tg                   = new frm_TedarikcilereTeklifGonder();
             tg.MdiParent         = (frm_Anaform)Application.OpenForms["frm_Anaform"];
             tg.FormClosed       += new FormClosedEventHandler(Tg_FormClosed);
             af.MainPanel.Visible = false;
             tg.Show();
         }
         else
         {
             tg.Activate();
         }
     }
     else
     {
         barButtonItem14.ButtonStyle = BarButtonStyle.Default;
         frm_MesajFormu mf = new frm_MesajFormu();
         mf.lblMesaj.Text = "Aktif bir Teklif Bulunamadı\n Yeni bir teklif oluşturun yada \n Raporlar Menüsünden bir teklif açın.";
         mf.ShowDialog();
     }
 }
コード例 #4
0
        private void Ta1_FormClosed(object sender, FormClosedEventArgs e)
        {
            ta1 = null;
            frm_Anaform af = (frm_Anaform)Application.OpenForms["frm_Anaform"];

            af.RibonAktif();
        }
コード例 #5
0
        private void btnPrev_Click(object sender, EventArgs e)
        {
            this.Close();
            frm_Anaform af = (frm_Anaform)Application.OpenForms["frm_Anaform"];

            af.RibonPasif();
            af.btnAdimx1.PerformClick();
        }
コード例 #6
0
        private void btnKapat_Click(object sender, EventArgs e)
        {
            this.Close();
            grdMaterialListIsWorkship.Refresh();
            frm_Anaform af = (frm_Anaform)Application.OpenForms["frm_Anaform"];

            af.RibonAktif();
        }
コード例 #7
0
        private void OpenForm2()
        {
            this.Close();
            frm_Anaform af = (frm_Anaform)Application.OpenForms["frm_Anaform"];

            af.RibonPasif();
            af.btnAdimx4.PerformClick();
        }
コード例 #8
0
        private void btnIhaleOlustur_Click(object sender, EventArgs e)
        {
            DialogResult resultMsg = MessageBox.Show("Yeni İhale oluşturulsun mu?", "Yeni ", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (resultMsg.Equals(DialogResult.Yes))
            {
                Tender tender = new Tender();
                tender.Equipments = new List <TenderEquipment>();
                int lastTenderNumber = TenderManager.Instance.GetLastTenderNumber();
                tender.Number        = lastTenderNumber + 1;
                tender.Description   = txtAciklama.Text;
                tender.OfferId       = this.SelectedOfferId;
                tender.LastOfferDate = LastOfferDate.DateTime;
                tender.CompanyName   = txtcompanyName.Text;
                tender.EkapNumber    = txtEkapNumber.Text;
                tender.Type          = txtType.Text;
                tender.Scope         = txtScope.Text;
                tender.Procedure     = txtProcedure.Text;
                tender.Place         = txtPlace.Text;
                tender.Management    = txtManagement.Text;
                tender.IsActive      = true;
                if (ddlTenderType.SelectedIndex == 0)
                {
                    tender.TenderType = IhalematikProBL.Enum.TenderTypeEnum.Open;
                }
                else if (ddlTenderType.SelectedIndex == 1)
                {
                    tender.TenderType = IhalematikProBL.Enum.TenderTypeEnum.DirectSupply;
                }
                bool result = TenderManager.Instance.Save(tender);
                if (!result)
                {
                    //TODO feyzullahg hata olustuysa yonlendir
                }
                else
                {
                    UICurrentManager.Instance.CurrentTender = tender;
                }
                this.Enabled = false;
                //frm_MesajFormu mf = new frm_MesajFormu();
                //mf.lblMesaj.Text = "Yeni İhale Oluşturuldu";
                //mf.ShowDialog();
                UIPopupManager.Instance.ShowPopup();

                frm_IhaleGrup ig = new frm_IhaleGrup(this);
                ig.ShowDialog();
                this.Close();
                frm_Anaform af = (frm_Anaform)Application.OpenForms["frm_Anaform"];
                af.RibonPasif();
                af.btnAdimx1.PerformClick();
            }
        }
コード例 #9
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            List <MaterialList> items = UICurrentManager.Instance.CurrentTender.MaterialList.Where(p => p.Markup == 0).ToList();

            if (items != null && items.Count != 0)
            {
                DialogResult resultMsg = MessageBox.Show("Malzeme kari belirtmediginiz malzemeler var emin misiniz? ", "Yeni ", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
                if (resultMsg.Equals(DialogResult.Yes))
                {
                    this.Close();
                    if (UICurrentManager.Instance.CurrentTender.MaterialList.Where(p => p.IsWorkship).Count() == 0)
                    {
                        frm_Anaform af = (frm_Anaform)Application.OpenForms["frm_Anaform"];
                        af.RibonPasif();
                        af.btnAdimx5.PerformClick();
                    }
                    else
                    {
                        frm_Anaform af = (frm_Anaform)Application.OpenForms["frm_Anaform"];
                        af.RibonPasif();
                        af.btnAdimx3.PerformClick();
                    }
                }
            }
            else
            {
                this.Close();
                if (UICurrentManager.Instance.CurrentTender.MaterialList.Where(p => p.IsWorkship).Count() == 0)
                {
                    frm_Anaform af = (frm_Anaform)Application.OpenForms["frm_Anaform"];
                    af.RibonPasif();
                    af.btnAdimx5.PerformClick();
                }
                else
                {
                    frm_Anaform af = (frm_Anaform)Application.OpenForms["frm_Anaform"];
                    af.RibonPasif();
                    af.btnAdimx3.PerformClick();
                }
            }
        }
コード例 #10
0
        private void btnIhaleAc_Click(object sender, EventArgs e)
        {
            int Id = SimpleApplicationBase.Toolkit.Helpers.GetValueFromObject <int>(gridViewActiveTenderList.GetFocusedRowCellValue("Id"));

            UICurrentManager.Instance.CurrentTender = TenderProvider.Instance.GetItem(Id);
            this.Close();
            frm_Anaform af = (frm_Anaform)Application.OpenForms["frm_Anaform"];

            af.ribbonPage7.Ribbon.SelectedPage = af.ribbonPage7;
            af.RibonPasif();
            if (ta1 == null)
            {
                ta1             = new frm_Teklif_Adim1();
                ta1.MdiParent   = af;
                ta1.FormClosed += new FormClosedEventHandler(Ta1_FormClosed);
                ta1.Show();
            }
            else
            {
                ta1.Activate();
            }
        }
コード例 #11
0
 public frm_FirmaTanimlama(frm_Anaform Owner)
 {
     InitializeComponent();
     this._owner = Owner;
 }