public void LoadFromObj(COProjectSummary oOrg) { miID = oOrg.ID; miEmployeeID = oOrg.EmployeeID; msClientFeedback = oOrg.ClientFeedback; msQualityImp = oOrg.QualityImp; msNewWorkProp = oOrg.NewWorkProp; msDistribution = oOrg.Distribution; }
public void Copy(COProjectSummary oNew) { oNew.ID = miID; oNew.EmployeeID = miEmployeeID; oNew.ClientFeedback = msClientFeedback; oNew.QualityImp = msQualityImp; oNew.NewWorkProp = msNewWorkProp; oNew.Distribution = msDistribution; }
private void LoadVals(string strXml) { XmlSerializer s; StringReader sr; s = new XmlSerializer(typeof(COProjectSummary)); sr = new System.IO.StringReader(strXml); oVar = new COProjectSummary(); oVar = (COProjectSummary)s.Deserialize(sr); sr.Close(); sr = null; s = null; }
public void LoadVals(string strXml) { XmlSerializer s; StringReader sr; COProjectSummary o; s = new XmlSerializer(typeof(COProjectSummary)); sr = new System.IO.StringReader(strXml); o = new COProjectSummary(); o = (COProjectSummary)s.Deserialize(sr); base.LoadFromObj(o); o = null; sr.Close(); sr = null; s = null; }
public string GetByEmployeeID(int lID) { SqlDataReader dr; RSLib.CDbConnection cnn; SqlCommand cmd; SqlParameter prm; string tmpStr = ""; cnn = new RSLib.CDbConnection(); cmd = new SqlCommand("spProjectSummary_ByEmployeeID", cnn.GetConnection()); cmd.CommandType = CommandType.StoredProcedure; prm = cmd.Parameters.Add("@EmployeeID", SqlDbType.Int); prm.Value = lID; dr = cmd.ExecuteReader(CommandBehavior.CloseConnection); while (dr.Read()) { oVar = new COProjectSummary(); oVar.ID = Convert.ToInt32(dr["ID"]); oVar.EmployeeID = Convert.ToInt32(dr["EmployeeID"]); oVar.ClientFeedback = dr["ClientFeedback"].ToString(); oVar.QualityImp = dr["QualityImp"].ToString(); oVar.NewWorkProp = dr["NewWorkProp"].ToString(); oVar.Distribution = dr["DistributionList"].ToString(); tmpStr = GetDataString(); } dr = null; prm = null; cmd = null; cnn.CloseConnection(); cnn = null; return(tmpStr); }
public string GetDataString() { string tmpStr; COProjectSummary o; XmlSerializer s; StringWriter sw; o = new COProjectSummary(); s = new XmlSerializer(typeof(COProjectSummary)); sw = new StringWriter(); base.Copy(o); s.Serialize(sw, o); tmpStr = sw.ToString(); o = null; s = null; sw = null; return(tmpStr); }