本文整理汇总了C#中Whitfieldcore.GetWorkOrders方法的典型用法代码示例。如果您正苦于以下问题:C# Whitfieldcore.GetWorkOrders方法的具体用法?C# Whitfieldcore.GetWorkOrders怎么用?C# Whitfieldcore.GetWorkOrders使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Whitfieldcore
的用法示例。
在下文中一共展示了Whitfieldcore.GetWorkOrders方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GeneratePDF
//.........这里部分代码省略.........
if (dsAlternatives.Tables[0].Rows.Count > 0)
{
Paragraph c = new Paragraph("\nAlternates", fonts[14]);
chapter.Add(c);
DataTable myValues;
myValues = dsAlternatives.Tables[0];
int icntAlternatives = 1;
foreach (DataRow dRow in myValues.Rows)
{
String _altType = dRow["Type"] == DBNull.Value ? "" : dRow["Type"].ToString();
String _cntlDesc = dRow["Description"] == DBNull.Value ? "" : dRow["Description"].ToString();
String _cntlAmt = dRow["Amount"] == DBNull.Value ? "" : dRow["Amount"].ToString();
Paragraph itemAlternatives = new Paragraph(icntAlternatives.ToString() + ". " + _altType + ":" + _cntlDesc + "...." + _cntlAmt, fonts[8]);
icntAlternatives++;
chapter.Add(itemAlternatives);
}
}
//document.Add(chapter);
//Chapters and Sections Declarations End.
}
//**********************Chapter for Itemized Scope of Work Begins
//ChapterSequence++;
Paragraph cAssumptions = new Paragraph("\nItemized Scope of Work", chapterFont);
chapter.Add(cAssumptions);
//Chapter chapterAssumptions = new Chapter(cAssumptions, ChapterSequence);
//Paragraph AssumptionsHeading = new Paragraph("Scope of Work\n\n", sectionFont);
Paragraph AssumptionsText1 = new Paragraph("Provided hereto is an itemized clarification of the proposed scope. It has been developed and derived from the pricing documents to clarify various assumptions that were considered while compiling this estimate. The General Conditions (listed last) occur throughout the scope of work and apply to “typical applications”, which are subsequently itemized in the corresponding breakdown. " + ".\n\n", fonts[8]);
//AssumptionsText1.Add(new Phrase(new Chunk("Proposed price includes " + txtTypeOfWork + ".\n\n", FontFactory.GetFont(FontFactory.TIMES_ROMAN, 10, iTextSharp.text.Font.BOLD, iTextSharp.text.Color.BLACK))));
//chapterAssumptions.Add(AssumptionsHeading);
chapter.Add(AssumptionsText1);
DataSet dsScope = _wc.GetWorkOrders(EstNum);
if (dsScope.Tables[0].Rows.Count > 0)
{
LoadScopeOfWork(chapter, dsScope, fonts[14]);
}
Paragraph DrawingsPara1 = new Paragraph("Drawings:", fonts[14]);
chapter.Add(DrawingsPara1);
Paragraph itemDrawing = new Paragraph(txtprjname + " drawings prepared by " + _wc.GetArchitectName(Convert.ToInt32(prjArch)) + " dated " + txtDrawingDate + ".", fonts[8]);
chapter.Add(itemDrawing);
DataSet dsSpecs = _cont.FetchAmendmenList(Convert.ToInt32(EstNum));
if (dsSpecs.Tables[0].Rows.Count > 0)
{
Paragraph DrawingsPara = new Paragraph("\nAdditional Documents:", fonts[14]);
chapter.Add(DrawingsPara);
DataTable MyTerms;
MyTerms = dsSpecs.Tables[0];
int icntamendments = 1;
foreach (DataRow dRow in MyTerms.Rows)
{
String _AmedmentsType = dRow["type"] == DBNull.Value ? "" : dRow["type"].ToString();
String _AmedmentNumber = dRow["amendment_number"] == DBNull.Value ? "" : dRow["amendment_number"].ToString();
String _AmedmentDate = dRow["amendment_date"] == DBNull.Value ? "" : dRow["amendment_date"].ToString();
String amendment_impact = dRow["amendment_impact"] == DBNull.Value ? "" : dRow["amendment_impact"].ToString();
//if (_AmedmentsType == "Amendment")
//{
if (amendment_impact.ToLower() == "yes")
{
Paragraph itemAmendment = new Paragraph(icntamendments.ToString() + ". " + _AmedmentsType + " " + _AmedmentNumber + " dated " + _AmedmentDate + " impacts this scope of work.", fonts[8]);
chapter.Add(itemAmendment);
//Amendment 001 dated 11/19/2010; This Amendment has no impact to this scope of work.
示例2: DisplayGrid
public void DisplayGrid()
{
Whitfieldcore _wc = new Whitfieldcore();
DataSet _dsWorkOrders = new DataSet();
_dsWorkOrders = _wc.GetWorkOrders(ViewState["EstNum"].ToString());
this.PopulateDataGrid(_dsWorkOrders);
}