本文整理汇总了C#中CSS2.Models.SafeDataReader.GetDecimal方法的典型用法代码示例。如果您正苦于以下问题:C# SafeDataReader.GetDecimal方法的具体用法?C# SafeDataReader.GetDecimal怎么用?C# SafeDataReader.GetDecimal使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CSS2.Models.SafeDataReader
的用法示例。
在下文中一共展示了SafeDataReader.GetDecimal方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FetchDITypeDetailsByItemNumber
private DisbursementItem FetchDITypeDetailsByItemNumber(DisbursementItem dIType, SafeDataReader dr)
{
dIType.Code = dr.GetString("Code");
if (dr["UnitPrice"] != null)
{
dIType.UnitPrice = dr.GetDecimal("UnitPrice");
}
else
{
dIType.UnitPrice = null;
}
dIType.Description = dr.GetString("Description");
dIType.NeedVerification = dr.GetBoolean("NeedVerification");
dIType.Quantity = dr.GetInt32("Units");
return dIType;
}
示例2: FetchInvoicePreview
public DIFeeInvoicePreview FetchInvoicePreview(DIFeeInvoicePreview getDIInvoicePreview, SafeDataReader dr)
{
getDIInvoicePreview.Amount = dr.GetDecimal("Amount");
getDIInvoicePreview.ACCPACCode = dr.GetString("ItemNumber");
getDIInvoicePreview.Description = dr.GetString("Description");
return getDIInvoicePreview;
}
示例3: FetchClientFeeScheduleInfo
public FeeSchedule FetchClientFeeScheduleInfo(FeeSchedule getClientFeeScheduleInfo, SafeDataReader dr)
{
getClientFeeScheduleInfo.ID = dr.GetInt32("ID");
// getClientFeeScheduleInfo.CFMID = dr.GetInt32("CFMID");
getClientFeeScheduleInfo.ClientCode = dr.GetString("ClientCode");
getClientFeeScheduleInfo.FeeCode = dr.GetString("FeeCode");
getClientFeeScheduleInfo.FromDate = dr.GetString("FromDate");
getClientFeeScheduleInfo.ToDate = dr.GetString("ToDate");
getClientFeeScheduleInfo.Amount = dr.GetDecimal("Amount");
getClientFeeScheduleInfo.Status = dr.GetString("Status");
getClientFeeScheduleInfo.FromDateStatus = dr.GetString("FromDateStatus");
getClientFeeScheduleInfo.ToDateStatus = dr.GetString("ToDateStatus");
if (getClientFeeScheduleInfo.FromDateStatus == "1")
{
getClientFeeScheduleInfo.FDateStatus = true;
}
else getClientFeeScheduleInfo.FDateStatus = false;
if (getClientFeeScheduleInfo.ToDateStatus == "1")
{
getClientFeeScheduleInfo.TDateStatus = true;
}
else getClientFeeScheduleInfo.TDateStatus = false;
return getClientFeeScheduleInfo;
}
示例4: FetchDisbursementItemsForSearch
//need to check
private DisbursementItem FetchDisbursementItemsForSearch(DisbursementItem SearchDisbursementItem, SafeDataReader dr)
{
SearchDisbursementItem.ID = dr.GetInt32("ID");
SearchDisbursementItem.RefID = SearchDisbursementItem.ID;
SearchDisbursementItem.WOID = dr.GetInt32("WOID");
SearchDisbursementItem.Code = dr.GetString("Code");
SearchDisbursementItem.ItemNumber = dr.GetString("ItemNumber");
SearchDisbursementItem.DiItemToolTip = dr.GetString("DIItemToolTip");
SearchDisbursementItem.Name = dr.GetString("Name");
SearchDisbursementItem.Units = dr.GetInt32("Units");
SearchDisbursementItem.ClientName = dr.GetString("ClientName");
SearchDisbursementItem.UnitPrice = dr.GetDecimal("UnitPrice");
SearchDisbursementItem.Amount = dr.GetDecimal("Amount");
SearchDisbursementItem.WorkOrderNumber = dr.GetString("WOCode").Trim();
//SearchDisbursementItem.Currency = dr.GetString("Currency");
SearchDisbursementItem.VenderRefID = dr.GetString("VenderRefId");
SearchDisbursementItem.DateIncurred = dr.GetString("DateIncurred");
SearchDisbursementItem.Description = dr.GetString("Description");
SearchDisbursementItem.NoteCount = dr.GetInt32("NoteCount");
SearchDisbursementItem.NoteType = dr.GetString("NoteType");
string toolTip = dr.GetString("Description");
if (toolTip.Contains("~^"))
{
toolTip = toolTip.Replace("~^", Environment.NewLine);
}
SearchDisbursementItem.DescriptionToolTip = toolTip;
int descLength = SearchDisbursementItem.Description.Length;
if (descLength > 10)
{
string strNewDesc = SearchDisbursementItem.Description.Substring(0, 10);
strNewDesc = strNewDesc + "...";
SearchDisbursementItem.Description = strNewDesc;
}
SearchDisbursementItem.ACCPACStatus = dr.GetInt32("ACCPACStatus");
SearchDisbursementItem.ACCPACDescription = dr.GetString("ACCPACDescription");
SearchDisbursementItem.ACCPACExplanation = dr.GetString("Explaination");
SearchDisbursementItem.IsAdhoc = dr.GetBoolean("IsAdhoc");
SearchDisbursementItem.IsArchived = dr.GetBoolean("IsArchived");
SearchDisbursementItem.IsBilled = dr.GetBoolean("IsBilled");
SearchDisbursementItem.IsVerified = dr.GetBoolean("IsVerified");
SearchDisbursementItem.CreatedDate = dr.GetDateTime("CreatedDate").ToString("dd MMM yyyy hh:mm:ss tt");
return SearchDisbursementItem;
}
示例5: FetchUnmatchedVendorDetails
private Vendor FetchUnmatchedVendorDetails(Vendor vendor, SafeDataReader dr)
{
vendor.VenderReferenceID = dr.GetString("VENDERREFID");
vendor.VendorAmount = dr.GetDecimal("VENDORAMOUNT");
vendor.DI = dr.GetString("DI");
vendor.DIAmount = dr.GetDecimal("DIAMOUNT");
vendor.IsBilled = dr.GetBoolean("BILLED");
vendor.Type = dr.GetString("TYPE");
vendor.VerifyAmount = dr.GetDecimal("VERIFYAMOUNT");
vendor.WOID = dr.GetInt32("WOID");
vendor.ID = dr.GetInt32("ID");
vendor.IsAdhoc = dr.GetInt32("IsAdhoc");
return vendor;
}
示例6: FetchFeeDetailsByItemNumber
private WOFee FetchFeeDetailsByItemNumber(WOFee Fee, SafeDataReader dr)
{
Fee.Code = dr.GetString("Code");
if (dr["UnitPrice"] != null)
{
Fee.UnitPrice = dr.GetDecimal("UnitPrice");
}
else
{
Fee.UnitPrice = null;
}
Fee.Description = dr.GetString("Description");
Fee.Units = dr.GetInt32("Units");
return Fee;
}
示例7: FetchCABMasterReport
internal static CABMaster FetchCABMasterReport(CABMaster CABMaster, SafeDataReader dr)
{
CABMaster.ID = dr.GetInt32("ID");
CABMaster.BillToClientCode = dr.GetInt32("BillToClientCode");
CABMaster.BillToSourceID = dr.GetString("BillToSourceID");
CABMaster.BillToName = dr.GetString("BillToName");
CABMaster.BillToAccpacCode = dr.GetString("BillToAccpacCode");
CABMaster.BillForClientCode = dr.GetInt32("BillForClientCode");
CABMaster.BillForSourceID = dr.GetString("BillForSourceID");
CABMaster.BillForName = dr.GetString("BillForName");
CABMaster.BillForAccpacCode = dr.GetString("BillForAccpacCode");
CABMaster.IsBillToThirdParty = dr.GetInt32("IsBillToThirdParty");
CABMaster.CreatedDate = dr.GetDateTime("CreatedDate").ToString("dd MMM yyyy hh:mm:ss tt"); ;
CABMaster.ISAdhoc = dr.GetBoolean("ISAdhoc");
CABMaster.Amount = dr.GetDecimal("Amount");
CABMaster.InvoiceNumber = dr.GetString("InvoiceNumber");
CABMaster.BillType = dr.GetString("BillType");
if (string.IsNullOrEmpty(CABMaster.InvoiceNumber))
CABMaster.IsInvoice = false;
else CABMaster.IsInvoice = true;
CABMaster.HSReceivedStatus = dr.GetInt32("HSReceivedStatus");
CABMaster.Description = dr.GetString("Description");
CABMaster.Explaination = dr.GetString("Explaination");
return CABMaster;
}
示例8: 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;
}
示例9: FetchCABFeeScheduleReportByMasterID
internal static CABFeeSchedule FetchCABFeeScheduleReportByMasterID(CABFeeSchedule CABFeeSchedule, SafeDataReader dr)
{
CABFeeSchedule.ID = dr.GetInt32("ID");
CABFeeSchedule.ClientCode = dr.GetString("ClientCode");
CABFeeSchedule.SourceID = dr.GetString("SourceID");
CABFeeSchedule.FeeCode = dr.GetString("FeeCode");
CABFeeSchedule.FromDate = dr.GetDateTime("FromDate").ToString("dd/MMM/yyyy");
CABFeeSchedule.ToDate = dr.GetDateTime("ToDate").ToString("dd/MMM/yyyy");
CABFeeSchedule.Amount = dr.GetDecimal("Amount");
CABFeeSchedule.IsArrear = dr.GetBoolean("IsArrear");
CABFeeSchedule.CreatedDate = dr.GetString("CreatedDate");
CABFeeSchedule.IsClubFee = dr.GetBoolean("IsClubFee");
CABFeeSchedule.IsClubFeeBillGenerated = dr.GetBoolean("IsClubFeeBillGenerated");
CABFeeSchedule.ClubFeeBillID = dr.GetInt32("ClubFeeBillID");
CABFeeSchedule.CABMasterID = dr.GetInt32("CABMasterID");
return CABFeeSchedule;
}
示例10: FetchCABFeeScheduleDetailsReportByCABFeeScheduleID
internal static CABFeeScheduleDetails FetchCABFeeScheduleDetailsReportByCABFeeScheduleID(CABFeeScheduleDetails CABFeeScheduleDetails, SafeDataReader dr)
{
CABFeeScheduleDetails.ID = dr.GetInt32("ID");
CABFeeScheduleDetails.ClientCode = dr.GetString("ClientCode");
CABFeeScheduleDetails.SourceID = dr.GetString("SourceID");
CABFeeScheduleDetails.FeeCode = dr.GetString("FeeCode");
CABFeeScheduleDetails.BilledFrom = dr.GetDateTime("BilledFrom").ToString("dd/MMM/yyyy"); ;
CABFeeScheduleDetails.BilledTo = dr.GetDateTime("BilledTo").ToString("dd/MMM/yyyy"); ;
CABFeeScheduleDetails.Amount = dr.GetDecimal("Amount");
CABFeeScheduleDetails.Prorate = dr.GetDecimal("Prorate");
CABFeeScheduleDetails.BillableAmount = dr.GetDecimal("BillableAmount");
CABFeeScheduleDetails.IsArrear = dr.GetBoolean("IsArrear");
CABFeeScheduleDetails.CreatedDate = dr.GetString("CreatedDate");
CABFeeScheduleDetails.CABFeeScheduleID = dr.GetInt32("CABFeeScheduleID");
return CABFeeScheduleDetails;
}
示例11: FetchShareHolersList
private ShareHoldingStructure FetchShareHolersList(ShareHoldingStructure objShareHoldingStructure, SafeDataReader dr)
{
objShareHoldingStructure.ID = dr.GetInt32("ID");
objShareHoldingStructure.CmpyID = dr.GetInt32("CmpyID");
objShareHoldingStructure.ShareHolderID = dr.GetInt32("ShareHolderID");
objShareHoldingStructure.ShareHolderName = dr.GetString("ShareHolderName");
objShareHoldingStructure.PersonSource = dr.GetString("PersonSource");
objShareHoldingStructure.WOID = dr.GetInt32("WOID");
objShareHoldingStructure.SharesHeld = dr.GetDecimal("SharesHeld");
objShareHoldingStructure.NetCashDividend = dr.GetString("NetCashDividend");
objShareHoldingStructure.NoOfBonusShareToIssue = dr.GetString("NoOfBonusShareToIssue");
objShareHoldingStructure.ShareClassID = dr.GetInt32("ShareClassID");
objShareHoldingStructure.ClassName = dr.GetString("ClassName");
return objShareHoldingStructure;
}
示例12: FetchFeeItemsByWOID
private WOFee FetchFeeItemsByWOID(WOFee Item, SafeDataReader dr)
{
Item.ID = dr.GetInt32("ID");
Item.WOCode = dr.GetString("WOCode");
Item.ClientName = dr.GetString("ClientName");
Item.ItemNumber = dr.GetString("ItemNumber");
Item.Code = dr.GetString("Code");
Item.Units = dr.GetInt32("Units");
Item.Amount = dr.GetDecimal("Amount");
Item.IsAdhoc = dr.GetBoolean("IsAdhoc");
Item.IsArchived = dr.GetBoolean("IsArchived");
Item.IsBilled = dr.GetBoolean("IsBilled");
Item.Description = dr.GetString("Description");
string toolTip = dr.GetString("Description");
if (toolTip.Contains("~^"))
{
toolTip = toolTip.Replace("~^", Environment.NewLine);
}
Item.FeeDescriptionToolTip = toolTip;
int descLength = Item.Description.Length;
if (descLength > 10)
{
string strNewDesc = Item.Description.Substring(0, 10);
strNewDesc = strNewDesc + "...";
Item.Description = strNewDesc;
}
Item.UnitPrice = dr.GetDecimal("UnitPrice");
Item.NoteCount = dr.GetInt32("NoteCount");
Item.NoteType = dr.GetString("NoteType");
Item.RefID = Item.ID;
Item.CreatedDate = dr.GetDateTime("CreatedDate").ToString("dd MMM yyyy hh:mm:ss tt");
Item.FeeItemToolTip = dr.GetString("FeeToolTip");
Item.ACCPACStatus = dr.GetInt32("ACCPACStatus");
Item.ACCPACDescription = dr.GetString("ACCPACDescription");
Item.ACCPACExplanation = dr.GetString("Explaination");
return Item;
}
示例13: FetchFeeItemByFeeID
private WOFee FetchFeeItemByFeeID(WOFee Item, SafeDataReader dr)
{
Item.ID = dr.GetInt32("ID");
Item.WOID = dr.GetInt32("WOID");
Item.WOCode = dr.GetString("WOCode");
Item.ClientName = dr.GetString("ClientName");
Item.Code = dr.GetString("Code");
Item.ItemNumber = dr.GetString("ItemNumber");
Item.FeeType = dr.GetInt32("FeeType");
Item.Units = dr.GetInt32("Units");
Item.UnitPrice = dr.GetDecimal("UnitPrice");
Item.Amount = dr.GetDecimal("Amount");
Item.IsAdhoc = dr.GetBoolean("IsAdhoc");
Item.IsArchived = dr.GetBoolean("IsArchived");
Item.IsBilled = dr.GetBoolean("IsBilled");
Item.Description = dr.GetString("Description");
Item.NoteCount = dr.GetInt32("NoteCount");
Item.NoteType = dr.GetString("NoteType");
Item.RefID = Item.ID;
Item.ACCPACStatus = dr.GetInt32("ACCPACStatus");
Item.ACCPACDescription = dr.GetString("ACCPACDescription");
Item.ACCPACExplanation = dr.GetString("Explaination");
Item.InvoiceNumber = dr.GetString("InvoiceNumber");
return Item;
}
示例14: FetchDisbursementItems
private DisbursementItem FetchDisbursementItems(DisbursementItem disbursementItems, SafeDataReader dr)
{
disbursementItems.ID = dr.GetInt32("ID");
disbursementItems.WOID = dr.GetInt32("WOID");
disbursementItems.Amount = dr.GetDecimal("Amount");
disbursementItems.ItemCode = dr.GetString("ItemCode");
disbursementItems.Description = dr.GetString("Description");
disbursementItems.VenderRefID = dr.GetString("VenderRefId");
disbursementItems.Units = dr.GetInt32("Units");
disbursementItems.Code = dr.GetString("Code");
disbursementItems.Type = dr.GetString("DIType");
disbursementItems.IsBilled = dr.GetBoolean("IsBilled");
disbursementItems.IsAdhoc = dr.GetBoolean("IsAdhoc");
disbursementItems.IsArchived = dr.GetBoolean("IsArchived");
disbursementItems.IsVerified = dr.GetBoolean("IsVerified");
return disbursementItems;
}
示例15: FetchCABMasterInvoicePreview
public CABMasterInvoicePreview FetchCABMasterInvoicePreview(CABMasterInvoicePreview getCABMasterInvoicePreview, SafeDataReader dr)
{
getCABMasterInvoicePreview.Amount = dr.GetDecimal("Amount");
getCABMasterInvoicePreview.ACCPACCode = dr.GetString("ACCPACCode");
getCABMasterInvoicePreview.Description = dr.GetString("Description");
return getCABMasterInvoicePreview;
}