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


C# HttpResponse.WriteBegin方法代码示例

本文整理汇总了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", "未调整");

            }
        }
开发者ID:rbmyself,项目名称:ipmsnew,代码行数:47,代码来源:ConstructTaskItemExtension.cs


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