public static void getUserDefaults(ICswResources CswResources, CswNbtAuthReturn Ret, object Request) { CswNbtResources NbtResources = (CswNbtResources)CswResources; if (CswTools.IsPrimaryKey(NbtResources.CurrentNbtUser.DefaultLocationId)) { Ret.Data.DefaultLocationId = NbtResources.CurrentNbtUser.DefaultLocationId.ToString(); } if (CswTools.IsPrimaryKey(NbtResources.CurrentNbtUser.DefaultPrinterId)) { Ret.Data.DefaultPrinterId = NbtResources.CurrentNbtUser.DefaultPrinterId.ToString(); } if (CswTools.IsPrimaryKey(NbtResources.CurrentNbtUser.DefaultBalanceId)) { Ret.Data.DefaultBalanceId = NbtResources.CurrentNbtUser.DefaultBalanceId.ToString(); } if (CswTools.IsPrimaryKey(NbtResources.CurrentNbtUser.JurisdictionId)) { Ret.Data.JurisdictionId = NbtResources.CurrentNbtUser.JurisdictionId.ToString(); } if (CswTools.IsPrimaryKey(NbtResources.CurrentNbtUser.CurrentWorkUnitId)) { Ret.Data.WorkUnitId = NbtResources.CurrentNbtUser.CurrentWorkUnitId.ToString(); } Ret.Data.DateFormatDn = NbtResources.CurrentNbtUser.DateFormat; Ret.Data.TimeFormatDn = NbtResources.CurrentNbtUser.TimeFormat; Ret.Data.DateFormatJs = CswTools.ConvertNetToPHP(NbtResources.CurrentNbtUser.DateFormat); Ret.Data.TimeFormatJs = CswTools.ConvertNetToPHP(NbtResources.CurrentNbtUser.TimeFormat); }
public static void getDefaults(ICswResources CswResources, CswNbtAuthReturn Ret, CswWebSvcSessionAuthenticateData.Authentication.Request Request) { getUserDefaults(CswResources, Ret, Request); SchemaDetails SchemaDetails = _checkSchemaVersion((CswNbtResources)CswResources); Ret.Data.SchemaData = SchemaDetails; }