private void tsQueryItem_Click(object sender, EventArgs e) { ToolStripMenuItem tsitem = (ToolStripMenuItem)sender; TopClass topclass = (TopClass)tsitem.Tag; switch (topclass.ArchivesTypeID) { case (int)ArchivesType.归档文件: QueryGD.GetGDQuery.MainForm = this; QueryGD.GetGDQuery gd = new QueryGD.GetGDQuery(); gd.getGDQuery(topclass.TopClassID, false); break; case (int)ArchivesType.照片档案_2002: QueryZP.GetZPQuery.MainForm = this; QueryZP.GetZPQuery zp = new QueryZP.GetZPQuery(); zp.getZPQuery(topclass.TopClassID, false); break; case (int)ArchivesType.文书档案: QueryWS.GetWSQuery.MainForm = this; QueryWS.GetWSQuery ws = new QueryWS.GetWSQuery(); ws.getWSQuery(topclass.TopClassID, false); break; case (int)ArchivesType.科技档案_2000: QueryKeJi.GetKeJiQuery.MainForm = this; QueryKeJi.GetKeJiQuery keji = new QueryKeJi.GetKeJiQuery(); keji.getKeJiQuery(topclass.TopClassID, false); break; case (int)ArchivesType.会计档案: QueryKuaiJi.GetKuaiJiQuery.MainForm = this; QueryKuaiJi.GetKuaiJiQuery kuaiji = new QueryKuaiJi.GetKuaiJiQuery(); kuaiji.getKuaiJiQuery(topclass.TopClassID, false); break; case (int)ArchivesType.声像档案: QuerySX.GetSXQuery.MainForm = this; QuerySX.GetSXQuery ts = new QuerySX.GetSXQuery(); ts.getSXQuery(topclass.TopClassID, false); break; case (int)ArchivesType.公安业务档案: QueryYW.GetYWQuery.MainForm = this; QueryYW.GetYWQuery yw = new QueryYW.GetYWQuery(); yw.getYWQuery(topclass.TopClassID, false); break; case (int)ArchivesType.社保业务档案: QuerySBYW.GetSBYWQuery.MainForm = this; QuerySBYW.GetSBYWQuery sbyw = new QuerySBYW.GetSBYWQuery(); sbyw.getSBYWQuery(topclass.TopClassID, false); break; default: break; } }
private void 文件检索DToolStripMenuItem_Click(object sender, EventArgs e) { bool check = (PublicClass.CheckContentPermission && !PublicClass.CheckSystemManager) ? true : false; QueryGD.GetGDQuery.MainForm = this; QueryGD.GetGDQuery query = new QueryGD.GetGDQuery(); query.getGDQuery(TopClassID, check, UserID); }
protected override void FileQuery() { bool check = (PublicClass.CheckContentPermission && !PublicClass.CheckSystemManager) ? true : false; QueryGD.GetGDQuery.MainForm = this; QueryGD.GetGDQuery query = new QueryGD.GetGDQuery(); query.getGDQuery(TopClassID, check); }