Esempio n. 1
0
        public String updateSupplierFields(DOXAPI.TreeItemWithDocType SupplierBinder)
        {
            string debugStep = "k10-0";

            try
            {
                SupplierBinder.Title = SupplierName;
                debugStep            = "k10-1";
                DOXFields.SetField(SupplierBinder, "Suppliers name", SupplierName);
                debugStep = "k10-2";
                DOXFields.SetField(SupplierBinder, "Address", SupplierAddress);
                debugStep = "k10-3";
                DOXFields.SetField(SupplierBinder, "Purchasing person", SupplierContact);
                debugStep = "k10-4";
                DOXFields.SetField(SupplierBinder, "Phone no", SupplierPhone);
                debugStep = "k10-5";
                DOXFields.SetField(SupplierBinder, "Email address", SupplierEmail);
                debugStep = "k10-6";
                DOXFields.SetField(SupplierBinder, "Search key", SearchKey);
                debugStep = "k10-7";
                return("");
            }
            catch (Exception ex)
            {
                return(debugStep + " " + ex.Message);
            }
        }
Esempio n. 2
0
        public String updateCustomerFields(DOXAPI.TreeItemWithDocType customerBinder)
        {
            string debugStep = "k10-0";

            try
            {
                customerBinder.Title = ClientName;
                debugStep            = "k10-1";
                DOXFields.SetField(customerBinder, "Name", ClientName);
                debugStep = "k10-2";
                DOXFields.SetField(customerBinder, "Address", ClientAddress);
                debugStep = "k10-3";
                DOXFields.SetField(customerBinder, "Project Manager", ProjectManager);
                debugStep = "k10-4";
                DOXFields.SetField(customerBinder, "Controller", Controller);
                debugStep = "k10-5";
                return("");
            }
            catch (Exception ex)
            {
                return(debugStep + " " + ex.Message);
            }
        }