protected List <d_general> targetTypeList = new DAL.d_general_dal().GetGeneralByTableId((long)GeneralTableEnum.SLA_TARGET_TYPE); // 完成时间的默认类型 protected void Page_Load(object sender, EventArgs e) { long slaId = 0; if (!string.IsNullOrEmpty(Request.QueryString["slaId"]) && long.TryParse(Request.QueryString["slaId"], out slaId)) { sla = bll.GetSlaById(slaId); } long id = 0; if (!string.IsNullOrEmpty(Request.QueryString["id"]) && long.TryParse(Request.QueryString["id"], out id)) { slaItem = bll.GetSLAItemById(id); } if (slaItem != null) { sla = bll.GetSlaById(slaItem.sla_id); if (string.IsNullOrEmpty(Request.QueryString["copy"])) { isAdd = false; } } if (sla == null) { Response.Write("<script>alert('未获取到相关SLA信息');window.close();</script>"); } }
protected void Page_Load(object sender, EventArgs e) { long id = 0; if (!string.IsNullOrEmpty(Request.QueryString["id"]) && long.TryParse(Request.QueryString["id"], out id)) { sla = bll.GetSlaById(id); } if (sla != null) { itemList = bll.GetSLAItem(sla.id); hoursList = bll.GetWorkHourList(sla.id); isAdd = false; } }
/// <summary> /// 获取到SLA 相关信息 /// </summary> void GetSLA(HttpContext context) { long id = 0; if (!string.IsNullOrEmpty(context.Request.QueryString["id"]) && long.TryParse(context.Request.QueryString["id"], out id)) { var sla = slaBll.GetSlaById(id); if (sla != null) { WriteResponseJson(sla); } } }