public ActionResult EditOperation(string command, string id)
        {
            WindowModule window = new WindowModule
            {
                Width  = 550,
                Height = 600
            };

            if (command == "invoiceinfoAdd")
            {
                window.Loader.Url = Url.Action("InvoiceLst", "Invoice", new { referenceId = id });
                window.Title      = "发票信息";
            }
            else if (command == "PaymentinfoAdd")
            {
                window.Loader.Url = Url.Action("EditView", new { receivePmNo = id, viewname = "PaymentView" });
                window.Title      = "付款信息";
            }
            else
            {
                return(this.Direct());
            }
            window.Render(RenderMode.Auto);
            return(this.Direct());
        }
Example #2
0
        public ActionResult Create()
        {
            WindowModule nwin = new WindowModule();

            nwin.Loader.Url = Url.Action("CreateUser");
            nwin.Render(RenderMode.Auto);
            return(this.Direct());
        }
Example #3
0
        public ActionResult Edits(string id)
        {
            WindowModule newwin = new WindowModule();

            newwin.Loader.Url = Url.Action("Edit", "Checkfunc", new { id = id });
            newwin.Render();
            return(this.Direct());
        }
Example #4
0
        public ActionResult Deatil(string id)
        {
            WindowModule nwin = new WindowModule();

            nwin.Loader.Url = Url.Action("DeatilUser", new { id = id });
            nwin.Render(RenderMode.Auto);
            return(this.Direct());
        }
Example #5
0
        public ActionResult Add()
        {
            WindowModule newwin = new WindowModule();

            newwin.Loader.Url = Url.Action("part", "Checkfunc", new { id = Guid.NewGuid() });
            newwin.Render();
            return(this.Direct());
        }
        public ActionResult Add()
        {
            WindowModule window = new WindowModule {
                Width = 700, Height = 450, Loader = { Url = Url.Action("Create") }
            };

            window.Render(RenderMode.Auto);
            return(this.Direct());
        }
Example #7
0
        public ActionResult Update(string id)
        {
            WindowModule newWindowModule = new WindowModule();

            newWindowModule.Loader.Url = Url.Action("UpdateCheckFlow", new { id = id, winname = newWindowModule.ID });
            newWindowModule.Render(RenderMode.Auto);

            return(this.Direct());
        }
Example #8
0
        public ActionResult Read(string id)
        {
            WindowModule window = new WindowModule {
                Width = 700, Height = 450, Loader = { Url = Url.Action("Detail", new { id = id }) }
            };

            window.Render(RenderMode.Auto);
            return(this.Direct());
        }
        public ActionResult WarehouseOperation(string action, string title, string id)
        {
            WindowModule window = new WindowModule()
            {
                Title = title, Loader = { Url = Url.Action("EditWarehouse", new { actiontype = action, id = id }) }
            };

            window.Render();
            return(this.Direct());
        }
Example #10
0
        /// <summary>
        /// 创建编辑窗口 窗口加载EditView
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult EditAction(string id)
        {
            WindowModule nitem = new WindowModule();

            nitem.Loader.Url = Url.Action("EditView", "PaymentApply", new { id = id });
            nitem.Width      = 550;
            nitem.Height     = 600;
            nitem.Title      = "应收款单";
            nitem.Render();
            return(this.Direct());
        }
Example #11
0
        /// <summary>
        /// 创建新建窗口 窗口加载AddView
        /// </summary>
        /// <returns></returns>
        public ActionResult CreateAction()
        {
            WindowModule nitem = new WindowModule();

            nitem.Loader.Url = Url.Action("AddView");
            nitem.Width      = 550;
            nitem.Height     = 600;
            nitem.Title      = "应收款单";
            nitem.Render();
            return(this.Direct());
        }
Example #12
0
        public ActionResult Create(string checkfunc)
        {
            if (db.T_CH_Checkfunc.Find(checkfunc) != null)
            {
                WindowModule win = new WindowModule();
                win.Loader.Url = Url.Action("CreateCheckFlow", "CheckflowManage", new { checkfunc = checkfunc });
                win.Render();
            }

            return(this.Direct());
        }
Example #13
0
        public ActionResult edit(string selection)
        {
            WindowModule win = new WindowModule();

            win.Title  = "编辑";
            win.Loader = new ComponentLoader()
            {
                Url = Url.Action("EditPage", new { id = selection, name = win.ID }), Mode = LoadMode.Frame
            };
            win.Render(true);
            return(this.Direct());
        }
Example #14
0
        public ActionResult add(string selection)
        {
            WindowModule win = new WindowModule();

            win.Title  = "增加";
            win.Loader = new ComponentLoader()
            {
                Url = Url.Action("CreatePage", new { name = win.ID }), Mode = LoadMode.Frame
            };
            win.Render(true);
            return(this.Direct());
        }
Example #15
0
 public ActionResult Expand(string funId, string name, string command)
 {
     if (command == "汇办")
     {
         WindowModule window = new WindowModule()
         {
             Title  = name,
             Loader = { Url = Url.Action("Users", new { funId = funId }) }
         };
         window.Render(RenderMode.Auto);
     }
     return(this.Direct());
 }
        public ActionResult Opearation(string action)
        {
            string       loderUrl = Url.Action(action);
            WindowModule window   = new WindowModule()
            {
                Title  = action,
                Height = 745,
                Width  = 1092,
                Loader = { Url = loderUrl }
            };

            window.Render(RenderMode.Auto);
            return(this.Direct());
        }
Example #17
0
 public ActionResult Deal(string id, string userid)
 {
     if (id == "null" || userid == "null")
     {
         X.Msg.Alert("页面消息", "未选择任何行").Show();
     }
     else
     {
         WindowModule window = new WindowModule
         {
             Loader = { Url = Url.Action("Attend", new { id = id, userid = userid }) }
         };
         window.Render(RenderMode.Auto);
     }
     return(this.Direct());
 }
        public ActionResult Read(string id)
        {
            if (id == "null")
            {
                X.Msg.Alert("页面消息", "请选择一条记录!").Show();
            }
            else
            {
                WindowModule window = new WindowModule {
                    Width = 900, Height = 700, Loader = { Url = Url.Action("Detail", new { id = id }) }
                };
                window.Render(RenderMode.Auto);
            }

            return(this.Direct());
        }
Example #19
0
        public ActionResult Expand(string roleid, string command, string description)
        {
            if (command == "查看")
            {
                return(this.RedirectToAction("authority", new { roleid = roleid }));
            }

            if (command == "更改组成员")
            {
                WindowModule window = new WindowModule {
                    Loader = { Url = Url.Action("Users", new { roleid = roleid }) }, Title = description
                };
                window.Render(RenderMode.Auto);
            }
            return(this.Direct());
        }
Example #20
0
        public ActionResult PaymentApply(string id, string command)
        {
            WindowModule nwin = new WindowModule
            {
                Width  = 550,
                Height = 600,
                Title  = command == "Invoice" ? "发票信息" : "收款信息",
                Loader =
                {
                    Url =
                        command == "Invoice"
                                                        ? Url.Action("InvoiceLst", "Invoice", new { referenceId= id                                                                                         })
                                                        : Url.Action("EditView", "PaymentApply", new { id= id                                                                                         })
                }
            };

            nwin.Render(RenderMode.Auto);
            return(this.Direct());
        }