/// <summary> /// 预览 /// </summary> protected virtual void Print() { PreviewLocalizer plZer = new XtraChinese.DxperienceXtraPrintingLocalizationCHS(); DataLib.sysClass myClass = new DataLib.sysClass(); myClass.DoPreview(this.Text, plZer, this.printingSystem); }
/// <summary> /// 预览 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void tbPreview_Click(object sender, EventArgs e) { PreviewLocalizer plZer = new Common.XtraChinese.DxperienceXtraPrintingLocalizationCHS(); DataLib.sysClass myClass = new DataLib.sysClass(); myClass.DoPreview(this.Text, plZer, this.printingSystem); }
private void btnPreview_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { PreviewLocalizer plZer = new XtraChinese.DxperienceXtraPrintingLocalizationCHS(); DataLib.sysClass myClass = new DataLib.sysClass(); myClass.DoPreview(this.Text, plZer, this.printingSystem); }
private void PrintReport(int iFlag) { if (DataLib.SysVar.strUGroup != "超级用户") { DataLib.DataHelper myHelper = new DataLib.DataHelper(); DataSet ds = myHelper.GetDs("select isnull(F_Print,0) as F_Print from t_UserGroup where F_Group = '" + DataLib.SysVar.strUGroup + "'"); if (Convert.ToBoolean(ds.Tables[0].Rows[0][0]) == false) { MessageBox.Show(this, "你没有权限!", "提示"); return; } } PreviewLocalizer plZer = new Common.XtraChinese.DxperienceXtraPrintingLocalizationCHS(); DataLib.sysClass myClass = new DataLib.sysClass(); if (iFlag == 0) { myClass.DoPreview(this.Text, plZer, this.printingSystem); } else { myClass.DoPrint(this.Text, plZer, this.printingSystem); } }
private void btnPreview_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (DataLib.SysVar.strUGroup != "超级用户") { DataLib.DataHelper myHelper = new DataLib.DataHelper(); DataSet ds = myHelper.GetDs("select isnull(F_Print,0) as F_Print from t_UserGroup where F_Group = '" + DataLib.SysVar.strUGroup + "'"); if (Convert.ToBoolean(ds.Tables[0].Rows[0][0]) == false) { MessageBox.Show(this, "你没有权限!", "提示"); return; } } PreviewLocalizer plZer = new XtraChinese.DxperienceXtraPrintingLocalizationCHS(); DataLib.sysClass myClass = new DataLib.sysClass(); myClass.DoPreview(this.Text, plZer, this.printingSystem); }