本文整理汇总了C#中Whitfieldcore.GetScheduleData方法的典型用法代码示例。如果您正苦于以下问题:C# Whitfieldcore.GetScheduleData方法的具体用法?C# Whitfieldcore.GetScheduleData怎么用?C# Whitfieldcore.GetScheduleData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Whitfieldcore
的用法示例。
在下文中一共展示了Whitfieldcore.GetScheduleData方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FetchSehedule
private void FetchSehedule()
{
txtSchhours.Text = "";
txtWeeklyComments.Text = "";
Whitfieldcore wc = new Whitfieldcore();
DataSet ds = new DataSet();
ds = wc.GetScheduleData(Convert.ToInt32(ViewState["twc_project_number"].ToString()), ddlYear.SelectedItem.Value.ToString(), ddlMonth.SelectedItem.Value.ToString() + "(" + ddlYear.SelectedItem.Value.ToString() + ")", ddlWeek.SelectedItem.Value.ToString());
Int32 resultCount = 0;
if (ds.Tables.Count > 0)
resultCount = ds.Tables[0].Rows.Count;
DataTable myControls;
myControls = ds.Tables[0];
if (myControls.Rows.Count > 0)
{
try
{
foreach (DataRow dRow in myControls.Rows)
{
String _hr = dRow["Hours"] != DBNull.Value ? dRow["Hours"].ToString() : "";
String _comments = dRow["weeklyNotes"] != DBNull.Value ? dRow["weeklyNotes"].ToString() : "";
//String project_amount = dRow["project_amount"] != DBNull.Value ? dRow["project_amount"].ToString() : "";
txtSchhours.Text = _hr;
txtWeeklyComments.Text = _comments;
//txtProjectedAmt.Text = project_amount;
}
}
catch (Exception ex)
{
Response.Write(ex.Message);
}
DisplaySchedulingGrid();
}
else
{
txtSchhours.Text = "0";
txtWeeklyComments.Text = "";
}
}