Ejemplo n.º 1
0
        private void MyXml(CLAS.FileAccountRow r, System.Xml.XmlDocument xd)
        {
            System.Xml.XmlElement xe = (System.Xml.XmlElement)xd.SelectSingleNode("//toc[@type='account' and @id=" + r.FileAccountId.ToString() + "]");
            if (xe == null)
            {
                xe = xd.CreateElement("toc");
                xe.SetAttribute("type", "account");
                xe.SetAttribute("supertype", "fileaccount");
            }
            xe.SetAttribute("id", r.FileAccountId.ToString());
            xe.SetAttribute("titlee", r["AccountTypeCode"].ToString() + " (" + r["DARSAccountType"].ToString() + ")");
            xe.SetAttribute("titlef", r["AccountTypeCode"].ToString() + " (" + r["DARSAccountType"].ToString() + ")");

            if (r.ActiveWithJustice)
            {
                xe.SetAttribute("tooltipe", "Assigned");
                xe.SetAttribute("strikeout", "false");
            }
            else
            {
                xe.SetAttribute("tooltipe", "Not Assigned");
                xe.SetAttribute("strikeout", "true");
            }


            if (xe.ParentNode == null)
            {
                System.Xml.XmlElement xes = EFileBE.XmlAddFld(xd, "account", "Accounts", "Comptes", 220);
                xes.AppendChild(xe);
            }
        }
Ejemplo n.º 2
0
 public override System.Collections.Generic.List <int> Accounts(int id)
 {
     CLAS.FileAccountRow ahr = myFileAccountDT.FindByFileAccountId(id);
     System.Collections.Generic.List <int> l = new System.Collections.Generic.List <int>();
     l.Add(ahr.FileAccountId);
     return(l);
 }
Ejemplo n.º 3
0
        protected override void AfterUpdate(DataRow dr)
        {
            CLAS.FileAccountRow r = (CLAS.FileAccountRow)dr;

            System.Xml.XmlDocument xd = new System.Xml.XmlDocument();
            xd.InnerXml = myA.FM.CurrentFile.FileStructXml;
            MyXml(r, xd);
            myA.FM.CurrentFile.FileStructXml = xd.InnerXml;
            //myA.EFile.Update();
        }