Beispiel #1
0
 /// <summary>
 /// Code to Add or Edit supplier contact details from Supplier master to database
 /// </summary>
 /// <param name="ObjEsupplier"></param>
 /// <returns></returns>
 public ESupplier SaveSupplierContactDetails(ESupplier ObjEsupplier)
 {
     try
     {
         XmlDocument Xdoc  = new XmlDocument();
         string      XPath = "/Nouns/SupplierContact";
         Xdoc         = XMLBuilder.XmlConstruct(Xdoc, XPath, "SupplierID", Convert.ToString(ObjEsupplier.SupplierID));
         Xdoc         = XMLBuilder.XmlConstruct(Xdoc, XPath, "ContactPersonID", Convert.ToString(ObjEsupplier.ContactPersonID));
         Xdoc         = XMLBuilder.XmlConstruct(Xdoc, XPath, "ContactName", ObjEsupplier.ContactName);
         Xdoc         = XMLBuilder.XmlConstruct(Xdoc, XPath, "Salutation", ObjEsupplier.Salutation);
         Xdoc         = XMLBuilder.XmlConstruct(Xdoc, XPath, "Designation", ObjEsupplier.Designation);
         Xdoc         = XMLBuilder.XmlConstruct(Xdoc, XPath, "EmailID", ObjEsupplier.ContEmailID);
         Xdoc         = XMLBuilder.XmlConstruct(Xdoc, XPath, "Telephone", ObjEsupplier.ContTelephone);
         Xdoc         = XMLBuilder.XmlConstruct(Xdoc, XPath, "FAX", ObjEsupplier.ContFax);
         Xdoc         = XMLBuilder.XmlConstruct(Xdoc, XPath, "DefaultContact", Convert.ToString(ObjEsupplier.DefaultContact));
         ObjEsupplier = ObjDSupplier.SavedsSupplierContactDetails(Xdoc, ObjEsupplier);
         return(ObjEsupplier);
     }
     catch (Exception ex) { throw; }
 }