Ejemplo n.º 1
0
        private void frmEmpPosition_Load(object sender, EventArgs e)
        {
            Position p = new Position();
            p.LoadPositions(cboEmpPosition);

            cboEmpPosition.Text = emp.position;
        }
Ejemplo n.º 2
0
        public void LoadPositions()
        {
            Position p= new Position();
            DataTable dt = new DataTable();
            dt = p.SELECT_ALL();

            foreach (DataRow r in dt.Rows)
            {
                cbopositions.Items.Add(r["positionname"].ToString());
            }
        }
Ejemplo n.º 3
0
 public void LoadPositions(ComboBox cbo)
 {
     Position p = new Position();
     DataTable dt = new DataTable();
     dt = p.SELECT_ALL();
     if (dt != null) {
         foreach (DataRow r in dt.Rows)
         {
             cbo.Items.Add(r["positionname"].ToString());
         }
     }
 }
Ejemplo n.º 4
0
        private void emp_update_Load(object sender, EventArgs e)
        {
            Branch b = new Branch();
            b.LoadBranches(cbobranch);

            Position p = new Position();
            p.LoadPositions(cbopositions);

            txtid.Text = emp.empid;
            txtfname.Text = emp.fname;
            txtlname.Text = emp.lname;
            txtmname.Text = emp.mname;

            txtaddress.Text = emp.address;
            txtbasicpay.Text = emp.basic_pay.ToString();
            txtcontactno.Text = emp.contactno;

            cbogender.Text = emp.gender;
            cbobranch.Text = emp.branch;
            cboemploymentstatus.Text = emp.emp_status;
            cbopositions.Text = emp.position;
            txtmembershipid.Text = emp.COOP_MEMBERSHIP_ID;
            txttinno.Text = emp.tinno;
               // dtBday.Value = emp.birthdate;
            //dtemploymentdate.Value=

            //IF EMPLOYEE PICTURE IS NOT EMPTY OR NULL
            if (emp.pic != null)
            {
                MemoryStream ms = new MemoryStream(emp.pic);
                pbEmpPic.Image = Image.FromStream(ms);
                pbEmpPic.SizeMode = PictureBoxSizeMode.Zoom;
            }
            else
            {

                pbEmpPic.Image = Properties.Resources.noimagefound;
                pbEmpPic.SizeMode = PictureBoxSizeMode.Zoom;
            }
        }
Ejemplo n.º 5
0
        private void emp_new_Load(object sender, EventArgs e)
        {
            Branch b = new Branch();
            b.LoadBranches(cbobranch);

            Position p = new Position();
            p.LoadPositions(cbopositions);
        }