Example #1
0
        public UFIDA.U8.Portal.Proxy.Actions.NetAction[] CreateToolbar(UFSoft.U8.Framework.Login.UI.clsLogin login)
        {
            IActionDelegate nsd = new NetSampleDelegate();

            ////string skey = "mynewcontrol";

            NetAction[] aclist;
            aclist = new NetAction[11];

            NetAction ac = new NetAction("query", nsd);

            //aclist = new NetAction[1];
            ac.Text         = "查询";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.filter;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "查询";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            aclist[0]       = ac;



            ac              = new NetAction("gengxin", nsd);
            ac.Text         = "新增批记录";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.add;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "手动更新";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            aclist[1]       = ac;

            ac              = new NetAction("daochu", nsd);
            ac.Text         = "日志记录";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.Increment;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "重新导入";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            //ac.IsVisible = false;
            aclist[2] = ac;


            ac              = new NetAction("daoru", nsd);
            ac.Text         = "重新导入U8";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.Add_a_row;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "重新导入";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            ac.IsVisible    = false;
            aclist[3]       = ac;

            ac = new NetAction("del", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "标记删除";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.Adjust_write_off;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "删行";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            //ac.IsVisible = false;
            ac.IsVisible = false;
            aclist[4]    = ac;


            ac = new NetAction("ShenHe", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "更新锁定状态";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.Approve_all;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "审核";
            ac.SetGroupRow  = 1;
            ac.IsVisible    = true;
            ac.RowSpan      = 3;
            ac.IsVisible    = false;
            aclist[5]       = ac;



            ac = new NetAction("Checkall", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "全选/全消";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.Select_all;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "审核";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            ac.IsVisible    = false;
            aclist[6]       = ac;



            ac = new NetAction("Excel", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "导出Excel";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.import;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "查询";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            //ac.IsVisible = false;
            aclist[7] = ac;

            ac = new NetAction("PrintMo", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "打印";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.print;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "打印";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            ac.IsVisible    = false;
            //ac.IsHaveAuth = true;
            aclist[8] = ac;


            ac = new NetAction("savebuju", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "保存布局";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.import;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            //ac.SetGroup = "保存布局";
            //ac.SetGroupRow = 1;
            //ac.RowSpan = 1;
            //ac.IsVisible = false;
            aclist[9] = ac;

            ac = new NetAction("delbuju", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "删除布局";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.import;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "保存布局";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 1;
            aclist[10]      = ac;
            //ac.IsVisible = false;
            return(aclist);
            //return null;
        }
Example #2
0
        public UFIDA.U8.Portal.Proxy.Actions.NetAction[] CreateToolbar(UFSoft.U8.Framework.Login.UI.clsLogin login)
        {
            IActionDelegate nsd = new NetSampleDelegate();
            ////string skey = "mynewcontrol";
            NetAction ac = new NetAction("add", nsd);

            NetAction[] aclist;
            aclist          = new NetAction[11];
            ac.Text         = "增行";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.add;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "增行";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            aclist[0]       = ac;

            ac = new NetAction("del", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "删行";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.Adjust_write_off;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "删行";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            aclist[1]       = ac;



            ac = new NetAction("save", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "保存";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.Confirm;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "保存";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            aclist[2]       = ac;

            ac = new NetAction("xunjia", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "询价";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.approval_query;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "询价";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            aclist[3]       = ac;



            ac = new NetAction("guanbi", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "关闭";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.Cancel;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "关闭";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            aclist[4]       = ac;

            ac = new NetAction("dakai", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "打开";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.open;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "打开";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            aclist[5]       = ac;


            ac = new NetAction("liancha", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "联查询价单";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.cost;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "联查询价单";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            aclist[6]       = ac;
            //return aclist;



            ac = new NetAction("query", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "查询";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.filter;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "查询";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            aclist[7]       = ac;



            ac = new NetAction("save2", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "报价保存";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.Confirm;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "报价保存";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            aclist[10]      = ac;


            ac = new NetAction("savebuju", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "保存布局";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.import;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "保存布局";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 1;
            aclist[8]       = ac;

            ac = new NetAction("delbuju", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "删除布局";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.import;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "保存布局";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 1;
            aclist[9]       = ac;
            return(aclist);
            ////return null;
        }
        public UFIDA.U8.Portal.Proxy.Actions.NetAction[] CreateToolbar(UFSoft.U8.Framework.Login.UI.clsLogin login)
        {
            IActionDelegate nsd = new NetSampleDelegate();

            ////string skey = "mynewcontrol";

            NetAction[] aclist;
            aclist = new NetAction[12];
            NetAction ac = new NetAction("add", nsd);

            ac.Text         = "增行";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.add;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "增行";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            aclist[0]       = ac;

            ac = new NetAction("del", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "删行";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.Adjust_write_off;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "删行";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            aclist[1]       = ac;



            ac              = new NetAction("add", nsd);
            ac.Text         = "批量添加";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.add;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "添加";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            ac.IsVisible    = false;
            aclist[2]       = ac;

            ac = new NetAction("Save", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "保存";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.save;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "保存";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            aclist[3]       = ac;

            ac = new NetAction("query", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "查询";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.query;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "查询";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            aclist[4]       = ac;

            ac = new NetAction("Checkall", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "全选/全消";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.Select_all;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "审核";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            //ac.IsVisible = false;
            aclist[5] = ac;


            ac = new NetAction("ShenHe", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "审核";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.Cancel;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "审核";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            //ac.IsVisible = false;
            aclist[6] = ac;

            ac = new NetAction("QiShen", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "弃审";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.open;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "弃审";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            //ac.IsVisible = false;
            aclist[7] = ac;

            ac = new NetAction("Excel", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "导出EXCEL";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.transfer;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "查询";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            //ac.IsVisible = false;
            aclist[8] = ac;

            ac = new NetAction("ExcelIn", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "导入数据";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.import;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "查询";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 3;
            ac.IsVisible    = false;
            aclist[9]       = ac;


            ac = new NetAction("savebuju", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "保存布局";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.import;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "保存布局";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 1;
            aclist[10]      = ac;

            ac = new NetAction("delbuju", nsd);
            //aclist = new NetAction[1];
            ac.Text         = "删除布局";
            ac.Tag          = usercontrol;
            ac.Image        = Properties.Resources.import;
            ac.ActionType   = NetAction.NetActionType.Edit;
            ac.DisplayStyle = 1;
            ac.Style        = 1;
            ac.SetGroup     = "保存布局";
            ac.SetGroupRow  = 1;
            ac.RowSpan      = 1;
            aclist[11]      = ac;

            return(aclist);
            ////return null;
        }