예제 #1
0
        public void LoadVals(string strXml)
        {
            XmlSerializer s;
            StringReader  sr;
            CODrawingLog  o;

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

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

            base.LoadFromObj(o);

            o = null;
            sr.Close();
            sr = null;
            s  = null;
        }
예제 #2
0
 public void LoadFromObj(CODrawingLog oOrg)
 {
     miID                = oOrg.ID;
     miDepartmentID      = oOrg.DepartmentID;
     miProjectID         = oOrg.ProjectID;
     miProjectLeadID     = oOrg.ProjectLeadID;
     msWBS               = oOrg.WBS;
     msHGANumber         = oOrg.HGANumber;
     msClientNumber      = oOrg.ClientNumber;
     msCADNumber         = oOrg.CADNumber;
     miActCodeID         = oOrg.ActCodeID;
     miIsTaskDrwSpec     = oOrg.IsTaskDrwgSpec;
     miDrawingSizeID     = oOrg.DrawingSizeID;
     mdBudgetHrs         = oOrg.BudgetHrs;
     mdPercentComplete   = oOrg.PercentComplete;
     mdRemainingHrs      = oOrg.RemainingHrs;
     mdEarnedHrs         = oOrg.EarnedHrs;
     msTitle1            = oOrg.Title1;
     mbTitle1IsTitle     = oOrg.Title1IsTitle;
     mbTitle1IsDesc      = oOrg.Title1IsDesc;
     msTitle2            = oOrg.Title2;
     mbTitle2IsTitle     = oOrg.Title2IsTitle;
     mbTitle2IsDesc      = oOrg.Title2IsDesc;
     msTitle3            = oOrg.Title3;
     mbTitle3IsTitle     = oOrg.Title3IsTitle;
     mbTitle3IsDesc      = oOrg.Title3IsDesc;
     msTitle4            = oOrg.Title4;
     mbTitle4IsTitle     = oOrg.Title4IsTitle;
     mbTitle4IsDesc      = oOrg.Title4IsDesc;
     msTitle5            = oOrg.Title5;
     mbTitle5IsTitle     = oOrg.Title5IsTitle;
     mbTitle5IsDesc      = oOrg.Title5IsDesc;
     msTitle6            = oOrg.Title6;
     mbTitle6IsTitle     = oOrg.Title6IsTitle;
     mbTitle6IsDesc      = oOrg.Title6IsDesc;
     msRevision          = oOrg.Revision;
     miReleasedDrawingID = oOrg.ReleasedDrawingID;
     mdDateRevised       = oOrg.DateRevised;
     mdDateDue           = oOrg.DateDue;
     mdDateLate          = oOrg.DateLate;
 }
예제 #3
0
 public void Copy(CODrawingLog oNew)
 {
     oNew.ID                = miID;
     oNew.DepartmentID      = miDepartmentID;
     oNew.ProjectID         = miProjectID;
     oNew.ProjectLeadID     = miProjectLeadID;
     oNew.WBS               = msWBS;
     oNew.HGANumber         = msHGANumber;
     oNew.ClientNumber      = msClientNumber;
     oNew.CADNumber         = msCADNumber;
     oNew.ActCodeID         = miActCodeID;
     oNew.IsTaskDrwgSpec    = miIsTaskDrwSpec;
     oNew.DrawingSizeID     = miDrawingSizeID;
     oNew.BudgetHrs         = mdBudgetHrs;
     oNew.PercentComplete   = mdPercentComplete;
     oNew.RemainingHrs      = mdRemainingHrs;
     oNew.EarnedHrs         = mdEarnedHrs;
     oNew.Title1            = msTitle1;
     oNew.Title1IsTitle     = mbTitle1IsTitle;
     oNew.Title1IsDesc      = mbTitle1IsDesc;
     oNew.Title2            = msTitle2;
     oNew.Title2IsTitle     = mbTitle2IsTitle;
     oNew.Title2IsDesc      = mbTitle2IsDesc;
     oNew.Title3            = msTitle3;
     oNew.Title3IsTitle     = mbTitle3IsTitle;
     oNew.Title3IsDesc      = mbTitle3IsDesc;
     oNew.Title4            = msTitle4;
     oNew.Title4IsTitle     = mbTitle4IsTitle;
     oNew.Title4IsDesc      = mbTitle4IsDesc;
     oNew.Title5            = msTitle5;
     oNew.Title5IsTitle     = mbTitle5IsTitle;
     oNew.Title5IsDesc      = mbTitle5IsDesc;
     oNew.Title6            = msTitle6;
     oNew.Title6IsTitle     = mbTitle6IsTitle;
     oNew.Title6IsDesc      = mbTitle6IsDesc;
     oNew.Revision          = msRevision;
     oNew.ReleasedDrawingID = miReleasedDrawingID;
     oNew.DateRevised       = mdDateRevised;
     oNew.DateDue           = mdDateDue;
     oNew.DateLate          = mdDateLate;
 }
예제 #4
0
        public string GetDataString()
        {
            string        tmpStr;
            CODrawingLog  o;
            XmlSerializer s;
            StringWriter  sw;

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

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

            tmpStr = sw.ToString();

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

            return(tmpStr);
        }