コード例 #1
0
        private void EditDispatch(HttpContext context)
        {
            var id     = context.Request.QueryString["id"];
            var result = false;

            if (!string.IsNullOrEmpty(id))
            {
                var thisSdv = new DAL.sdk_dispatcher_view_dal().FindNoDeleteById(long.Parse(id));
                if (thisSdv != null)
                {
                    thisSdv.name = context.Request.QueryString["name"];
                    result       = dBLL.EditDispatchView(thisSdv, LoginUserId);
                }
            }
            context.Response.Write(new Tools.Serialize().SerializeJson(result));
        }
コード例 #2
0
        private void EditSearchViewDispatch(HttpContext context)
        {
            var id     = context.Request.QueryString["id"];
            var result = false;

            if (!string.IsNullOrEmpty(id))
            {
                var mode_id = context.Request.QueryString["modeId"];
                var thisSdv = new DAL.sdk_dispatcher_view_dal().FindNoDeleteById(long.Parse(id));
                if (thisSdv != null && !string.IsNullOrEmpty(mode_id))
                {
                    thisSdv.resource_ids    = context.Request.QueryString["resIds"];
                    thisSdv.workgroup_ids   = context.Request.QueryString["workIds"];
                    thisSdv.mode_id         = int.Parse(mode_id);
                    thisSdv.show_unassigned = (sbyte)(context.Request.QueryString["ckNoRes"] == "1"?1:0);
                    thisSdv.show_canceled   = (sbyte)(context.Request.QueryString["ckShowCancel"] == "1" ? 1 : 0);
                    result = dBLL.EditDispatchView(thisSdv, LoginUserId);
                }
            }
            context.Response.Write(new Tools.Serialize().SerializeJson(result));
        }