当前位置: 首页>>代码示例>>C#>>正文


C# SafeDataReader.GetString方法代码示例

本文整理汇总了C#中CSS2.Models.SafeDataReader.GetString方法的典型用法代码示例。如果您正苦于以下问题:C# SafeDataReader.GetString方法的具体用法?C# SafeDataReader.GetString怎么用?C# SafeDataReader.GetString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CSS2.Models.SafeDataReader的用法示例。


在下文中一共展示了SafeDataReader.GetString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: FetchActiveUsers

 internal void FetchActiveUsers(ActiveUsers user, SafeDataReader dr)
 {
     user.DisplayName = dr.GetString("DisplayName");
     user.UserName = dr.GetString("UserName");
     user.Roles = dr.GetString("Roles");
     user.Login = dr.GetDateTime("Login").ToString("dd MMM yyyy hh:mm:ss tt");
     user.Duration = dr.GetString("Duration");
     user.Logout = (dr.GetDateTime("LogoutOn") == DateTime.MinValue) ? string.Empty : dr.GetDateTime("LogoutOn").ToString("dd MMM yyyy hh:mm:ss tt");
 }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:9,代码来源:UserLogin.cs

示例2: FetchUnMatchedVendorDetails

 private Vendor FetchUnMatchedVendorDetails(Vendor vendor, SafeDataReader dr)
 {
     vendor.Date = dr.GetString("TransactionDate");
     vendor.UsedBy = dr.GetString("UsedBy");
     vendor.Description = dr.GetString("Description");
     vendor.VenderReferenceID = dr.GetString("VENDORREF");
     vendor.VendorAmount = dr.GetDecimal("VENDORAMOUNT");
     vendor.VRID = dr.GetInt32("VRID");
     vendor.VRDID = dr.GetInt32("VRDID");
     return vendor;
 }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:11,代码来源:Vendor.cs

示例3: FetchWODuplicateShareHoldersDetails

 private WODuplicateDetails FetchWODuplicateShareHoldersDetails(WODuplicateDetails WODuplicateDetails, SafeDataReader dr)
 {
     WODuplicateDetails.ID = dr.GetInt32("ID");
     WODuplicateDetails.Name = dr.GetString("Name");
     WODuplicateDetails.CertNo = dr.GetString("CertNo");
     WODuplicateDetails.NoofShares = dr.GetString("NoofShares");
     //if NULL Displaying as "" in UI
     WODuplicateDetails.DateOfIssue = dr.GetDateTime("DateOfIssue") == default(DateTime) ? string.Empty : dr.GetDateTime("DateOfIssue").ToString("dd/MM/yy");
     WODuplicateDetails.NoOfNewCertToBeIssued = dr.GetInt32("NoOfNewCertToBeIssued");
     return WODuplicateDetails;
 }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:11,代码来源:WODuplicateDetails.cs

示例4: FetchMatchedVendorDetails

 private Vendor FetchMatchedVendorDetails(Vendor vendor, SafeDataReader dr)
 {
     vendor.VenderReferenceID = dr.GetString("VENDORREF");
     vendor.VendorAmount = dr.GetDecimal("VENDORAMOUNT");
     vendor.DI = dr.GetString("DI");
     vendor.DIRef = dr.GetString("DIREF");
     vendor.DIAmount = dr.GetDecimal("DIAMOUNT");
     vendor.IsBilled = dr.GetBoolean("BILLED");
     vendor.Type = dr.GetString("TYPE");
     vendor.IsVerified = dr.GetBoolean("ISVERIFIED");
     vendor.VRID = dr.GetInt32("VRID");
     vendor.VRDID = dr.GetInt32("VRDID");
     vendor.ItemCode = dr.GetString("ItemCode");
     vendor.ItemNumber = dr.GetString("ItemNumber");
     vendor.WOCode = dr.GetString("WOCode");
     vendor.InvoiceNumber = dr.GetString("InvoiceNumber");
     vendor.ClientName = dr.GetString("ClientName");
     vendor.Date = dr.GetString("DATE");
     vendor.UsedBy = dr.GetString("SIC");
     vendor.GroupName = dr.GetString("GroupName");
     return vendor;
 }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:22,代码来源:Vendor.cs

示例5: FetchService

 private Vendor FetchService(Vendor vendor, SafeDataReader dr)
 {
     vendor.Type = dr.GetString("Type");
     vendor.UploadedOn = dr.GetString("UploadedOn");
     vendor.Username = dr.GetString("Name");
     vendor.VRID = dr.GetInt32("VRID");
     vendor.Name =  dr.GetString("FileName");
     return vendor;
 }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:9,代码来源:Vendor.cs

示例6: FetchMenu

        private MenuBinding FetchMenu(MenuBinding MenuBinding, SafeDataReader dr)
        {
            MenuBinding.MainMenuID = dr.GetString("MainMenuID");
            MenuBinding.MainMenuClass = dr.GetString("MainMenuClass");
            MenuBinding.MainMenuName = dr.GetString("MainMenuName");

            MenuBinding.SubMenuID = dr.GetString("SubMenuID");
            MenuBinding.SubMenuName = dr.GetString("SubMenuName");
            MenuBinding.URL = dr.GetString("URL");

            return MenuBinding;
        }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:12,代码来源:MenuBinding.cs

示例7: FetchVendorReportType1

 private Vendor FetchVendorReportType1(Vendor vendor, SafeDataReader dr)
 {
     vendor.Code = dr.GetString("Code");
     vendor.Name = dr.GetString("Name");
     vendor.Username = dr.GetString("Username");
     vendor.UploadedOn = dr.GetString("UploadedOn");
     return vendor;
 }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:8,代码来源:Vendor.cs

示例8: FetchBatchDetails

 private static CABBatch FetchBatchDetails(CABBatch CABBatch, SafeDataReader dr)
 {
     CABBatch.ID = dr.GetInt32("ID");
     CABBatch.Name = dr.GetString("Name");
     CABBatch.BatchCode = dr.GetString("BatchType");
     CABBatch.BatchID = dr.GetString("BatchID");
     CABBatch.FromDate = dr.GetDateTime("FromDate").ToString("dd/MM/yyyy");
     CABBatch.ToDate = dr.GetDateTime("ToDate").ToString("dd/MM/yyyy");
     CABBatch.FromDateList = CABBatch.FromDate == "" ? "" : dr.GetDateTime("FromDate").ToString("dd MMM yyyy");
     CABBatch.ToDateList = CABBatch.ToDate == "" ? "" : dr.GetDateTime("ToDate").ToString("dd MMM yyyy");
     CABBatch.CreatedDate = dr.GetDateTime("CreatedDate").ToString("dd MMM yyyy hh:mm:ss tt"); ;
     return CABBatch;
 }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:13,代码来源:CABBatch.cs

示例9: FetchBATCHType

 private static CABBatch FetchBATCHType(CABBatch CABBatch, SafeDataReader dr)
 {
     CABBatch.BatchCode = dr.GetString("BatchCode");
     CABBatch.Name = dr.GetString("Name");
     return CABBatch;
 }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:6,代码来源:CABBatch.cs

示例10: FetchScheduleHistory

 internal void FetchScheduleHistory(ScheduleHistory history, SafeDataReader dr)
 {
     history.Id = dr.GetInt32("Id");
     history.ScheduleName = dr.GetString("ScheduleName");
     history.Parameter = dr.GetString("Parameter");
     history.ScheduleDescription = dr.GetString("ScheduleDescription");
     history.RunbySystem = dr.GetString("RunbySystem");
     history.LatRunOn = dr.GetDateTime("LatRunOn").ToString("dd MMM yyyy hh:mm:ss tt");
 }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:9,代码来源:UserLogin.cs

示例11: FetchService

 private WOTypes FetchService(WOTypes wotypes, SafeDataReader dr)
 {
     wotypes.WOTypeId = dr.GetInt32("ID");
     wotypes.WOName = dr.GetString("Name");
     wotypes.WOCategoryCode = dr.GetString("CategoryCode");
     wotypes.WOCode = dr.GetString("Code");
     wotypes.WODescription = dr.GetString("Description");
     wotypes.Status = dr.GetBoolean("Status");
     return wotypes;
 }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:10,代码来源:WOTypes.cs

示例12: FetchErrorLogs

 internal void FetchErrorLogs(ErrorLogs ErrorLog, SafeDataReader dr)
 {
     ErrorLog.UserName = dr.GetString("UserName");
     ErrorLog.PageName = dr.GetString("PageName");
     ErrorLog.ErrorTime = dr.GetDateTime("ErrorTime").ToString("dd MMM yyyy hh:mm:ss tt");
     ErrorLog.Browser = dr.GetString("Browser");
     ErrorLog.IPAddress = dr.GetString("IPAddress");
     ErrorLog.ErrorMessage = dr.GetString("ErrorMessage");
 }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:9,代码来源:UserLogin.cs

示例13: FetchCss1IntegrationErrors

 internal void FetchCss1IntegrationErrors(Css1IntegrationErrors Css1IntegrationErrors, SafeDataReader dr)
 {
     Css1IntegrationErrors.ErrorNumber = dr.GetString("ErrorNumber");
     Css1IntegrationErrors.ErrorMessage = dr.GetString("ErrorMessage");
     Css1IntegrationErrors.ErrorState = dr.GetString("ErrorState");
     Css1IntegrationErrors.ErrorProcedure = dr.GetString("ErrorProcedure");
     Css1IntegrationErrors.ErrorLine = dr.GetString("ErrorLine");
     Css1IntegrationErrors.Type = dr.GetString("Type");
     Css1IntegrationErrors.CreatedOn = dr.GetDateTime("CreatedOn").ToString("dd MMM yyyy hh:mm:ss tt");
 }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:10,代码来源:UserLogin.cs

示例14: FetchCABErrors

 internal void FetchCABErrors(CABErrors ErrorLog, SafeDataReader dr)
 {
     ErrorLog.ID = dr.GetInt32("ID");
     ErrorLog.ERROR_NUMBER = dr.GetString("ERROR_NUMBER");
     ErrorLog.ERROR_SEVERITY = dr.GetString("ERROR_SEVERITY");
     ErrorLog.ERROR_STATE = dr.GetString("ERROR_STATE");
     ErrorLog.ERROR_PROCEDURE = dr.GetString("ERROR_PROCEDURE");
     ErrorLog.ERROR_LINE = dr.GetString("ERROR_LINE");
     ErrorLog.ERROR_MESSAGE = dr.GetString("ERROR_MESSAGE");
     ErrorLog.SCCode = dr.GetString("SCCode");
     ErrorLog.ONDate = dr.GetString("ONDate");
     ErrorLog.Client = dr.GetString("Client");
     ErrorLog.FeeCode = dr.GetString("FeeCode");
     ErrorLog.CREATEDATE = dr.GetDateTime("CREATEDATE").ToString("dd MMM yyyy hh:mm:ss tt");
 }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:15,代码来源:UserLogin.cs

示例15: FetchClientInfo

        private _ChoosenClient FetchClientInfo(_ChoosenClient getClientInfo, SafeDataReader dr)
        {
            getClientInfo.ClientCode = dr.GetString("ID");
            getClientInfo.ClientName = dr.GetString("Name");
            getClientInfo.SourceID = dr.GetString("SourceCode");
            getClientInfo.UniqueID = dr.GetInt32("UniqueID");

            return getClientInfo;
        }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:9,代码来源:_ChoosenClient.cs


注:本文中的CSS2.Models.SafeDataReader.GetString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。