예제 #1
0
        /*******************************************************************************************************************\
        *                                                                                                                 *
        \*******************************************************************************************************************/

        private void frmEdit_Load(object sender, EventArgs e)
        {
            _uc          = new ucEmp();
            _uc.Location = new Point(5, 5);
            pnlEmp.Controls.Add(_uc);


            if (NOVA_)
            {
                mode_nova();
            }
            else
            {
                _uc.LoadRow(_row);
                mode_edit();
            }
        }
예제 #2
0
        private void show_detail(bool all)
        {
            flpPaydirt.Controls.Clear();

            foreach (liFILTER li in clbFilter.CheckedItems)
            {
                DataRow row = _tbj_dt.Rows.Find(li.Tag);

                ucEmp uc = new ucEmp();
                uc.LoadRow(row);
                flpPaydirt.Controls.Add(uc);
            }

            if (clbFilter.CheckedItems.Count > 0)
            {
                return;
            }
            if (!all)
            {
                return;
            }

            foreach (DataRow row in _tbj_dt.Rows)
            {
                //if (row["strEmployee_number"].Equals(DBNull.Value)) continue;

                ucEmp uc = new ucEmp();
                uc.LoadRow(row);
                flpPaydirt.Controls.Add(uc);
            }


            //DataTable boats = qryTimebook.qBoats(_dt, d);
            //foreach (DataRow row in boats.Rows)
            //foreach (DataRow tb_row in _pd_dt.Rows)
            //foreach (DataRow row in _r_dt.Rows)
            //{
            //    //if (row["strEmployee_number"].Equals(DBNull.Value)) continue;

            //    ucPaydirt uc = new ucPaydirt();
            //    uc.LoadRow(row);
            //    flpPaydirt.Controls.Add(uc);
            //}
        }