Exemplo n.º 1
0
        public int UpdateSession(BusinessObject.HrPart objbhr, BusinessObject.Technology objbotech, BusinessObject.Country objbocountry, BusinessObject.state objbostate, BusinessObject.City objbocity, BusinessObject.Location objboloc, BusinessObject.DevolopementCenture objbodevc)
        {
            con.Open();
            SqlCommand cmd = new SqlCommand("Update session set technology='" + objbotech.techid + "', sdate='" + objbhr.sdate + "',country='" + objbocountry.CountryId + "',state='" + objbostate.stateid + "',city='" + objbocity.cityid + "',location='" + objboloc.LocationId + "',devc='" + objbodevc.Devcid + "',topic='" + objbhr.topic + "',timnig='" + objbhr.timing + "' where sesid='" + objbhr.sessionid + "'", con);
            int        i   = cmd.ExecuteNonQuery();

            con.Close();
            return(i);
        }
Exemplo n.º 2
0
        public int UpdateTech(BusinessObject.Technology objbotech)
        {
            con.Open();
            SqlCommand cmd = new SqlCommand("update technology set techname='" + objbotech.techname + "'where techid='" + objbotech.techid + "'", con);
            int        i   = cmd.ExecuteNonQuery();

            con.Close();
            return(i);
        }
Exemplo n.º 3
0
        public int DeleteTech(BusinessObject.Technology objbotech)
        {
            con.Open();
            SqlCommand cmd = new SqlCommand("delete  from technology where techid='" + objbotech.techid + "'", con);
            int        i   = cmd.ExecuteNonQuery();

            con.Close();
            return(i);
        }
Exemplo n.º 4
0
        public int AddTech(BusinessObject.Technology objbotech)
        {
            con.Open();
            SqlCommand cmd = new SqlCommand("insert into technology values('" + objbotech.techid + "','" + objbotech.techname + "')", con);
            int        i   = cmd.ExecuteNonQuery();

            con.Close();
            return(i);
        }
Exemplo n.º 5
0
        public int addsessiondetails(BusinessObject.HrPart objbhr, BusinessObject.Technology objbotech, BusinessObject.Country objbocountry, BusinessObject.state objbostate, BusinessObject.City objbocity, BusinessObject.Location objboloc, BusinessObject.DevolopementCenture objbodevc)
        {
            con.Open();
            string     q   = "insert into addsessiondetails values('" + objbhr.sessionid + "','" + objbotech.techid + "','" + objbhr.sdate + "','" + objbocountry.CountryId + "','" + objbostate.stateid + "','" + objbocity.cityid + "','" + objboloc.LocationId + "','" + objbodevc.Devcid + "','" + objbhr.topic + "','" + objbhr.timing + "')";
            SqlCommand cmd = new SqlCommand(q, con);
            int        i   = cmd.ExecuteNonQuery();

            con.Close();
            return(i);
        }
Exemplo n.º 6
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);
        }
Exemplo n.º 7
0
        public int UpdateSession(BusinessObject.HrPart objbohr, BusinessObject.Technology objbotech, BusinessObject.Country objbocountry, BusinessObject.state objbostate, BusinessObject.City objbocity, BusinessObject.Location objboloc, BusinessObject.DevolopementCenture objbodevc)
        {
            int i = objdalhr.UpdateSession(objbohr, objbotech, objbocountry, objbostate, objbocity, objboloc, objbodevc);

            return(i);
        }
Exemplo n.º 8
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);
        }
Exemplo n.º 9
0
        public int UpdateTech(BusinessObject.Technology objbotech)
        {
            int i = objdaltech.UpdateTech(objbotech);

            return(i);
        }