コード例 #1
0
        public int UpdateLoc(BusinessObject.DevolopementCenture objbodevc, BusinessObject.City objbocity)
        {
            con.Open();
            SqlCommand cmd = new SqlCommand("update Devlcent set devcname='" + objbodevc.Devcname + "',cityid='" + objbocity.cityid + "'where devcid='" + objbodevc.Devcid + "'", con);
            int        i   = cmd.ExecuteNonQuery();

            con.Close();
            return(i);
        }
コード例 #2
0
        public int DeleteLoc(BusinessObject.DevolopementCenture objbodevc)
        {
            con.Open();
            SqlCommand cmd = new SqlCommand("delete from Devlcent where devcid='" + objbodevc.Devcid + "'", con);
            int        i   = cmd.ExecuteNonQuery();

            con.Close();
            return(i);
        }
コード例 #3
0
        public int AddDevCenture(BusinessObject.DevolopementCenture objbodevc, BusinessObject.Location objboloc)

        {
            con.Open();
            SqlCommand cmd = new SqlCommand("pro_AddindevCenture", con);

            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.AddWithValue("@devcname", objbodevc.Devcname);
            cmd.Parameters.AddWithValue("@locid", objboloc.LocationId);
            int i = cmd.ExecuteNonQuery();

            con.Close();
            return(i);
        }
コード例 #4
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);
        }
コード例 #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 UpdateLoc(BusinessObject.DevolopementCenture objbodevc, BusinessObject.City objbocity)
        {
            int i = objdaldevc.UpdateLoc(objbodevc, objbocity);

            return(i);
        }
コード例 #7
0
        public int DeleteLoc(BusinessObject.DevolopementCenture objbodevc)
        {
            int i = objdaldevc.DeleteLoc(objbodevc);

            return(i);
        }
コード例 #8
0
        public int AddDevCenture(BusinessObject.DevolopementCenture objbodevc, BusinessObject.Location objboloc)
        {
            int i = objdaldevc.AddDevCenture(objbodevc, objboloc);

            return(i);
        }
コード例 #9
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);
        }
コード例 #10
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);
        }
コード例 #11
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);
        }