コード例 #1
0
        public int Updatedeg(BusinessObject.Designation objbodeg)
        {
            con.Open();
            SqlCommand cmd = new SqlCommand("update Designation set degname='" + objbodeg.degname + "' where degid='" + objbodeg.degid + "'", con);
            int        i   = cmd.ExecuteNonQuery();

            con.Close();
            return(i);
        }
コード例 #2
0
        public int DeleteDeg(BusinessObject.Designation objbodeg)
        {
            con.Open();
            SqlCommand cmd = new SqlCommand("delete from Designation where degid='" + objbodeg.degid + "'", con);
            int        i   = cmd.ExecuteNonQuery();

            con.Close();
            return(i);
        }
コード例 #3
0
        public int ADDDesignation(BusinessObject.Designation objbodeg, BusinessObject.Department objbodept)
        {
            con.Open();
            SqlCommand cmd = new SqlCommand("insert into Designation values('" + objbodeg.degid + "','" + objbodeg.degname + "','" + objbodept.Deptid + "')", con);
            int        i   = cmd.ExecuteNonQuery();

            con.Close();
            return(i);
        }
コード例 #4
0
        public int AddempDetails(BusinessObject.Employee objboemp, BusinessObject.Department objbodept,
                                 BusinessObject.Designation objbodeg, BusinessObject.Technology objbotech, BusinessObject.Country objbocountry, BusinessObject.state objbostate, BusinessObject.City objbocity, BusinessObject.Location objboloc, BusinessObject.DevolopementCenture objbodevcen)
        {
            con.Open();
            string     query = "insert into empregester values('" + objboemp.empno + "','" + objboemp.empname + "','" + objboemp.gender + "','" + objboemp.salary + "','" + objbodept.Deptid + "','" + objbodeg.degid + "','" + objbotech.techid + "','" + objbocountry.CountryId + "','" + objbostate.stateid + "','" + objbocity.cityid + "','" + objboloc.LocationId + "','" + objbodevcen.Devcid + "') ";
            SqlCommand cmd   = new SqlCommand(query, con);
            int        i     = cmd.ExecuteNonQuery();

            return(i);
        }
コード例 #5
0
        public int AddempDetails(BusinessObject.Employee objboemp, BusinessObject.Department objbodept, BusinessObject.Designation objbodeg, BusinessObject.Technology objbotech, BusinessObject.Country objbocountry, BusinessObject.state objbostate, BusinessObject.City objbocity, BusinessObject.Location objboloc, BusinessObject.DevolopementCenture objbodevcen)
        {
            int i = objdalemp.AddempDetails(objboemp, objbodept, objbodeg, objbotech, objbocountry, objbostate, objbocity, objboloc, objbodevcen);

            return(i);
        }
コード例 #6
0
        public int Updatedeg(BusinessObject.Designation objbodeg)
        {
            int i = objdaldeg.Updatedeg(objbodeg);

            return(i);
        }
コード例 #7
0
        public int DeleteDeg(BusinessObject.Designation objbodeg)
        {
            int i = objdaldeg.DeleteDeg(objbodeg);

            return(i);
        }
コード例 #8
0
        public int ADDDesignation(BusinessObject.Designation objbodeg, BusinessObject.Department objbodept)
        {
            int i = objdaldeg.ADDDesignation(objbodeg, objbodept);

            return(i);
        }