Exemplo n.º 1
0
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            JobPositionEN pos = ClassJopPosition.SearchByPosid(Convert.ToInt16(ddlPosition.SelectedValue));

            JobPosition_EmpEN en = new JobPosition_EmpEN();

            en.empid = this.empid;
            en.posid = Convert.ToInt16(ddlPosition.SelectedValue);
            en.cost  = pos.cost;

            ClassJopPosition.InsertPosition_Emp(en);

            BindPosition_Emp();
        }