Beispiel #1
1
 partial void DeleteLKP_VENDOR_LOCKED(LKP_VENDOR_LOCKED instance);
Beispiel #2
1
 partial void InsertLKP_VENDOR_LOCKED(LKP_VENDOR_LOCKED instance);
Beispiel #3
0
        public int addVendorContact(string vendorParent, string name, string office, string mobile, string email)
        {
            try {
                LKP_VENDOR_LOCKED newRecord = new LKP_VENDOR_LOCKED();
                newRecord.VENDOR_NORM_NAME = vendorParent;
                newRecord.XREF_PARENT_VENDOR = vendorParent;
                newRecord.CONTACT_NAME = name;
                newRecord.CONTACT_OFFICE_PHONE = office;
                newRecord.CONTACT_MOBLE_PHONE = mobile;
                newRecord.CONTACT_EMAIL = email;

                dc.GetTable<LKP_VENDOR_LOCKED>().InsertOnSubmit(newRecord);

                dc.SubmitChanges();

                return newRecord.ID;
            } catch (SqlException se) {
                MainFactory.getLogSvc().logError("Index", MainFactory.getCurrentMethod(), "avc-01", se.Message + "\n" + se.StackTrace);
            }
            return -1;
        }
Beispiel #4
0
 partial void UpdateLKP_VENDOR_LOCKED(LKP_VENDOR_LOCKED instance);