コード例 #1
0
        public ucPorodicnoStanje()
        {
            InitializeComponent();

            if (!(LicenseManager.UsageMode == LicenseUsageMode.Designtime))
            {
                ns = new PorodicnoStanjeService();
                LoadData();
            }
        }
コード例 #2
0
        public frmPorodicnoStanjeEdit(int Id)
        {
            InitializeComponent();

            if (!(LicenseManager.UsageMode == LicenseUsageMode.Designtime))
            {
                porodicnoStanjeID = Id;
                ns = new PorodicnoStanjeService();
                LoadData(Id);
            }
        }
コード例 #3
0
        //private string PathName
        //{
        //    get
        //    {
        //        //using (RegistryKey registryKey = Registry.CurrentUser.OpenSubKey(@"Software\Kadrovska"))
        //        //{
        //            return (string)registryKey.GetValue("frmRadnikLayout");
        //        //}
        //    }
        //}

        private void ucRadnici_Load(object sender, EventArgs e)
        {
            if (!this.DesignMode)
            {
                if (System.IO.File.Exists(openFileDialog1.FileName))
                {
                    gridView.RestoreLayoutFromXml(openFileDialog1.FileName);
                }

                LoadData(0);

                //gridView1.RestoreLayoutFromRegistry("frmRadnikLayout");

                MjestoService        ms = new MjestoService();
                IEnumerable <Mjesto> mj = ms.GetAll();
                lkpMjestoRodjenja.DataSource = mj.ToList();
                lkpMjestoStan.DataSource     = mj.ToList();

                DrzavljanstvoService ds = new DrzavljanstvoService();
                lkpDrzavljanstvoID.DataSource = ds.GetAll().ToList();
                NacinPrestankaROService nps = new NacinPrestankaROService();
                lkpNacinPrestankaRoID.DataSource = nps.GetAll().ToList();
                NacionalnostService ns = new NacionalnostService();
                lkpNacionalnostID.DataSource = ns.GetAll().ToList();
                OpstinaService os = new OpstinaService();
                lkpOpstinaIzdavanjaRK.DataSource = os.GetAll().ToList();
                PorodicnoStanjeService pss = new PorodicnoStanjeService();
                lkpPorodicnoStanjeID.DataSource = pss.GetAll().ToList();
                PoslovnaJedinicaService pjs = new PoslovnaJedinicaService();
                lkpPoslovnaJedinicaID.DataSource = pjs.GetAll().ToList();
                RadnoMjestoService rms = new RadnoMjestoService();
                lkpRadnoMjestoID.DataSource = rms.GetAll().ToList();
                StrucnaSpremaService sss = new StrucnaSpremaService();
                lkpStrucnaSpremaID.DataSource = sss.GetAll().ToList();
                TipRadnogOdnosaService trs = new TipRadnogOdnosaService();
                lkpTipRadnogOdnosaID.DataSource = trs.GetAll().ToList();
            }
        }