Example #1
0
        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>");
            }
        }