private void SetEntities() { List <string> list = new List <string>() { "AccountStatus", "AccountType", "AdjustmentReason", "ApplicableRate", "ApplicationSetting", "ApprovingAuthority", "Company", "Employee", "RevenueUnit", "City", "BranchCorpOffice", "Cluster", "Province", "Region", "Group", "RevenueUnitType", "Department", "Position", "BillingPeriod", "BusinessType", "Client", "Industry", "OrganizationType", "PaymentMode", "PaymentTerm", "AwbIssuance", "Batch", "BookingRemark", "Booking", "BookingStatus", "BranchAcceptance", "Remarks", "Bundle", "CargoTransfer", "Reason", "Status", "User", "Claim", "Role", "Commodity", "CommodityType", "WeightBreak", "DeliveredPackage", "Delivery", "DeliveryReceipt", "DeliveryRemark", "DeliveryStatus", "Shipment", "ShipmentAdjustment", "StatementOfAccount", "ShipmentBasicFee", "FuelSurcharge", "GoodsDescription", "PackageDimension", "Crating", "Packaging", "PackageNumber", "Payment", "PaymentType", "StatementOfAccountPayment", "ServiceMode", "ServiceType", "ShipMode", "Distribution", "ExpressRate", "RateMatrix", "FlightInfo", "GatewayInbound", "GatewayOutbound", "GatewayTransmittal", "HoldCargo", "Menu", "PackageNumberAcceptance", "TransferAcceptance", "PackageNumberTransfer", "PackageTransfer", "PaymentSummary", "PaymentSummaryStatus", "PaymentTurnover", "RecordChange", "Segregation", "ShipmentStatus", "ShipmentTracking", "StatementOfAccountNumber", "StatementOfAccountPrint", "TntMaint", "TransmittalStatus", "TransShipmentLeg", "TransShipmentRoute", "TruckAreaMapping", "Truck", "Unbundle", "RoleUser", "MenuAccess", "SubMenu" }; _entities = new List <SyncTables>(); foreach (string item in list) { SyncTables table = new SyncTables(); table.TableName = item; _entities.Add(table); } }
private void gridTables_CellValueChanged(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e) { IEditableObject editableObject = e.Row.DataBoundItem as IEditableObject; if (editableObject != null) { editableObject.EndEdit(); } SyncTables table = e.Row.DataBoundItem as SyncTables; if (table != null) { _entities.Remove(table); _entities.Add(table); } }