Example #1
0
 public void LoadFromObj(COTransmittalRelease oOrg)
 {
     miID              = oOrg.ID;
     mdDateIssued      = oOrg.DateIssued;
     msIssuedBy        = oOrg.IssuedBy;
     msReleaseNumber   = oOrg.ReleaseNumber;
     miProjectID       = oOrg.ProjectID;
     miDeptID          = oOrg.DeptID;
     mbTypeTransOnly   = oOrg.TypeTransOnly;
     mbTypeFullPrint   = oOrg.TypeFullPrint;
     mbTypeReduced     = oOrg.TypeReduced;
     mbTypeEmail       = oOrg.TypeEmail;
     mbTypeERoom       = oOrg.TypeERoom;
     mbTypeCD          = oOrg.TypeCD;
     mbRelPreliminary  = oOrg.RelPreliminary;
     mbRelApproval     = oOrg.RelApproval;
     mbRelBidding      = oOrg.RelBidding;
     mbRelConstruction = oOrg.RelConstruction;
     mbRelOther        = oOrg.RelOther;
     msRelOtherTxt     = oOrg.RelOtherTxt;
     mbSendNextDay     = oOrg.SendNextDay;
     mbSendSecDay      = oOrg.SendSecDay;
     mbSendThirdDay    = oOrg.SendThirdDay;
     mbSendGround      = oOrg.SendGround;
     mbSendDwg         = oOrg.SendDwg;
     mbSendDxf         = oOrg.SendDxf;
     mbSendPdf         = oOrg.SendPdf;
     msSendEmailOther  = oOrg.SendEmailOther;
     mbSendFTPDwg      = oOrg.SendFTPDwg;
     mbSendFTPDwf      = oOrg.SendFTPDwf;
     mbSendFTPPdf      = oOrg.SendFTPPdf;
     msSendFTPOther    = oOrg.SendFTPOther;
     mbSendSPDwg       = oOrg.SendSPDwg;
     mbSendSPDwf       = oOrg.SendSPDwf;
     mbSendSPPdf       = oOrg.SendSPPdf;
     msSendSPOther     = oOrg.SendSPOther;
     mbSendThirdDay    = oOrg.SendThirdDay;
     mbSendGround      = oOrg.SendGround;
     mbSendDwg         = oOrg.SendDwg;
     mbSendDxf         = oOrg.SendDxf;
     mbSendPdf         = oOrg.SendPdf;
     msSendEmailOther  = oOrg.SendEmailOther;
     mbSendFTPDwg      = oOrg.SendFTPDwg;
     mbSendFTPDwf      = oOrg.SendFTPDwf;
     mbSendFTPPdf      = oOrg.SendFTPPdf;
     msSendFTPOther    = oOrg.SendFTPOther;
     mbSendSPDwg       = oOrg.SendSPDwg;
     mbSendSPDwf       = oOrg.SendSPDwf;
     mbSendSPPdf       = oOrg.SendSPPdf;
     msSendSPOther     = oOrg.SendSPOther;
     mbSendRegular     = oOrg.SendRegular;
     mbSendDelivery    = oOrg.SendDelivery;
     mbSendPickup      = oOrg.SendPickup;
     msGeneralDesc     = oOrg.GeneralDesc;
     msComments        = oOrg.Comments;
 }
Example #2
0
        private void LoadVals(string strXml)
        {
            XmlSerializer s;
            StringReader  sr;

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

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

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

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

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

            base.LoadFromObj(o);

            o = null;
            sr.Close();
            sr = null;
            s  = null;
        }
Example #4
0
 public void Copy(COTransmittalRelease oNew)
 {
     oNew.ID              = miID;
     oNew.DateIssued      = mdDateIssued;
     oNew.IssuedBy        = msIssuedBy;
     oNew.ReleaseNumber   = msReleaseNumber;
     oNew.ProjectID       = miProjectID;
     oNew.DeptID          = miDeptID;
     oNew.TypeTransOnly   = mbTypeTransOnly;
     oNew.TypeFullPrint   = mbTypeFullPrint;
     oNew.TypeReduced     = mbTypeReduced;
     oNew.TypeEmail       = mbTypeEmail;
     oNew.TypeERoom       = mbTypeERoom;
     oNew.TypeCD          = mbTypeCD;
     oNew.RelPreliminary  = mbRelPreliminary;
     oNew.RelApproval     = mbRelApproval;
     oNew.RelBidding      = mbRelBidding;
     oNew.RelConstruction = mbRelConstruction;
     oNew.RelOther        = mbRelOther;
     oNew.RelOtherTxt     = msRelOtherTxt;
     oNew.SendNextDay     = mbSendNextDay;
     oNew.SendSecDay      = mbSendSecDay;
     oNew.SendThirdDay    = mbSendThirdDay;
     oNew.SendGround      = mbSendGround;
     oNew.SendDwg         = mbSendDwg;
     oNew.SendDxf         = mbSendDxf;
     oNew.SendPdf         = mbSendPdf;
     oNew.SendEmailOther  = msSendEmailOther;
     oNew.SendFTPDwg      = mbSendFTPDwg;
     oNew.SendFTPDwf      = mbSendFTPDwf;
     oNew.SendFTPPdf      = mbSendFTPPdf;
     oNew.SendFTPOther    = msSendFTPOther;
     oNew.SendSPDwg       = mbSendSPDwg;
     oNew.SendSPDwf       = mbSendSPDwf;
     oNew.SendSPPdf       = mbSendSPPdf;
     oNew.SendSPOther     = msSendSPOther;
     oNew.SendRegular     = mbSendRegular;
     oNew.SendDelivery    = mbSendDelivery;
     oNew.SendPickup      = mbSendPickup;
     oNew.GeneralDesc     = msGeneralDesc;
     oNew.Comments        = msComments;
 }
Example #5
0
        public string GetDataString()
        {
            string tmpStr;
            COTransmittalRelease o;
            XmlSerializer        s;
            StringWriter         sw;

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

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

            tmpStr = sw.ToString();

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

            return(tmpStr);
        }
Example #6
0
        public string GetByID(int lID)
        {
            SqlDataReader dr;

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

            cnn             = new RSLib.CDbConnection();
            cmd             = new SqlCommand("spTransmittalRelease_ByID2", 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 COTransmittalRelease();

                oVar.ID              = Convert.ToInt32(dr["ID"]);
                oVar.DateIssued      = Convert.ToDateTime(dr["DateIssued"]);
                oVar.IssuedBy        = dr["IssuedBy"].ToString();
                oVar.ReleaseNumber   = dr["ReleaseNumber"].ToString();
                oVar.ProjectID       = Convert.ToInt32(dr["ProjectID"]);
                oVar.DeptID          = Convert.ToInt32(dr["DeptID"]);
                oVar.TypeTransOnly   = Convert.ToBoolean(dr["TypeTransOnly"]);
                oVar.TypeFullPrint   = Convert.ToBoolean(dr["TypeFullPrint"]);
                oVar.TypeReduced     = Convert.ToBoolean(dr["TypeReduced"]);
                oVar.TypeEmail       = Convert.ToBoolean(dr["TypeEmail"]);
                oVar.TypeERoom       = Convert.ToBoolean(dr["TypeERoom"]);
                oVar.TypeCD          = Convert.ToBoolean(dr["TypeCD"]);
                oVar.RelPreliminary  = Convert.ToBoolean(dr["RelPreliminary"]);
                oVar.RelApproval     = Convert.ToBoolean(dr["RelApproval"]);
                oVar.RelBidding      = Convert.ToBoolean(dr["RelBidding"]);
                oVar.RelConstruction = Convert.ToBoolean(dr["RelConstruction"]);
                oVar.RelOther        = Convert.ToBoolean(dr["RelOther"]);
                oVar.RelOtherTxt     = dr["RelOtherTxt"].ToString();

                oVar.SendNextDay  = Convert.ToBoolean(dr["SendNextDay"]);
                oVar.SendSecDay   = Convert.ToBoolean(dr["SendSecDay"]);
                oVar.SendThirdDay = Convert.ToBoolean(dr["SendThirdDay"]);
                oVar.SendGround   = Convert.ToBoolean(dr["SendGround"]);

                oVar.SendDwg        = Convert.ToBoolean(dr["SendDwg"]);
                oVar.SendDxf        = Convert.ToBoolean(dr["SendDxf"]);
                oVar.SendPdf        = Convert.ToBoolean(dr["SendPdf"]);
                oVar.SendEmailOther = dr["SendEmailOther"].ToString();

                oVar.SendFTPDwg   = Convert.ToBoolean(dr["SendFTPDwg"]);
                oVar.SendFTPDwf   = Convert.ToBoolean(dr["SendFTPDwf"]);
                oVar.SendFTPPdf   = Convert.ToBoolean(dr["SendFTPPdf"]);
                oVar.SendFTPOther = dr["SendFTPOther"].ToString();

                oVar.SendSPDwg   = Convert.ToBoolean(dr["SendSPDwg"]);
                oVar.SendSPDwf   = Convert.ToBoolean(dr["SendSPDwf"]);
                oVar.SendSPPdf   = Convert.ToBoolean(dr["SendSPPdf"]);
                oVar.SendSPOther = dr["SendSPOther"].ToString();

                oVar.SendRegular  = Convert.ToBoolean(dr["SendRegular"]);
                oVar.SendDelivery = Convert.ToBoolean(dr["SendDelivery"]);
                oVar.SendPickup   = Convert.ToBoolean(dr["SendPickup"]);

                oVar.GeneralDesc = dr["GeneralDesc"].ToString();
                oVar.Comments    = dr["Comments"].ToString();
                tmpStr           = GetDataString();
            }

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

            return(tmpStr);
        }