Пример #1
0
        public IEnumerable <Radnik> GetDataSource()
        {
            RadnikService        rs     = new RadnikService();
            IEnumerable <Radnik> result = rs.GetAll();

            return(result);
        }
Пример #2
0
        public rptSpisakRadnikaPoPolu()
        {
            InitializeComponent();

            RadnikService         rs = new RadnikService();
            IEnumerable <vRadnik> ds = rs.GetAllV();

            this.DataSource = ds;
        }
Пример #3
0
 public ucKalendarUpis()
 {
     InitializeComponent();
     aS = new AppointmentsService();
     rs = new RadnikService();
     if (!(LicenseManager.UsageMode == LicenseUsageMode.Designtime))
     {
         radnici = rs.GetAllV();
     }
 }
Пример #4
0
        private void frmLogin_Load(object sender, EventArgs e)
        {
            RadnikService rs = new RadnikService();

            user = rs.GetUsers();
            lkpUser.Properties.DataSource = user;
            lkpUser.EditValue             = user.FirstOrDefault().ID;
            textEdit1.SelectAll();
            textEdit1.Focus();
        }
Пример #5
0
 public IEnumerable <vRadnik> GetDataSource()
 {
     if (!(LicenseManager.UsageMode == LicenseUsageMode.Designtime))
     {
         rs = new RadnikService();
         IEnumerable <vRadnik> result = rs.GetAllV();
         return(result);
     }
     else
     {
         return(null);
     }
 }
Пример #6
0
        private void LoadData()
        {
            if (!(LicenseManager.UsageMode == LicenseUsageMode.Designtime))
            {
                if (!(Radnik == null) && (Radnik.ID != 0))
                {
                    RadnikService rs  = new RadnikService();
                    RadnikStaz    rst = rs.GetStaz(Radnik.ID);
                    txtGF.EditValue  = rst.Godina;
                    txtGP.EditValue  = rst.StazGPrethodni;
                    txtGPF.EditValue = rst.StazGPrethodniUFirmi;
                    txtGU.EditValue  = rst.G;

                    txtMF.EditValue  = rst.Mjeseci;
                    txtMP.EditValue  = rst.StazMjPrethodni;
                    txtMPF.EditValue = rst.StazMjPrethodniUFirmi;
                    txtMU.EditValue  = rst.M;

                    txtDF.EditValue  = rst.Dana;
                    txtDP.EditValue  = rst.StazDanaPrethodni;
                    txtDPF.EditValue = rst.StazDanaPrethodniUFirmi;
                    txtDU.EditValue  = rst.D;
                }
                else
                {
                    txtGF.EditValue  = 0;
                    txtGP.EditValue  = 0;
                    txtGPF.EditValue = 0;
                    txtGU.EditValue  = 0;

                    txtMF.EditValue  = 0;
                    txtMP.EditValue  = 0;
                    txtMPF.EditValue = 0;
                    txtMU.EditValue  = 0;

                    txtDF.EditValue  = 0;
                    txtDP.EditValue  = 0;
                    txtDPF.EditValue = 0;
                    txtDU.EditValue  = 0;
                }
            }
        }