Example #1
0
 public void LoadFromObj(COTransmittalDistribution oOrg)
 {
     miID            = oOrg.ID;
     miReleaseID     = oOrg.ReleaseID;
     miEmployeeID    = oOrg.EmployeeID;
     msName          = oOrg.Name;
     miReleaseTypeID = oOrg.ReleaseTypeID;
     msReleaseType   = oOrg.ReleaseType;
     miDocCount      = oOrg.DocCount;
     mbIsCC          = oOrg.IsCC;
 }
Example #2
0
 public void Copy(COTransmittalDistribution oNew)
 {
     oNew.ID            = miID;
     oNew.ReleaseID     = miReleaseID;
     oNew.EmployeeID    = miEmployeeID;
     oNew.Name          = msName;
     oNew.ReleaseTypeID = miReleaseTypeID;
     oNew.ReleaseType   = msReleaseType;
     oNew.DocCount      = miDocCount;
     oNew.IsCC          = mbIsCC;
 }
Example #3
0
        private void LoadVals(string strXml)
        {
            XmlSerializer s;
            StringReader  sr;

            s  = new XmlSerializer(typeof(COTransmittalDistribution));
            sr = new System.IO.StringReader(strXml);

            oVar = new COTransmittalDistribution();
            oVar = (COTransmittalDistribution)s.Deserialize(sr);

            sr.Close();
            sr = null;
            s  = null;
        }
Example #4
0
        public void LoadVals(string strXml)
        {
            XmlSerializer             s;
            StringReader              sr;
            COTransmittalDistribution o;

            s  = new XmlSerializer(typeof(COTransmittalDistribution));
            sr = new System.IO.StringReader(strXml);

            o = new COTransmittalDistribution();
            o = (COTransmittalDistribution)s.Deserialize(sr);

            base.LoadFromObj(o);

            o = null;
            sr.Close();
            sr = null;
            s  = null;
        }
Example #5
0
        public string GetByID(int iID)
        {
            SqlDataReader dr;

            RSLib.CDbConnection cnn;
            SqlCommand          cmd;
            SqlParameter        prm;
            string tmpStr = "";

            cnn             = new RSLib.CDbConnection();
            cmd             = new SqlCommand("spTransmittalDistribution_ByID", cnn.GetConnection());
            cmd.CommandType = CommandType.StoredProcedure;

            prm       = cmd.Parameters.Add("@ID", SqlDbType.Int);
            prm.Value = iID;

            dr = cmd.ExecuteReader(CommandBehavior.CloseConnection);

            while (dr.Read())
            {
                oVar               = new COTransmittalDistribution();
                oVar.ID            = Convert.ToInt32(dr["ID"]);
                oVar.ReleaseID     = Convert.ToInt32(dr["ReleaseID"]);
                oVar.EmployeeID    = Convert.ToInt32(dr["EmployeeID"]);
                oVar.Name          = dr["Name"].ToString();
                oVar.ReleaseTypeID = Convert.ToInt32(dr["ReleaseTypeID"]);
                oVar.ReleaseType   = dr["ReleaseType"].ToString();
                oVar.DocCount      = Convert.ToInt32(dr["DocCount"]);
                oVar.IsCC          = Convert.ToBoolean(dr["IsCC"]);
                tmpStr             = GetDataString();
            }
            dr.Close();
            dr  = null;
            prm = null;
            cmd = null;
            cnn.CloseConnection();
            cnn = null;

            return(tmpStr);
        }
Example #6
0
        public string GetDataString()
        {
            string tmpStr;
            COTransmittalDistribution o;
            XmlSerializer             s;
            StringWriter sw;

            o  = new COTransmittalDistribution();
            s  = new XmlSerializer(typeof(COTransmittalDistribution));
            sw = new StringWriter();

            base.Copy(o);
            s.Serialize(sw, o);

            tmpStr = sw.ToString();

            o  = null;
            s  = null;
            sw = null;

            return(tmpStr);
        }