示例#1
0
        private void frmEmpPosition_Load(object sender, EventArgs e)
        {
            Position p = new Position();
            p.LoadPositions(cboEmpPosition);

            cboEmpPosition.Text = emp.position;
        }
示例#2
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;
            }
        }
示例#3
0
        private void emp_new_Load(object sender, EventArgs e)
        {
            Branch b = new Branch();
            b.LoadBranches(cbobranch);

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