/// <summary> /// Inserts the instance of CashRepository class on the database table "office.cash_repositories". /// </summary> /// <param name="cashRepository">The instance of "CashRepository" class to insert.</param> public void Add(MixERP.Net.Entities.Office.CashRepository cashRepository) { if(string.IsNullOrWhiteSpace(this.Catalog)) { return; } try { if (!this.SkipValidation) { if (!this.Validated) { this.Validate(AccessTypeEnum.Create, this.LoginId, false); } if (!this.HasAccess) { throw new UnauthorizedException("Access is denied."); } } Factory.Insert(this.Catalog, cashRepository); } catch (UnauthorizedException ex) { Log.Error("{Exception} {@Exception}", ex.Message, ex); throw new MixERPException(ex.Message, ex); } }
/// <summary> /// Prepares, validates, and executes the function "transactions.post_purhcase_reorder(_value_date date, _login_id bigint, _user_id integer, _office_id integer, _details transactions.purchase_reorder_type[])" on the database. /// </summary> /// <param name="valueDate">Enter argument value for "_value_date" parameter of the function "transactions.post_purhcase_reorder".</param> /// <param name="loginIdParameter">Enter argument value for "_login_id" parameter of the function "transactions.post_purhcase_reorder".</param> /// <param name="userId">Enter argument value for "_user_id" parameter of the function "transactions.post_purhcase_reorder".</param> /// <param name="officeId">Enter argument value for "_office_id" parameter of the function "transactions.post_purhcase_reorder".</param> /// <param name="details">Enter argument value for "_details" parameter of the function "transactions.post_purhcase_reorder".</param> public PostPurhcaseReorderProcedure(DateTime valueDate,long loginIdParameter,int userId,int officeId,MixERP.Net.Entities.Transactions.PurchaseReorderType[][] details) { this.ValueDate = valueDate; this.LoginIdParameter = loginIdParameter; this.UserId = userId; this.OfficeId = officeId; this.Details = details; }
/// <summary> /// Prepares, validates, and executes the function "transactions.post_opening_inventory(_office_id integer, _user_id integer, _login_id bigint, _value_date date, _reference_number character varying, _statement_reference text, _details transactions.opening_stock_type[])" on the database. /// </summary> /// <param name="officeId">Enter argument value for "_office_id" parameter of the function "transactions.post_opening_inventory".</param> /// <param name="userId">Enter argument value for "_user_id" parameter of the function "transactions.post_opening_inventory".</param> /// <param name="loginId">Enter argument value for "_login_id" parameter of the function "transactions.post_opening_inventory".</param> /// <param name="valueDate">Enter argument value for "_value_date" parameter of the function "transactions.post_opening_inventory".</param> /// <param name="referenceNumber">Enter argument value for "_reference_number" parameter of the function "transactions.post_opening_inventory".</param> /// <param name="statementReference">Enter argument value for "_statement_reference" parameter of the function "transactions.post_opening_inventory".</param> /// <param name="details">Enter argument value for "_details" parameter of the function "transactions.post_opening_inventory".</param> public PostOpeningInventoryProcedure(int officeId, int userId, long loginId, DateTime valueDate, string referenceNumber, string statementReference, MixERP.Net.Entities.Transactions.OpeningStockType[] details) { this.OfficeId = officeId; this.UserId = userId; this.LoginId = loginId; this.ValueDate = valueDate; this.ReferenceNumber = referenceNumber; this.StatementReference = statementReference; this.Details = details; }
/// <summary> /// Prepares, validates, and executes the function "transactions.post_stock_journal(_office_id integer, _user_id integer, _login_id bigint, _value_date date, _reference_number character varying, _statement_reference text, _details transactions.stock_adjustment_type[])" on the database. /// </summary> /// <param name="officeId">Enter argument value for "_office_id" parameter of the function "transactions.post_stock_journal".</param> /// <param name="userId">Enter argument value for "_user_id" parameter of the function "transactions.post_stock_journal".</param> /// <param name="loginIdParameter">Enter argument value for "_login_id" parameter of the function "transactions.post_stock_journal".</param> /// <param name="valueDate">Enter argument value for "_value_date" parameter of the function "transactions.post_stock_journal".</param> /// <param name="referenceNumber">Enter argument value for "_reference_number" parameter of the function "transactions.post_stock_journal".</param> /// <param name="statementReference">Enter argument value for "_statement_reference" parameter of the function "transactions.post_stock_journal".</param> /// <param name="details">Enter argument value for "_details" parameter of the function "transactions.post_stock_journal".</param> public PostStockJournalProcedure(int officeId, int userId, long loginIdParameter, DateTime valueDate, string referenceNumber, string statementReference, MixERP.Net.Entities.Transactions.StockAdjustmentType[][] details) { this.OfficeId = officeId; this.UserId = userId; this.LoginIdParameter = loginIdParameter; this.ValueDate = valueDate; this.ReferenceNumber = referenceNumber; this.StatementReference = statementReference; this.Details = details; }
/// <summary> /// Prepares, validates, and executes the function "transactions.post_inventory_transfer_delivery(_office_id integer, _user_id integer, _login_id bigint, _inventory_transfer_request_id bigint, _value_date date, _reference_number character varying, _statement_reference text, _shipper_id integer, _source_store_id integer, _details transactions.stock_adjustment_type[])" on the database. /// </summary> /// <param name="officeId">Enter argument value for "_office_id" parameter of the function "transactions.post_inventory_transfer_delivery".</param> /// <param name="userId">Enter argument value for "_user_id" parameter of the function "transactions.post_inventory_transfer_delivery".</param> /// <param name="loginId">Enter argument value for "_login_id" parameter of the function "transactions.post_inventory_transfer_delivery".</param> /// <param name="inventoryTransferRequestId">Enter argument value for "_inventory_transfer_request_id" parameter of the function "transactions.post_inventory_transfer_delivery".</param> /// <param name="valueDate">Enter argument value for "_value_date" parameter of the function "transactions.post_inventory_transfer_delivery".</param> /// <param name="referenceNumber">Enter argument value for "_reference_number" parameter of the function "transactions.post_inventory_transfer_delivery".</param> /// <param name="statementReference">Enter argument value for "_statement_reference" parameter of the function "transactions.post_inventory_transfer_delivery".</param> /// <param name="shipperId">Enter argument value for "_shipper_id" parameter of the function "transactions.post_inventory_transfer_delivery".</param> /// <param name="sourceStoreId">Enter argument value for "_source_store_id" parameter of the function "transactions.post_inventory_transfer_delivery".</param> /// <param name="details">Enter argument value for "_details" parameter of the function "transactions.post_inventory_transfer_delivery".</param> public PostInventoryTransferDeliveryProcedure(int officeId, int userId, long loginId, long inventoryTransferRequestId, DateTime valueDate, string referenceNumber, string statementReference, int shipperId, int sourceStoreId, MixERP.Net.Entities.Transactions.StockAdjustmentType[] details) { this.OfficeId = officeId; this.UserId = userId; this.LoginId = loginId; this.InventoryTransferRequestId = inventoryTransferRequestId; this.ValueDate = valueDate; this.ReferenceNumber = referenceNumber; this.StatementReference = statementReference; this.ShipperId = shipperId; this.SourceStoreId = sourceStoreId; this.Details = details; }
/// <summary> /// Prepares, validates, and executes the function "hrm.post_wage(_user_id integer, _office_id integer, _login_id bigint, _as_of date, _employee_id integer, _statement_reference text, _regular_hours numeric, _regular_pay_rate numeric, _overtime_hours numeric, _overtime_pay_rate numeric, _details hrm.wage_processing_details[])" on the database. /// </summary> /// <param name="userId">Enter argument value for "_user_id" parameter of the function "hrm.post_wage".</param> /// <param name="officeId">Enter argument value for "_office_id" parameter of the function "hrm.post_wage".</param> /// <param name="loginId">Enter argument value for "_login_id" parameter of the function "hrm.post_wage".</param> /// <param name="asOf">Enter argument value for "_as_of" parameter of the function "hrm.post_wage".</param> /// <param name="employeeId">Enter argument value for "_employee_id" parameter of the function "hrm.post_wage".</param> /// <param name="statementReference">Enter argument value for "_statement_reference" parameter of the function "hrm.post_wage".</param> /// <param name="regularHours">Enter argument value for "_regular_hours" parameter of the function "hrm.post_wage".</param> /// <param name="regularPayRate">Enter argument value for "_regular_pay_rate" parameter of the function "hrm.post_wage".</param> /// <param name="overtimeHours">Enter argument value for "_overtime_hours" parameter of the function "hrm.post_wage".</param> /// <param name="overtimePayRate">Enter argument value for "_overtime_pay_rate" parameter of the function "hrm.post_wage".</param> /// <param name="details">Enter argument value for "_details" parameter of the function "hrm.post_wage".</param> public PostWageProcedure(int userId, int officeId, long loginId, DateTime asOf, int employeeId, string statementReference, decimal regularHours, decimal regularPayRate, decimal overtimeHours, decimal overtimePayRate, MixERP.Net.Entities.HRM.WageProcessingDetail[] details) { this.UserId = userId; this.OfficeId = officeId; this.LoginId = loginId; this.AsOf = asOf; this.EmployeeId = employeeId; this.StatementReference = statementReference; this.RegularHours = regularHours; this.RegularPayRate = regularPayRate; this.OvertimeHours = overtimeHours; this.OvertimePayRate = overtimePayRate; this.Details = details; }
/// <summary> /// Prepares, validates, and executes the function "transactions.post_sales_return(_transaction_master_id bigint, _office_id integer, _user_id integer, _login_id bigint, _value_date date, _store_id integer, _party_code character varying, _price_type_id integer, _reference_number character varying, _statement_reference text, _details transactions.stock_detail_type[], _attachments core.attachment_type[])" on the database. /// </summary> /// <param name="transactionMasterId">Enter argument value for "_transaction_master_id" parameter of the function "transactions.post_sales_return".</param> /// <param name="officeId">Enter argument value for "_office_id" parameter of the function "transactions.post_sales_return".</param> /// <param name="userId">Enter argument value for "_user_id" parameter of the function "transactions.post_sales_return".</param> /// <param name="loginId">Enter argument value for "_login_id" parameter of the function "transactions.post_sales_return".</param> /// <param name="valueDate">Enter argument value for "_value_date" parameter of the function "transactions.post_sales_return".</param> /// <param name="storeId">Enter argument value for "_store_id" parameter of the function "transactions.post_sales_return".</param> /// <param name="partyCode">Enter argument value for "_party_code" parameter of the function "transactions.post_sales_return".</param> /// <param name="priceTypeId">Enter argument value for "_price_type_id" parameter of the function "transactions.post_sales_return".</param> /// <param name="referenceNumber">Enter argument value for "_reference_number" parameter of the function "transactions.post_sales_return".</param> /// <param name="statementReference">Enter argument value for "_statement_reference" parameter of the function "transactions.post_sales_return".</param> /// <param name="details">Enter argument value for "_details" parameter of the function "transactions.post_sales_return".</param> /// <param name="attachments">Enter argument value for "_attachments" parameter of the function "transactions.post_sales_return".</param> public PostSalesReturnProcedure(long transactionMasterId, int officeId, int userId, long loginId, DateTime valueDate, int storeId, string partyCode, int priceTypeId, string referenceNumber, string statementReference, MixERP.Net.Entities.Transactions.StockDetailType[] details, MixERP.Net.Entities.Core.AttachmentType[] attachments) { this.TransactionMasterId = transactionMasterId; this.OfficeId = officeId; this.UserId = userId; this.LoginId = loginId; this.ValueDate = valueDate; this.StoreId = storeId; this.PartyCode = partyCode; this.PriceTypeId = priceTypeId; this.ReferenceNumber = referenceNumber; this.StatementReference = statementReference; this.Details = details; this.Attachments = attachments; }
/// <summary> /// Prepares, validates, and executes the function "transactions.post_purchase(_book_name character varying, _office_id integer, _user_id integer, _login_id bigint, _value_date date, _cost_center_id integer, _reference_number character varying, _statement_reference text, _is_credit boolean, _party_code character varying, _price_type_id integer, _shipper_id integer, _store_id integer, _tran_ids bigint[], _details transactions.stock_detail_type[], _attachments core.attachment_type[])" on the database. /// </summary> /// <param name="bookName">Enter argument value for "_book_name" parameter of the function "transactions.post_purchase".</param> /// <param name="officeId">Enter argument value for "_office_id" parameter of the function "transactions.post_purchase".</param> /// <param name="userId">Enter argument value for "_user_id" parameter of the function "transactions.post_purchase".</param> /// <param name="loginIdParameter">Enter argument value for "_login_id" parameter of the function "transactions.post_purchase".</param> /// <param name="valueDate">Enter argument value for "_value_date" parameter of the function "transactions.post_purchase".</param> /// <param name="costCenterId">Enter argument value for "_cost_center_id" parameter of the function "transactions.post_purchase".</param> /// <param name="referenceNumber">Enter argument value for "_reference_number" parameter of the function "transactions.post_purchase".</param> /// <param name="statementReference">Enter argument value for "_statement_reference" parameter of the function "transactions.post_purchase".</param> /// <param name="isCredit">Enter argument value for "_is_credit" parameter of the function "transactions.post_purchase".</param> /// <param name="partyCode">Enter argument value for "_party_code" parameter of the function "transactions.post_purchase".</param> /// <param name="priceTypeId">Enter argument value for "_price_type_id" parameter of the function "transactions.post_purchase".</param> /// <param name="shipperId">Enter argument value for "_shipper_id" parameter of the function "transactions.post_purchase".</param> /// <param name="storeId">Enter argument value for "_store_id" parameter of the function "transactions.post_purchase".</param> /// <param name="tranIds">Enter argument value for "_tran_ids" parameter of the function "transactions.post_purchase".</param> /// <param name="details">Enter argument value for "_details" parameter of the function "transactions.post_purchase".</param> /// <param name="attachments">Enter argument value for "_attachments" parameter of the function "transactions.post_purchase".</param> public PostPurchaseProcedure(string bookName,int officeId,int userId,long loginIdParameter,DateTime valueDate,int costCenterId,string referenceNumber,string statementReference,bool isCredit,string partyCode,int priceTypeId,int shipperId,int storeId,long[] tranIds,MixERP.Net.Entities.Transactions.StockDetailType[][] details,MixERP.Net.Entities.Core.AttachmentType[][] attachments) { this.BookName = bookName; this.OfficeId = officeId; this.UserId = userId; this.LoginIdParameter = loginIdParameter; this.ValueDate = valueDate; this.CostCenterId = costCenterId; this.ReferenceNumber = referenceNumber; this.StatementReference = statementReference; this.IsCredit = isCredit; this.PartyCode = partyCode; this.PriceTypeId = priceTypeId; this.ShipperId = shipperId; this.StoreId = storeId; this.TranIds = tranIds; this.Details = details; this.Attachments = attachments; }
public void Add(MixERP.Net.Entities.Core.ItemCostPrice itemCostPrice) { if (itemCostPrice == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.ItemCostPriceContext.Add(itemCostPrice); } catch (UnauthorizedException) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Forbidden)); } catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }
public void Add(MixERP.Net.Entities.Policy.ApiAccessPolicy apiAccessPolicy) { if (apiAccessPolicy == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.ApiAccessPolicyContext.Add(apiAccessPolicy); } catch (UnauthorizedException) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Unauthorized)); } catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }
public void Add(MixERP.Net.Entities.Transactions.InventoryTransferRequestDetail inventoryTransferRequestDetail) { if (inventoryTransferRequestDetail == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.InventoryTransferRequestDetailContext.Add(inventoryTransferRequestDetail); } catch (UnauthorizedException) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Forbidden)); } catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }
public void Add(MixERP.Net.Entities.Core.CompoundUnit compoundUnit) { if (compoundUnit == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.CompoundUnitContext.Add(compoundUnit); } catch (UnauthorizedException) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Forbidden)); } catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }
public void Add(MixERP.Net.Entities.Config.DbParameter dbParameter) { if (dbParameter == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.DbParameterContext.Add(dbParameter); } catch (UnauthorizedException) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Forbidden)); } catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }
public void Add(MixERP.Net.Entities.Audit.LoggedAction loggedAction) { if (loggedAction == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.LoggedActionContext.Add(loggedAction); } catch (UnauthorizedException) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Forbidden)); } catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }
public void Add(MixERP.Net.Entities.Core.BonusSlabDetail bonusSlabDetail) { if (bonusSlabDetail == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.BonusSlabDetailContext.Add(bonusSlabDetail); } catch (UnauthorizedException) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Forbidden)); } catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }
public void Add(MixERP.Net.Entities.Transactions.NonGlStockMasterRelation nonGlStockMasterRelation) { if (nonGlStockMasterRelation == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.NonGlStockMasterRelationContext.Add(nonGlStockMasterRelation); } catch (UnauthorizedException) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Forbidden)); } catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }
/// <summary> /// Prepares, validates, and executes the function "transactions.post_non_gl_transaction(_book_name character varying, _office_id integer, _user_id integer, _login_id bigint, _value_date date, _reference_number character varying, _statement_reference text, _party_code character varying, _price_type_id integer, _is_non_taxable_sales boolean, _salesperson_id integer, _shipper_id integer, _shipping_address_code character varying, _store_id integer, _tran_ids bigint[], _details transactions.stock_detail_type[], _attachments core.attachment_type[])" on the database. /// </summary> /// <param name="bookName">Enter argument value for "_book_name" parameter of the function "transactions.post_non_gl_transaction".</param> /// <param name="officeId">Enter argument value for "_office_id" parameter of the function "transactions.post_non_gl_transaction".</param> /// <param name="userId">Enter argument value for "_user_id" parameter of the function "transactions.post_non_gl_transaction".</param> /// <param name="loginIdParameter">Enter argument value for "_login_id" parameter of the function "transactions.post_non_gl_transaction".</param> /// <param name="valueDate">Enter argument value for "_value_date" parameter of the function "transactions.post_non_gl_transaction".</param> /// <param name="referenceNumber">Enter argument value for "_reference_number" parameter of the function "transactions.post_non_gl_transaction".</param> /// <param name="statementReference">Enter argument value for "_statement_reference" parameter of the function "transactions.post_non_gl_transaction".</param> /// <param name="partyCode">Enter argument value for "_party_code" parameter of the function "transactions.post_non_gl_transaction".</param> /// <param name="priceTypeId">Enter argument value for "_price_type_id" parameter of the function "transactions.post_non_gl_transaction".</param> /// <param name="isNonTaxableSales">Enter argument value for "_is_non_taxable_sales" parameter of the function "transactions.post_non_gl_transaction".</param> /// <param name="salespersonId">Enter argument value for "_salesperson_id" parameter of the function "transactions.post_non_gl_transaction".</param> /// <param name="shipperId">Enter argument value for "_shipper_id" parameter of the function "transactions.post_non_gl_transaction".</param> /// <param name="shippingAddressCode">Enter argument value for "_shipping_address_code" parameter of the function "transactions.post_non_gl_transaction".</param> /// <param name="storeId">Enter argument value for "_store_id" parameter of the function "transactions.post_non_gl_transaction".</param> /// <param name="tranIds">Enter argument value for "_tran_ids" parameter of the function "transactions.post_non_gl_transaction".</param> /// <param name="details">Enter argument value for "_details" parameter of the function "transactions.post_non_gl_transaction".</param> /// <param name="attachments">Enter argument value for "_attachments" parameter of the function "transactions.post_non_gl_transaction".</param> public PostNonGlTransactionProcedure(string bookName, int officeId, int userId, long loginIdParameter, DateTime valueDate, string referenceNumber, string statementReference, string partyCode, int priceTypeId, bool isNonTaxableSales, int salespersonId, int shipperId, string shippingAddressCode, int storeId, long[] tranIds, MixERP.Net.Entities.Transactions.StockDetailType[][] details, MixERP.Net.Entities.Core.AttachmentType[][] attachments) { this.BookName = bookName; this.OfficeId = officeId; this.UserId = userId; this.LoginIdParameter = loginIdParameter; this.ValueDate = valueDate; this.ReferenceNumber = referenceNumber; this.StatementReference = statementReference; this.PartyCode = partyCode; this.PriceTypeId = priceTypeId; this.IsNonTaxableSales = isNonTaxableSales; this.SalespersonId = salespersonId; this.ShipperId = shipperId; this.ShippingAddressCode = shippingAddressCode; this.StoreId = storeId; this.TranIds = tranIds; this.Details = details; this.Attachments = attachments; }
public void Add(MixERP.Net.Entities.Config.Smtp smtp) { if (smtp == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.SmtpContext.Add(smtp); } catch (UnauthorizedException) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Unauthorized)); } catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }
public void Add(MixERP.Net.Entities.Transactions.CustomerReceipt customerReceipt) { if (customerReceipt == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.CustomerReceiptContext.Add(customerReceipt); } catch (UnauthorizedException) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Unauthorized)); } catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }
public void Add(MixERP.Net.Entities.Config.AttachmentFactory attachmentFactory) { if (attachmentFactory == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.AttachmentFactoryContext.Add(attachmentFactory); } catch (UnauthorizedException) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Unauthorized)); } catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }
public void Add(MixERP.Net.Entities.HRM.Holiday holiday) { if (holiday == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.HolidayContext.Add(holiday); } catch (UnauthorizedException) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Forbidden)); } catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }
public void Add(MixERP.Net.Entities.Core.PaymentTerm paymentTerm) { if (paymentTerm == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.PaymentTermContext.Add(paymentTerm); } catch (UnauthorizedException) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Forbidden)); } catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }
public void Add(MixERP.Net.Entities.Policy.EntityAccess entityAccess) { if (entityAccess == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.EntityAccessContext.Add(entityAccess); } catch (UnauthorizedException) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Forbidden)); } catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }
public void Add(MixERP.Net.Entities.Core.SalespersonBonusSetup salespersonBonusSetup) { if (salespersonBonusSetup == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.SalespersonBonusSetupContext.Add(salespersonBonusSetup); } catch (UnauthorizedException) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Forbidden)); } catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }
public void Add(MixERP.Net.Entities.Core.ShippingPackageShape shippingPackageShape) { if (shippingPackageShape == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.ShippingPackageShapeContext.Add(shippingPackageShape); } catch (UnauthorizedException) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Forbidden)); } catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }
public void Add(MixERP.Net.Entities.Office.CostCenter costCenter) { if (costCenter == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.CostCenterContext.Add(costCenter); } catch (UnauthorizedException) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Unauthorized)); } catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }
public void Add(MixERP.Net.Entities.Localization.Culture culture) { if (culture == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.CultureContext.Add(culture); } catch (UnauthorizedException) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Forbidden)); } catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }
public void Add(MixERP.Net.Entities.HRM.EmployeeExperience employeeExperience) { if (employeeExperience == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.EmployeeExperienceContext.Add(employeeExperience); } catch (UnauthorizedException) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Forbidden)); } catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }
public void Add(MixERP.Net.Entities.Transactions.Routine routine) { if (routine == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.RoutineContext.Add(routine); } catch (UnauthorizedException) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Forbidden)); } catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }
public void Add(MixERP.Net.Entities.Transactions.DayOperation dayOperation) { if (dayOperation == null) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.MethodNotAllowed)); } try { this.DayOperationContext.Add(dayOperation); } catch (UnauthorizedException) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Unauthorized)); } catch { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }