本文整理汇总了C#中System.Web.HttpResponse.WriteTagWithValue方法的典型用法代码示例。如果您正苦于以下问题:C# HttpResponse.WriteTagWithValue方法的具体用法?C# HttpResponse.WriteTagWithValue怎么用?C# HttpResponse.WriteTagWithValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Web.HttpResponse
的用法示例。
在下文中一共展示了HttpResponse.WriteTagWithValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ShowPurchasePlanPackage
/// <summary>
/// 显示采购计划包
/// </summary>
/// <param name="purchasePlanPackage"></param>
/// <param name="response"></param>
/// <param name="database"></param>
public static void ShowPurchasePlanPackage(this PurchasePlanPackage purchasePlanPackage, HttpResponse response, IDatabase database)
{
response.WriteTagWithValue("ID", purchasePlanPackage.ID);
response.WriteTagWithValue("OperatorID", purchasePlanPackage.OperatorID);
response.WriteTagWithValue("OperateTime", purchasePlanPackage.OperateTime);
response.WriteTagWithValue("Issued", purchasePlanPackage.Issued.ToString());
}
示例2: ShowConstructTask
/// <summary>
/// 建设任务
/// </summary>
/// <param name="constructTask"></param>
/// <param name="response"></param>
/// <param name="database"></param>
public static void ShowConstructTask(this ConstructTask constructTask, HttpResponse response, IDatabase database)
{
response.WriteTagWithValue("ID", constructTask.ID);
response.WriteTagWithValue("DocNumber", constructTask.DocNumber);
response.WriteTagWithValue("DocPath", constructTask.DocPath);
response.WriteTagWithValue("Remark", constructTask.Remark);
}
示例3: ShowPlatForm
/// <summary>
/// 显示平台
/// </summary>
/// <param name="platForm"></param>
/// <param name="response"></param>
/// <param name="database"></param>
public static void ShowPlatForm(this PlatForm platForm, HttpResponse response, IDatabase database)
{
response.WriteTagWithValue("ID", platForm.ID);
response.WriteTagWithValue("PlatName", platForm.PlatName);
response.WriteTagWithValue("PlatCode", platForm.PlatCode);
response.WriteTagWithValue("IsBase", platForm.IsBase);
}
示例4: ShowOutStanding
/// <summary>
/// 显示人才
/// </summary>
/// <param name="outStanding"></param>
/// <param name="response"></param>
/// <param name="database"></param>
public static void ShowOutStanding(this OutStanding outStanding, HttpResponse response, IDatabase database)
{
response.WriteTagWithValue("ID", outStanding.ID);
response.WriteTagWithValue("Name", outStanding.Name);
response.WriteTagWithValue("Code", outStanding.Code);
response.WriteTagWithValue("SelectedYear", outStanding.SelectedYear);
response.WriteTagWithValue("FullName", outStanding.SelectedYear + outStanding.Name);
}
示例5: Show
/// <summary>
/// 显示调整后明细列表
/// </summary>
/// <param name="adjustHistoryState"></param>
/// <param name="response"></param>
/// <param name="database"></param>
public static void Show(this AdjustHistoryState adjustHistoryState, HttpResponse response, IDatabase database)
{
response.WriteTagWithValue("ID", adjustHistoryState.ID);
response.WriteTagWithValue("AdjustAuditTime", adjustHistoryState.OperateTime);
response.WriteTagWithValue("AdjustAuditOperator", adjustHistoryState.Operator.Name);
response.WriteTagWithValue("AdjustAuditAdvice", adjustHistoryState.Suggestion);
response.WriteTagWithValue("State", adjustHistoryState.State);
}
示例6: ShowDeviceSupplier
/// <summary>
/// 显示选型供应商
/// </summary>
/// <param name="deviceSupplier"></param>
/// <param name="response"></param>
/// <param name="database"></param>
public static void ShowDeviceSupplier(this DeviceSupplier deviceSupplier, HttpResponse response, IDatabase database)
{
response.WriteTagWithValue("ID", deviceSupplier.ID);
response.WriteTagWithValue("DeviceMatchID", deviceSupplier.DeviceMatchID);
response.WriteTagWithValue("SupplierID", deviceSupplier.SupplierID);
response.WriteTagWithValue("SupplierName", deviceSupplier.Supplier.Name);
response.WriteTagWithValue("Price", deviceSupplier.Price);
response.WriteTagWithValue("PriceSource", deviceSupplier.PriceSource == 0 ? "供应商" : "网络");
response.WriteTagWithValue("ContactPerson", deviceSupplier.ContactPerson);
response.WriteTagWithValue("ContactPhone", deviceSupplier.ContactPhone);
response.WriteTagWithValue("Email", deviceSupplier.Email);
response.WriteTagWithValue("WebURL", deviceSupplier.WebURL);
}
示例7: showAssetFundApply
private static void showAssetFundApply(this AssetFundApply apply, HttpResponse response, IDatabase database)
{
response.WriteTagWithValue("ID", apply.ID);
response.WriteTagWithValue("Quantity", apply.Quantity);
response.WriteTagWithValue("BudgetAmount", Convert.ToDouble(apply.BudgetAmount) / 1000000);
//response.WriteTagWithValue("BidControlAmount", Convert.ToDouble(apply.BidControlAmount) / 1000000);
response.WriteTagWithValue("DeviceValue", Convert.ToDouble(apply.DeviceValue) / 100);
response.WriteTagWithValue("TradeAgentFee", Convert.ToDouble(apply.TradeAgentFee) / 100);
response.WriteTagWithValue("ApplyTotalAmount", Convert.ToDouble(apply.ApplyTotalAmount) / 100);
response.WriteTagWithValue("State", apply.State);
response.WriteTagWithValue("OperatorName", apply.Operator.Name);
response.WriteTagWithValue("OperateTime", apply.OperateTime);
}
示例8: showOfficeBudgetDetailItem
/// <summary>
/// 列表显示预算明细条目信息
/// </summary>
/// <param name="item"></param>
/// <param name="response"></param>
/// <param name="database"></param>
private static void showOfficeBudgetDetailItem(this OfficeBudgetDetailItem item, HttpResponse response, IDatabase database)
{
response.WriteTagWithValue("ID", item.ID);
response.WriteTagWithValue("AssetFundApplyItemID", item.AssetFundApplyItemID);
response.WriteTagWithValue("OfficeBudgetDetailID", item.OfficeBudgetDetailID);
response.WriteTagWithValue("ContractNumber", item.AssetFundApplyItem.ContractItem.Contract.Number);
response.WriteTagWithValue("SupplierName", item.AssetFundApplyItem.ContractItem.Contract.Supplier.Name);
//response.WriteTagWithValue("BudgetAmount", item.AssetFundApplyItem.ContractItem.BidResultItem.PurchaseOrderItem.PurchasePlanItem.ConstructTaskItem.ConstructPlanItem.BudgetAmount);
response.WriteTagWithValue("BudgetAmount", item.AssetFundApplyItem.ContractItem.Quantity * item.AssetFundApplyItem.ContractItem.BidResultItem.PurchaseOrderItem.PurchasePlanItem.ConstructTaskItem.ConstructPlanItem.MemberApplyItem.ApplyDevice.UnitPrice);
response.WriteTagWithValue("ContractItemAmount", item.AssetFundApplyItem.ContractItem.ContractItemAmount / 100);
response.WriteTagWithValue("Currency", item.AssetFundApplyItem.ContractItem.BidResultItem.Currency);
//response.WriteTagWithValue("TradeAgentFeeRate", item.AssetFundApplyItem.TradeAgentFeeRate);
//response.WriteTagWithValue("ExchangeRate", item.AssetFundApplyItem.ExchangeRate);
response.WriteTagWithValue("ApplyTotalAmount", item.AssetFundApplyItem.ApplyTotalAmount / 100);
response.WriteTagWithValue("OfficeIssuedAmount", item.OfficeIssuedAmount / 100);
response.WriteTagWithValue("ProductName", item.AssetFundApplyItem.ContractItem.ProductName);
response.WriteTagWithValue("BcQuantity", item.AssetFundApplyItem.ContractItem.Quantity);
response.WriteTagWithValue("CollegeName", item.AssetFundApplyItem.ContractItem.BidResultItem.PurchaseOrderItem.PurchasePlanItem.ConstructTaskItem.ConstructPlanItem.MemberApplyItem.MemberApply.College.Name);
response.WriteTagWithValue("PlatName", item.AssetFundApplyItem.ContractItem.BidResultItem.PurchaseOrderItem.PurchasePlanItem.ConstructTaskItem.ConstructPlanItem.MemberApplyItem.MemberApply.College.PlatForm.PlatName);
response.WriteTagWithValue("DepartmentCode", item.GetDepartmentCode(database, item.AssetFundApplyItem.ContractItem.BidResultItem.PurchaseOrderItem.PurchasePlanItem.ConstructTaskItem.ConstructPlanItem.MemberApplyItem.MemberApply.CollegeID.Value));
response.WriteTagWithValue("ExpertName", item.AssetFundApplyItem.ContractItem.BidResultItem.PurchaseOrderItem.PurchasePlanItem.ConstructTaskItem.ConstructPlanItem.MemberApplyItem.MemberApply.Member.Name);
response.WriteTagWithValue("DeviceNumber", item.AssetFundApplyItem.ContractItem.BidResultItem.PurchaseOrderItem.PurchasePlanItem.ConstructTaskItem.ConstructPlanItem.DeviceNumber);
response.WriteTagWithValue("Remark1", item.Remark1);
response.WriteTagWithValue("Remark2", item.Remark2);
response.WriteTagWithValue("Account", item.OfficeBudgetDetail.Account);
response.WriteTagWithValue("State", item.OfficeBudgetDetail.State);
//response.WriteTagWithValue("Account", item.OfficeBudgetDetail.Account);
var officeBudgetDetailState = database.OfficeBudgetDetails.Where(afa => afa.ID == item.OfficeBudgetDetailID).SingleOrDefault().State.ToString();
response.WriteTagWithValue("OfficeBudgetDetailState", officeBudgetDetailState == "UnSubmit" ? "未提交" : "已提交");
//var officeBudgetDetailState = database.OfficeBudgetDetails.Where(obd => obd.ID == item.OfficeBudgetDetailID).SingleOrDefault().State.ToString();
//response.WriteTagWithValue("OfficeBudgetDetailState",item.OfficeBudgetDetail.State);
response.WriteTagWithValue("DetailNumber", item.OfficeBudgetDetail.DetailNumber);
response.WriteTagWithValue("GroupField", item.OfficeBudgetDetailID + "," + officeBudgetDetailState.ToString());
//response.WriteTagWithValue("WinGroupField", item.OfficeBudgetDetailID);
if (item.AssetFundApplyItem.ContractItem.BidResultItem.PurchaseOrderItem.PurchasePlanItem.ConstructTaskItem.ConstructPlanItem.ConstructPlanPackage.OutStandingID != null)
{
response.WriteTagWithValue("WinGroupField", item.AssetFundApplyItem.ContractItem.BidResultItem.PurchaseOrderItem.PurchasePlanItem.ConstructTaskItem.ConstructPlanItem.MemberApplyItem.MemberApply.Member.Name);
}
else
{
response.WriteTagWithValue("WinGroupField", item.AssetFundApplyItem.ContractItem.BidResultItem.PurchaseOrderItem.PurchasePlanItem.ConstructTaskItem.ConstructPlanItem.MemberApplyItem.MemberApply.College.Name);
}
//添加财务处经费预算核定条目
/* var financeBudgetCheckItem = database.FinanceBudgetCheckItems.FirstOrDefault(fbc => fbc.OfficeBudgetDetailItem == item);
if (financeBudgetCheckItem != null)
{
response.WriteTagWithValue("FinanceBudgetCheckItemID", financeBudgetCheckItem.ID);
response.WriteTagWithValue("IsChecked", "已核定");
}
else
{
response.WriteTagWithValue("FinanceBudgetCheckItemID", "");
response.WriteTagWithValue("IsChecked", "未核定");
}
* */
}
示例9: ShowTaskReminder
/// <summary>
/// 显示催办提醒
/// </summary>
/// <param name="Item"></param>
/// <param name="response"></param>
/// <param name="database"></param>
public static void ShowTaskReminder(this TaskReminder Item, HttpResponse response, IDatabase database)
{
response.WriteTagWithValue("ID", Item.ID);
response.WriteTagWithValue("Receiver", Item.Receiver.Name);
response.WriteTagWithValue("ReceiverID", Item.ReceiverID);
response.WriteTagWithValue("Sender", Item.Sender == null ? string.Empty : Item.Sender.Name);
response.WriteTagWithValue("SenderID", Item.SenderID);
response.WriteTagWithValue("Content", Item.Content);
response.WriteTagWithValue("CreateTime", Item.CreateTime);
response.WriteTagWithValue("RemindTime", Item.RemindTime);
response.WriteTagWithValue("IsRead", Item.IsRead);
}
示例10: ShowMarketDevice
/// <summary>
/// ��ʾ�����豸
/// </summary>
/// <param name="marketDevice"></param>
/// <param name="response"></param>
/// <param name="database"></param>
public static void ShowMarketDevice(this MarketDevice marketDevice, HttpResponse response, IDatabase database)
{
response.WriteTagWithValue("ID", marketDevice.ID);
response.WriteTagWithValue("MarketDeviceName", marketDevice.MarketDeviceName);
response.WriteTagWithValue("isRecommended", marketDevice.IsRecommended);
response.WriteTagWithValue("Manufactures", marketDevice.Manufactures);
response.WriteTagWithValue("Model", marketDevice.Model);
response.WriteTagWithValue("MainSpec", marketDevice.MainSpec);
response.WriteTagWithValue("AccessorySpec", marketDevice.AccessorySpec);
response.WriteTagWithValue("Configuration", marketDevice.Configuration);
response.WriteTagWithValue("ModifyTime", marketDevice.ModifyTime);
}
示例11: showFinanceBudgetCheck
/// <summary>
/// 列表显示预算明细信息
/// </summary>
/// <param name="budget"></param>
/// <param name="response"></param>
/// <param name="database"></param>
private static void showFinanceBudgetCheck(this FinanceBudgetCheck budget, HttpResponse response, IDatabase database)
{
response.WriteTagWithValue("ID", budget.ID);
response.WriteTagWithValue("Title", budget.Title);
response.WriteTagWithValue("Number", budget.Number);
response.WriteTagWithValue("DepartmentID", budget.DepartmentID);
response.WriteTagWithValue("CheckDate", budget.CheckDate);
response.WriteTagWithValue("State", budget.State);
response.WriteTagWithValue("Remark", budget.Remark);
response.WriteTagWithValue("OperateID", budget.OperatorID);
}
示例12: ShowUserRecord
/// <summary>
/// 显示用户记录
/// </summary>
/// <param name="user"></param>
/// <param name="response"></param>
/// <param name="userLogin"></param>
/// <param name="database"></param>
public static void ShowUserRecord(this User user, HttpResponse response, User userLogin, IDatabase database)
{
response.WriteTagWithValue("ID", user.ID);
var userrole = database.UserRoles.SingleOrDefault(c => c.User == user);
response.WriteTagWithValue("UserRoleID", userrole.Role.ID);
response.WriteTagWithValue("UserRole", userrole.Role.Name);
response.WriteTagWithValue("UserRoleType", userrole.Role.TypeCode);
response.WriteTagWithValue("LoginID", user.LoginID);
response.WriteTagWithValue("Name", user.Name);
response.WriteTagWithValue("NameSpell", user.NameSpell);
response.WriteTagWithValue("AllowMultiLogin", user.AllowMultiLogin);
}
示例13: Show
/// <summary>
/// 显示登陆结果
/// </summary>
/// <param name="loginResult"></param>
/// <param name="response"></param>
/// <param name="database"></param>
public static void Show(this LoginResult loginResult, HttpResponse response, IDatabase database)
{
response.WriteTagBegin("LoginResult");
response.WriteTagWithValue("State", loginResult.State);
if (loginResult.State == LoginResultState.Succeed)
loginResult.UserLoginLog.Show(response, database);
response.WriteTagEnd("LoginResult");
}
示例14: ShowDeviceExtramural
/// <summary>
/// 显示校外购置情况
/// </summary>
/// <param name="deviceExtramural"></param>
/// <param name="response"></param>
/// <param name="database"></param>
public static void ShowDeviceExtramural(this DeviceExtramural deviceExtramural, HttpResponse response, IDatabase database)
{
response.WriteTagWithValue("ID", deviceExtramural.ID);
response.WriteTagWithValue("Brand", deviceExtramural.Brand);
response.WriteTagWithValue("ApplyDeviceID", deviceExtramural.ApplyDeviceID);
response.WriteTagWithValue("UserName", deviceExtramural.UserName);
response.WriteTagWithValue("WorkUnit", deviceExtramural.WorkUnit);
response.WriteTagWithValue("UnitPrice", deviceExtramural.UnitPrice);
response.WriteTagWithValue("BuyTime", deviceExtramural.BuyTime);
}
示例15: Show
/// <summary>
/// 显示用户登陆记录
/// </summary>
/// <param name="userLogin"></param>
/// <param name="response"></param>
/// <param name="database"></param>
public static void Show(this UserLoginLog userLogin, HttpResponse response, IDatabase database)
{
response.WriteTagBegin("UserLoginLog");
response.WriteTagWithValue("Token", userLogin.Token);
response.WriteTagBegin("User");
userLogin.User.ShowUser(response, database);
response.WriteTagEnd("User");
response.WriteTagEnd("UserLoginLog");
}