Ejemplo n.º 1
0
        public void LoadVals(string strXml)
        {
            XmlSerializer     s;
            StringReader      sr;
            COBudgetWorksheet o;

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

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

            base.LoadFromObj(o);

            o = null;
            sr.Close();
            sr = null;
            s  = null;
        }
Ejemplo n.º 2
0
        public string GetDataString()
        {
            string            tmpStr;
            COBudgetWorksheet o;
            XmlSerializer     s;
            StringWriter      sw;

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

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

            tmpStr = sw.ToString();

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

            return(tmpStr);
        }
Ejemplo n.º 3
0
 public void LoadFromObj(COBudgetWorksheet oOrg)
 {
     miID              = oOrg.ID;
     miBudgetID        = oOrg.BudgetID;
     miDeptGroup       = oOrg.DeptGroup;
     msWorkGuid        = oOrg.WorkGuid;
     msWBS             = oOrg.WBS;
     msItemDescription = oOrg.ItemDescription;
     miQuantity        = oOrg.Quantity;
     miSpec211         = oOrg.Spec211;
     miSpec212         = oOrg.Spec212;
     miSpec213         = oOrg.Spec213;
     miSpec214         = oOrg.Spec214;
     miSpec215         = oOrg.Spec215;
     miProc221         = oOrg.Proc221;
     miProc222         = oOrg.Proc222;
     miProc223         = oOrg.Proc223;
     miProc224         = oOrg.Proc224;
     miProc225         = oOrg.Proc225;
     miProc226         = oOrg.Proc226;
     miProc227         = oOrg.Proc227;
     miProc229         = oOrg.Proc229;
 }
Ejemplo n.º 4
0
 public void Copy(COBudgetWorksheet oNew)
 {
     oNew.ID              = miID;
     oNew.BudgetID        = miBudgetID;
     oNew.DeptGroup       = miDeptGroup;
     oNew.WorkGuid        = msWorkGuid;
     oNew.WBS             = msWBS;
     oNew.ItemDescription = msItemDescription;
     oNew.Quantity        = miQuantity;
     oNew.Spec211         = miSpec211;
     oNew.Spec212         = miSpec212;
     oNew.Spec213         = miSpec213;
     oNew.Spec214         = miSpec214;
     oNew.Spec215         = miSpec215;
     oNew.Proc221         = miProc221;
     oNew.Proc222         = miProc222;
     oNew.Proc223         = miProc223;
     oNew.Proc224         = miProc224;
     oNew.Proc225         = miProc225;
     oNew.Proc226         = miProc226;
     oNew.Proc227         = miProc227;
     oNew.Proc229         = miProc229;
 }