public DOXAPI.Binder asBinder() { // Convert local class object to DOX-Pro binder object DOXAPI.Binder binder = new DOXAPI.Binder(); binder.DocType = flexOrder99Type; binder.Title = supplierID + "/" + Order99No;; // Create and set binder fileds according to its doc-type binder.Fields = new DOXAPI.Field[flexOrder99Type.Attributes.Length]; for (int i = 0; i < flexOrder99Type.Attributes.Length; i++) { DOXAPI.Field f = new DOXAPI.Field(); f.Attr = flexOrder99Type.Attributes[i]; switch (f.Attr.Name) { case "Order99No": f.Value = Order99No; break; case "SupplierID": f.Value = supplierID; break; default: f.Value = null; break; } binder.Fields[i] = f; } return(binder); }
public DOXAPI.Binder asIDBinder() { DOXAPI.Binder b = new DOXAPI.Binder(); b.DocType = flexClientBinderType; b.Fields = new DOXAPI.Field[1]; b.Fields[0] = DOXFields.newField("Customer ID", flexClientBinder_customerID, FullID); return(b); }
public DOXAPI.Binder asIDBinder() { DOXAPI.Binder b = new DOXAPI.Binder(); b.DocType = flexSupplierBinderType; b.Fields = new DOXAPI.Field[1]; b.Fields[0] = DOXFields.newField("Supplier No", flexSupplierBinder_supplierID, SupplierNo); return(b); }
public DOXAPI.Binder asBinder() { // Convert local class object to DOX-Pro binder object DOXAPI.Binder binder = new DOXAPI.Binder(); binder.DocType = flexSupplierBinderType; binder.Title = SupplierName; // Create and set binder fileds according to its doc-type binder.Fields = new DOXAPI.Field[flexSupplierBinderType.Attributes.Length]; for (int i = 0; i < flexSupplierBinderType.Attributes.Length; i++) { DOXAPI.Field f = new DOXAPI.Field(); f.Attr = flexSupplierBinderType.Attributes[i]; switch (f.Attr.Name) { case "Supplier No": f.Value = supplierNo; break; case "Name": f.Value = supplierName; break; case "Address": f.Value = supplierAddress; break; case "Purchasing Person": f.Value = purchasingPerson; break; case "Contact": f.Value = supplierContact; break; default: f.Value = null; break; } binder.Fields[i] = f; } return(binder); }
public DOXAPI.Binder asBinder() { // Convert local class object to DOX-Pro binder object DOXAPI.Binder binder = new DOXAPI.Binder(); binder.DocType = flexClientBinderType; binder.Title = clientName; // Create and set binder fileds according to its doc-type binder.Fields = new DOXAPI.Field[flexClientBinderType.Attributes.Length]; for (int i = 0; i < flexClientBinderType.Attributes.Length; i++) { DOXAPI.Field f = new DOXAPI.Field(); f.Attr = flexClientBinderType.Attributes[i]; switch (f.Attr.Name) { case "Customer ID": f.Value = FullID; break; case "Name": f.Value = ClientName; break; case "Address": f.Value = ClientAddress; break; case "Project Manager": f.Value = ProjectManager; break; case "Controller": f.Value = Controller; break; default: f.Value = null; break; } binder.Fields[i] = f; } return(binder); }