private void 商品明细ToolStripMenuItem_Click(object sender, EventArgs e) { ExportSp sp = new ExportSp(); sp.ShowDialog(); }
public void ShowMaiToolBar() { OnButtonClick alterjsje = (object sender, EventArgs e) => { A_HT_ALTERJSJE aljs = new A_HT_ALTERJSJE(); aljs.MdiParent = this; aljs.Show(); }; bool jsjeupdate = false; if (ClassConstant.BNAME == "财务部" || ClassConstant.BNAME == "办公室") { jsjeupdate = true; } OnButtonClick jg = (object sender, EventArgs e) => { A_HT c1 = new A_HT("07"); c1.MdiParent = this; c1.Show(); }; if (ClassConstant.USER_ID == "0101999999" || ClassConstant.USER_ID == "0201999999") { this.menuStrip1.Enabled = false; OnButtonClick sssp = (object sender, EventArgs e) => { ExportSp sp = new ExportSp(); sp.ShowDialog(); }; this.AddButtons(new ToolStripItem[]{ //new Factory_ToolBtn("采购合同", "采购合同",ClassCustom.getImage("cg.png"5),this.采购合同ToolStripMenuItem_Click,null,true).TBtnProduce(), //new Factory_ToolBtn("销售合同", "销售合同",ClassCustom.getImage("xs.png"), this.销售合同ToolStripMenuItem_Click,null,true).TBtnProduce(), //new Factory_ToolBtn("外协合同", "外协合同",ClassCustom.getImage("wx.png"),this.外协合同ToolStripMenuItem_Click,null,true).TBtnProduce(), new Factory_ToolBtn("在建一期", "在建一期",ClassCustom.getImage("zj.png"), this.在建工程合同ToolStripMenuItem_Click,null,false).TBtnProduce(), new Factory_ToolBtn("在建二期", "在建二期",ClassCustom.getImage("zj.png"), this.在建工程二期ToolStripMenuItem_Click,null,false).TBtnProduce(), new Factory_ToolBtn("技改", "技改",ClassCustom.getImage("gdzc.png"),this.技改ToolStripMenuItem_Click,null,false).TBtnProduce(), new Factory_ToolBtn("固定资产", "固定资产",ClassCustom.getImage("gdzc.png"),this.购置固定资产ToolStripMenuItem_Click,null,false).TBtnProduce(), new ToolStripSeparator(), new Factory_ToolBtn("往来客户", "往来客户",ClassCustom.getImage("kh.png"),this.客户ToolStripMenuItem_Click,null,false).TBtnProduce(), new Factory_ToolBtn("进度管理", "进度管理",ClassCustom.getImage("mx.png"),this.btn_jd,null,false).TBtnProduce(), new Factory_ToolBtn("生成金税数据", "生成金税数据",ClassCustom.getImage("rc.png"),rc,null,false).TBtnProduce(), new Factory_ToolBtn("综合查询", "综合查询",ClassCustom.getImage("zhcx.png"), this.合同综合查询ToolStripMenuItem_Click,null,true).TBtnProduce(), new Factory_ToolBtn("客户对账及修改", "客户对账及修改",ClassCustom.getImage("NetByte Design Studio - 0483.png"),合同客户进度查询ToolStripMenuItem_Click,null,false).TBtnProduce(), new ToolStripSeparator(), new Factory_ToolBtn("财务凭证确认", "财务凭证确认",ClassCustom.getImage("cw.png"),this.btn_cw,null,false).TBtnProduce(), new Factory_ToolBtn("合同报表", "合同报表",ClassCustom.getImage("bb.png"),合同报表ToolStripMenuItem_Click,null,true).TBtnProduce(), new Factory_ToolBtn("商品查询", "商品查询",ClassCustom.getImage("sp.png"),sssp,null,true).TBtnProduce(), //new Factory_ToolBtn("结算金额确认", "结算金额修改确认",ClassCustom.getImage("upd.png"),alterjsje,null,jsjeupdate).TBtnProduce(), new ToolStripSeparator(), new Factory_ToolBtn(" EXCEL ", " EXCEL ",ClassCustom.getImage("ex.jpg"),this.eXCELToolStripMenuItem_Click,null,true).TBtnProduce(), //new Factory_ToolBtn(" 计算器 ", " 计算器 ",ClassCustom.getImage("jsq.png"),this.计算器ToolStripMenuItem_Click,null,true).TBtnProduce(), new Factory_ToolBtn(" 退出 " ," 退出 ",ClassCustom.getImage("tc.png"),ExitSystem,null,true).TBtnProduce() }); return; } if (ClassConstant.DW_ID == "0101" || ClassConstant.DW_ID == "0201") { this.AddButtons(new ToolStripItem[]{ //new Factory_ToolBtn("采购合同", "采购合同",ClassCustom.getImage("cg.png"),this.采购合同ToolStripMenuItem_Click,null,true).TBtnProduce(), //new Factory_ToolBtn("销售合同", "销售合同",ClassCustom.getImage("xs.png"), this.销售合同ToolStripMenuItem_Click,null,true).TBtnProduce(), //new Factory_ToolBtn("外协合同", "外协合同",ClassCustom.getImage("wx.png"),this.外协合同ToolStripMenuItem_Click,null,true).TBtnProduce(), new Factory_ToolBtn("在建一期", "在建一期",ClassCustom.getImage("zj.png"), this.在建工程合同ToolStripMenuItem_Click,null,true).TBtnProduce(), new Factory_ToolBtn("在建二期", "在建二期",ClassCustom.getImage("zj.png"), this.在建工程二期ToolStripMenuItem_Click,null,true).TBtnProduce(), new Factory_ToolBtn("技改", "技改",ClassCustom.getImage("gdzc.png"),this.技改ToolStripMenuItem_Click,null,true).TBtnProduce(), new Factory_ToolBtn("固定资产", "固定资产",ClassCustom.getImage("gdzc.png"),this.购置固定资产ToolStripMenuItem_Click,null,true).TBtnProduce(), new ToolStripSeparator(), new Factory_ToolBtn("往来客户", "往来客户",ClassCustom.getImage("kh.png"),this.客户ToolStripMenuItem_Click,null,true).TBtnProduce(), new Factory_ToolBtn("进度管理", "进度管理",ClassCustom.getImage("mx.png"),this.btn_jd,null,true).TBtnProduce(), new Factory_ToolBtn("生成金税数据", "生成金税数据",ClassCustom.getImage("rc.png"),rc,null,true).TBtnProduce(), new Factory_ToolBtn("综合查询", "综合查询",ClassCustom.getImage("zhcx.png"), this.合同综合查询ToolStripMenuItem_Click,null,true).TBtnProduce(), new Factory_ToolBtn("客户对账及修改", "客户对账及修改",ClassCustom.getImage("NetByte Design Studio - 0483.png"),合同客户进度查询ToolStripMenuItem_Click,null,true).TBtnProduce(), new ToolStripSeparator(), new Factory_ToolBtn("财务凭证确认", "财务凭证确认",ClassCustom.getImage("cw.png"),this.btn_cw,null,true).TBtnProduce(), new Factory_ToolBtn("合同报表", "合同报表",ClassCustom.getImage("bb.png"),合同报表ToolStripMenuItem_Click,null,true).TBtnProduce(), //new Factory_ToolBtn("集团查询", "集团查询",ClassCustom.getImage("sel.png"),btn_jtcx,null,false).TBtnProduce(), new Factory_ToolBtn("结算金额确认", "结算金额修改确认",ClassCustom.getImage("upd.png"),alterjsje,null,jsjeupdate).TBtnProduce(), new ToolStripSeparator(), new Factory_ToolBtn(" EXCEL ", " EXCEL ",ClassCustom.getImage("ex.jpg"),this.eXCELToolStripMenuItem_Click,null,true).TBtnProduce(), //new Factory_ToolBtn(" 计算器 ", " 计算器 ",ClassCustom.getImage("jsq.png"),this.计算器ToolStripMenuItem_Click,null,true).TBtnProduce(), new Factory_ToolBtn(" 退出 " ," 退出 ",ClassCustom.getImage("tc.png"),ExitSystem,null,true).TBtnProduce() }); } else { this.AddButtons(new ToolStripItem[]{ new Factory_ToolBtn("采购合同", "采购合同",ClassCustom.getImage("cg.png"),this.采购合同ToolStripMenuItem_Click,null,true).TBtnProduce(), new Factory_ToolBtn("销售合同", "销售合同",ClassCustom.getImage("xs.png"), this.销售合同ToolStripMenuItem_Click,null,true).TBtnProduce(), new Factory_ToolBtn("外协合同", "外协合同",ClassCustom.getImage("wx.png"),this.外协合同ToolStripMenuItem_Click,null,true).TBtnProduce(), //new Factory_ToolBtn("在建一期", "在建一期",ClassCustom.getImage("zj.png"), this.在建工程合同ToolStripMenuItem_Click,null,true).TBtnProduce(), new Factory_ToolBtn("技改", "技改",ClassCustom.getImage("gdzc.png"),this.技改ToolStripMenuItem_Click,null,true).TBtnProduce(), //new Factory_ToolBtn("在建二期", "在建二期",ClassCustom.getImage("zj.png"), this.在建工程二期ToolStripMenuItem_Click,null,true).TBtnProduce(), //new Factory_ToolBtn("固定资产", "固定资产",ClassCustom.getImage("gdzc.png"),this.购置固定资产ToolStripMenuItem_Click,null,true).TBtnProduce(), new ToolStripSeparator(), new Factory_ToolBtn("往来客户", "往来客户",ClassCustom.getImage("kh.png"),this.客户ToolStripMenuItem_Click,null,true).TBtnProduce(), new Factory_ToolBtn("进度管理", "进度管理",ClassCustom.getImage("mx.png"),this.btn_jd,null,true).TBtnProduce(), new Factory_ToolBtn("生成金税数据", "生成金税数据",ClassCustom.getImage("rc.png"),rc,null,true).TBtnProduce(), new Factory_ToolBtn("综合查询", "综合查询",ClassCustom.getImage("zhcx.png"), this.合同综合查询ToolStripMenuItem_Click,null,true).TBtnProduce(), new Factory_ToolBtn("客户对账及修改", "客户对账及修改",ClassCustom.getImage("NetByte Design Studio - 0483.png"),合同客户进度查询ToolStripMenuItem_Click,null,true).TBtnProduce(), new ToolStripSeparator(), new Factory_ToolBtn("财务凭证确认", "财务凭证确认",ClassCustom.getImage("cw.png"),this.btn_cw,null,true).TBtnProduce(), new Factory_ToolBtn("合同报表", "合同报表",ClassCustom.getImage("bb.png"),合同报表ToolStripMenuItem_Click,null,true).TBtnProduce(), //new Factory_ToolBtn("集团查询", "集团查询",ClassCustom.getImage("sel.png"),btn_jtcx,null,false).TBtnProduce(), new Factory_ToolBtn("合同修改确认", "合同修改确认",ClassCustom.getImage("upd.png"),alterjsje,null,jsjeupdate).TBtnProduce(), new ToolStripSeparator(), new Factory_ToolBtn(" EXCEL ", " EXCEL ",ClassCustom.getImage("ex.jpg"),this.eXCELToolStripMenuItem_Click,null,true).TBtnProduce(), //new Factory_ToolBtn(" 计算器 ", " 计算器 ",ClassCustom.getImage("jsq.png"),this.计算器ToolStripMenuItem_Click,null,true).TBtnProduce(), new Factory_ToolBtn(" 退出 " ," 退出 ",ClassCustom.getImage("tc.png"),ExitSystem,null,true).TBtnProduce() }); } }