本文整理汇总了C#中System.Web.HttpResponse.WriteBegin方法的典型用法代码示例。如果您正苦于以下问题:C# HttpResponse.WriteBegin方法的具体用法?C# HttpResponse.WriteBegin怎么用?C# HttpResponse.WriteBegin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Web.HttpResponse
的用法示例。
在下文中一共展示了HttpResponse.WriteBegin方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ShowAdjustItem
/// <summary>
/// 显示调整设备条目
/// </summary>
/// <param name="constructTaskItem"></param>
/// <param name="response"></param>
/// <param name="database"></param>
public static void ShowAdjustItem(this ConstructTaskItem constructTaskItem, HttpResponse response, IDatabase database)
{
response.WriteTagWithValue("ID", constructTaskItem.ID);
response.WriteTagWithValue("ProjectID", constructTaskItem.ConstructPlanItem.MemberApplyItem.MemberApply.ProjectID);
response.WriteTagWithValue("ConstructTaskItemID", constructTaskItem.ID);
response.WriteTagWithValue("ConstructPlanItemID", constructTaskItem.ConstructPlanItemID);
response.WriteTagWithValue("CurrentStage", "建设任务" + constructTaskItem.ConstructTask.DocNumber);
response.WriteTagWithValue("DeviceNumber", constructTaskItem.ConstructPlanItem.DeviceNumber);
response.WriteTagWithValue("DeviceID", constructTaskItem.ConstructPlanItem.MemberApplyItem.ApplyDeviceID);
response.WriteTagWithValue("DeviceName", constructTaskItem.ConstructPlanItem.MemberApplyItem.ApplyDevice.DeviceName);
response.WriteTagWithValue("Price", constructTaskItem.ConstructPlanItem.MemberApplyItem.ApplyDevice.UnitPrice);
response.WriteTagWithValue("Count", constructTaskItem.Quantity);
response.WriteTagWithValue("Configuration", constructTaskItem.ConstructPlanItem.MemberApplyItem.ApplyDevice.Configuration);
response.WriteTagWithValue("MainSpec", constructTaskItem.ConstructPlanItem.MemberApplyItem.ApplyDevice.MainSpec);
response.WriteTagWithValue("Cost", constructTaskItem.ConstructPlanItem.MemberApplyItem.ApplyDevice.UnitPrice * constructTaskItem.Quantity);
response.WriteTagWithValue("AdjustType", "未调整");
var count = constructTaskItem.ConstructPlanItem.MemberApplyItem.Quantity - constructTaskItem.ConstructPlanItem.GetAllocatedCount(database);
if (count > 0)
{
response.WriteTagEnd("Record");
response.WriteTagBegin("Record");
response.WriteBegin();
response.WriteTagWithValue("ID", constructTaskItem.ConstructPlanItemID);
response.WriteTagWithValue("Count", count);
response.WriteTagWithValue("ProjectID", constructTaskItem.ConstructPlanItem.MemberApplyItem.MemberApply.ProjectID);
response.WriteTagWithValue("ConstructTaskItemID", constructTaskItem.ID);
response.WriteTagWithValue("ConstructPlanItemID", constructTaskItem.ConstructPlanItemID);
response.WriteTagWithValue("CurrentStage", "建设计划");
response.WriteTagWithValue("Configuration", constructTaskItem.ConstructPlanItem.MemberApplyItem.ApplyDevice.Configuration);
response.WriteTagWithValue("MainSpec", constructTaskItem.ConstructPlanItem.MemberApplyItem.ApplyDevice.MainSpec);
response.WriteTagWithValue("DeviceNumber", constructTaskItem.ConstructPlanItem.DeviceNumber);
response.WriteTagWithValue("DeviceID", constructTaskItem.ConstructPlanItem.MemberApplyItem.ApplyDeviceID);
response.WriteTagWithValue("DeviceName", constructTaskItem.ConstructPlanItem.MemberApplyItem.ApplyDevice.DeviceName);
response.WriteTagWithValue("Price", constructTaskItem.ConstructPlanItem.MemberApplyItem.ApplyDevice.UnitPrice);
response.WriteTagWithValue("Cost", constructTaskItem.ConstructPlanItem.MemberApplyItem.ApplyDevice.UnitPrice * count);
response.WriteTagWithValue("AdjustType", "未调整");
}
}