public static function addPerson_workingexperiance($obj_Person_workingexperiance)
 {
     $db = config::dbconfig();
     $obj_retresult = new returnResult();
     $obj_Person_workingexperiance->WorkExpId = DAL_managePerson_workingexperiance::getLastPerson_workingexperianceId() + 1;
     $sql = "INSERT INTO tbl_person_workingexperiance (WorkExpId,CompanyId,StartDate,EndDate,Position,PersonId) \n\t\tVALUES (" . common::noSqlInject($obj_Person_workingexperiance->WorkExpId) . "," . common::noSqlInject($obj_Person_workingexperiance->CompanyId) . "," . "'" . common::noSqlInject($obj_Person_workingexperiance->StartDate) . "'" . "," . "'" . common::noSqlInject($obj_Person_workingexperiance->EndDate) . "'" . "," . "'" . common::noSqlInject($obj_Person_workingexperiance->Position) . "'" . "," . common::noSqlInject($obj_Person_workingexperiance->PersonId) . ");";
     $rs = mysql_query($sql);
     if (mysql_affected_rows() > 0) {
         $obj_retresult->type = 1;
         $obj_retresult->msg = "success";
         $obj_retresult->data = $obj_Person_workingexperiance;
     } else {
         $obj_retresult->type = 0;
         $obj_retresult->msg = "failed";
     }
     return $obj_retresult;
 }