Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var account_id = Request.QueryString["account_id"];

            if (!string.IsNullOrEmpty(account_id))
            {
                thisAccount = new CompanyBLL().GetCompany(long.Parse(account_id));
            }
            var ticket_id = Request.QueryString["ticket_id"];

            if (!string.IsNullOrEmpty(ticket_id))
            {
                thisTicket = new sdk_task_dal().FindNoDeleteById(long.Parse(ticket_id));
                if (thisTicket != null)
                {
                    thisAccount = new CompanyBLL().GetCompany(thisTicket.account_id);
                }
            }

            var info = new BLL.QueryCommonBLL().GetQueryGroup((int)DicEnum.QUERY_CATE.TICKET_ACCOUNT_LIST);

            if (info != null && info.Count > 0)
            {
                groupId = info[0].id;
            }
            if (thisAccount == null)
            {
                Response.Write("<script>alert('未查询到该客户信息!');window.close();</script>");
            }
        }
Esempio n. 2
0
        protected string isCheck      = ""; // 用于检测是否显示checkBox框
        protected void Page_Load(object sender, EventArgs e)

        {
            var bll = new BLL.QueryCommonBLL();

            catId = DNRequest.GetQueryInt("cat", 0);
            // catId = (int)DicEnum.QUERY_CATE.PROJECT_SEARCH;
            int typeId = DNRequest.GetQueryInt("type", 0);
            // typeId = (int)QueryType.PROJECT_SEARCH;
            int groupId = DNRequest.GetQueryInt("group", 0);

            // groupId = 108;
            isCheck = DNRequest.GetStringValue("isCheck", "");
            if (catId == 0)
            {
                Response.Close();
                return;
            }

            if (typeId == 0 || groupId == 0)
            {
                var info = bll.GetQueryGroup(catId);
                if (info == null || info.Count == 0)
                {
                    Response.Close();
                    return;
                }
                queryTypeId = info[0].query_type_id;
                paraGroupId = info[0].id;
            }
            else
            {
                queryTypeId = typeId;
                paraGroupId = groupId;
            }

            var condition = bll.GetConditionParaVisiable(GetLoginUserId(), paraGroupId);

            if (condition.Count == 0)
            {
                conditionHeight = 0;
            }
            else
            {
                int rowCnt = condition.Count / 3;
                if (condition.Count % 3 != 0)
                {
                    rowCnt++;
                }
                conditionHeight = 125 + rowCnt * 35;
                if (conditionHeight < 206)
                {
                    conditionHeight = 206;
                }
                if (conditionHeight > 370)
                {
                    conditionHeight = 370;
                }
            }
        }
Esempio n. 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var bll = new BLL.QueryCommonBLL();

            catId = DNRequest.GetQueryInt("cat", 0);
            int typeId  = DNRequest.GetQueryInt("type", 0);
            int groupId = DNRequest.GetQueryInt("group", 0);

            isCheck = DNRequest.GetStringValue("isCheck", "");
            if (catId == 0)
            {
                Response.Close();
                return;
            }

            if (typeId == 0 || groupId == 0)
            {
                var info = bll.GetQueryGroup(catId);
                if (info == null || info.Count == 0)
                {
                    Response.Close();
                    return;
                }
                queryTypeId = info[0].query_type_id;
                paraGroupId = info[0].id;
            }
            else
            {
                queryTypeId = typeId;
                paraGroupId = groupId;
            }
            param1 = string.IsNullOrEmpty(Request.QueryString["param1"]) ? "" : Request.QueryString["param1"];
            param2 = string.IsNullOrEmpty(Request.QueryString["param2"]) ? "" : Request.QueryString["param2"];
            param3 = string.IsNullOrEmpty(Request.QueryString["param3"]) ? "" : Request.QueryString["param3"];
            param4 = string.IsNullOrEmpty(Request.QueryString["param4"]) ? "" : Request.QueryString["param4"];
            param5 = string.IsNullOrEmpty(Request.QueryString["param5"]) ? "" : Request.QueryString["param5"];
            param6 = string.IsNullOrEmpty(Request.QueryString["param6"]) ? "" : Request.QueryString["param6"];
            param7 = string.IsNullOrEmpty(Request.QueryString["param7"]) ? "" : Request.QueryString["param7"];
            if (Request.QueryString["isShow"] == "Search")
            {
                isShow = "";
            }
            var condition = bll.GetConditionParaVisiable(GetLoginUserId(), paraGroupId);

            if (condition.Count == 0)
            {
                conditionHeight = 0;
            }
            else
            {
                int rowCnt = condition.Count / 3;
                if (condition.Count % 3 != 0)
                {
                    rowCnt++;
                }
                conditionHeight = 125 + rowCnt * 35;
                if (conditionHeight < 206)
                {
                    conditionHeight = 206;
                }
                if (conditionHeight > 370)
                {
                    conditionHeight = 370;
                }
                if (catId == (int)DTO.DicEnum.QUERY_CATE.APPROVE_CHARGES || catId == (int)DTO.DicEnum.QUERY_CATE.APPROVE_EXPENSE || catId == (int)DTO.DicEnum.QUERY_CATE.APPROVE_LABOUR || catId == (int)DTO.DicEnum.QUERY_CATE.APPROVE_MILESTONES || catId == (int)DTO.DicEnum.QUERY_CATE.APPROVE_RECURRING_SERVICES || catId == (int)DTO.DicEnum.QUERY_CATE.APPROVE_SUBSCRIPTIONS)
                {
                    conditionHeight += 40;
                }
            }
        }