Ejemplo n.º 1
0
        private void frmEmpBranchAssignment_Load(object sender, EventArgs e)
        {
            Branch b = new Branch();
            b.LoadBranches(cboBranches);

            cboBranches.Text = emp.GET_BRANCH_ASSIGNMENT();
        }
Ejemplo n.º 2
0
        public void LoadBranches(ComboBox cbo)
        {
            Branch b = new Branch();
            DataTable dt = new DataTable();
            dt = b.SELECT_ALL();

            if (dt != null) {
                foreach (DataRow r in dt.Rows)
                {
                    cbo.Items.Add(r["id"].ToString() + "-" + r["branch"].ToString());
                }
            }
        }
Ejemplo n.º 3
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.º 4
0
        private void emp_new_Load(object sender, EventArgs e)
        {
            Branch b = new Branch();
            b.LoadBranches(cbobranch);

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