示例#1
0
        private bool AddData()
        {
            try
            {
                using (var context = new RubberSoftEntities())
                {
                    var query = context.spt_AddCustomer(stCustomerTypeId, CustomerGroupId, sCustomerCode, sCustomerName, TxtCustomerAddress.Text,
                                                        TxtLicensePlate.Text, TxtPhone.Text, false, ClassProperty.permisUserID);

                    return(true);
                }
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show(ex.Message);
                return(false);
            }
        }