Ejemplo n.º 1
0
 public void LoadFromObj(COTransmittalReleaseDocOld oOrg)
 {
     miID           = oOrg.ID;
     miTransRelID   = oOrg.TransRelID;
     miDocID        = oOrg.DocID;
     msDocNum       = oOrg.DocNum;
     msDescription  = oOrg.Description;
     miRevision     = oOrg.Revision;
     mdDateReleased = oOrg.DateReleased;
 }
Ejemplo n.º 2
0
 public void Copy(COTransmittalReleaseDocOld oNew)
 {
     oNew.ID           = miID;
     oNew.TransRelID   = miTransRelID;
     oNew.DocID        = miDocID;
     oNew.DocNum       = msDocNum;
     oNew.Description  = msDescription;
     oNew.Revision     = miRevision;
     oNew.DateReleased = mdDateReleased;
 }
Ejemplo n.º 3
0
        private void LoadVals(string strXml)
        {
            XmlSerializer s;
            StringReader  sr;

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

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

            sr.Close();
            sr = null;
            s  = null;
        }
Ejemplo n.º 4
0
        public void LoadVals(string strXml)
        {
            XmlSerializer s;
            StringReader  sr;
            COTransmittalReleaseDocOld o;

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

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

            base.LoadFromObj(o);

            o = null;
            sr.Close();
            sr = null;
            s  = null;
        }
Ejemplo n.º 5
0
        public string GetByID(int lID)
        {
            SqlDataReader dr;

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

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


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

            dr = cmd.ExecuteReader(CommandBehavior.CloseConnection);


            while (dr.Read())
            {
                oVar = new COTransmittalReleaseDocOld();

                oVar.ID           = Convert.ToInt32(dr["ID"]);
                oVar.TransRelID   = Convert.ToInt32(dr["TransRelID"]);
                oVar.DocID        = Convert.ToInt32(dr["DocID"]);
                oVar.DocNum       = dr["DocNum"].ToString();
                oVar.Description  = dr["Description"].ToString();
                oVar.Revision     = Convert.ToInt32(dr["Revision"]);
                oVar.DateReleased = Convert.ToDateTime(dr["DateReleased"]);
                tmpStr            = GetDataString();
            }

            dr  = null;
            prm = null;
            cmd = null;
            cnn.CloseConnection();
            cnn = null;

            return(tmpStr);
        }
Ejemplo n.º 6
0
        public string GetDataString()
        {
            string tmpStr;
            COTransmittalReleaseDocOld o;
            XmlSerializer s;
            StringWriter  sw;

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

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

            tmpStr = sw.ToString();

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

            return(tmpStr);
        }