protected override object[] doService(object[] param) { object[] objArray2; object[] objArray = new object[1]; FaPiaoChaXun xun = new FaPiaoChaXun(); try { if ((param == null) || (param.Length < 2)) { this.loger.Debug("发票传递参数个数有误!"); return(null); } List <string[]> list = param[0] as List <string[]>; bool iSQD = Tool.ObjectToBool(param[1].ToString()); List <FaPiaoChaXun.FpPrint> allFpPrintList = new List <FaPiaoChaXun.FpPrint>(); for (int i = 0; i < list.Count; i++) { FaPiaoChaXun.FpPrint item = new FaPiaoChaXun.FpPrint { fpzl = Tool.GetFPType(list[i][0]), fpdm = list[i][1], fphm = Tool.ObjectToInt(list[i][2]), index = Tool.ObjectToInt(list[i][3]), qdbz = Tool.ObjectToBool(list[i][4]) }; allFpPrintList.Add(item); } xun.WenBenSelectedFPListPrint(allFpPrintList, iSQD); objArray2 = objArray; } catch (Exception exception) { this.loger.Error(exception.Message); objArray2 = objArray; } finally { xun.Close(); xun = null; } return(objArray2); }
internal override BaseResult DoService() { FaPiaoChaXun form = new FaPiaoChaXun(); DateTime DateStart = new DateTime(_args.Year, _args.Month < 1 ? 1 : _args.Month, 1); DateTime DateEnd = new DateTime(_args.Year, _args.Month < 1 ? 12 : _args.Month, DateTime.DaysInMonth(_args.Year, _args.Month < 1 ? 12 : _args.Month)); Dictionary <string, object> dict = new Dictionary <string, object>(); dict.Add("KsRq", string.Format("{0} 00:00:00", DateStart.ToString("yyyy-MM-dd"))); dict.Add("JsRq", string.Format("{0} 23:59:59", DateEnd.ToString("yyyy-MM-dd"))); dict.Add("FPZL", _args.FPZL); dict.Add("AdminBz", 1); dict.Add("Admin", "管理员"); dict.Add("BSZT1", _args.WeiBaoSongChecked ? 0 : -1); dict.Add("BSZT2", _args.YanQianShiBaiChecked ? 4 : -1); dict.Add("FPDM", $"%{_args.MathStr}%"); dict.Add("GFMC", $"%{_args.MathStr}%"); dict.Add("GFSH", $"%{_args.MathStr}%"); dict.Add("FPHM", string.IsNullOrEmpty(_args.MathStr) ? $"%请输入检索关键字...%" : $"%{_args.MathStr}%"); DataTable table = form.xxfpChaXunBll.SelectPage(1, 30, 0, dict, 1, DateTime.Now, -1, 1)?.Data; return(new ChaXunResult(_args, table)); }
public ChaXunTiaoJian(DateTime CardClock) { this.Year = 0x76b; this.loger = LogUtil.GetLogger <ChaXunTiaoJian>(); this.NameQry = string.Empty; this.TaxCodeQry = string.Empty; this.KindQry = string.Empty; this.KindStr = " "; this.xxfpChaXunBll = new XXFP(false); this.MaxDateTime = new DateTime(0x270e, 12, DateTime.DaysInMonth(0x270e, 12)); this.SortWay = 1; this.BSZT1 = -1; this.BSZT2 = -1; try { this.Initialize(); this.fpChaXun = null; this._CardClock = CardClock; this.Year = CardClock.Year; this.txt_gfmc = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txt_gfmc"); this.txt_gfsh = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txt_gfsh"); this.data_ksrq = this.xmlComponentLoader1.GetControlByName <DateTimePicker>("data_ksrq"); this.data_jsrq = this.xmlComponentLoader1.GetControlByName <DateTimePicker>("data_jsrq"); this.com_fpzl = this.xmlComponentLoader1.GetControlByName <AisinoCMB>("com_fpzl"); this.btn_zhuhechaxun = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("but_zhuhechaxun"); this.btn_ok = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("but_ok"); this.btn_close = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("but_close"); this.com_fpzl = this.xmlComponentLoader1.GetControlByName <AisinoCMB>("com_fpzl"); this.btn_ok = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("but_ok"); this.btn_close = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("but_close"); this.check_Sort = this.xmlComponentLoader1.GetControlByName <AisinoCHK>("check_Sort"); this.SetSearchControlAttritute(); this.com_fpzl.Items.Clear(); this.SetFPZLAuthorization(); this.com_fpzl.SelectedIndex = 0; this.com_fpzl.DropDownStyle = ComboBoxStyle.DropDownList; this.NameQry = this.txt_gfmc.Text = string.Empty; this.TaxCodeQry = this.txt_gfsh.Text = string.Empty; this.blNameQry = true; this.blTaxCodeQry = true; this.btn_zhuhechaxun.Click += new EventHandler(this.btnZhuHeChaXun_Click); this.btn_ok.Click += new EventHandler(this.btnOK_Click); this.btn_close.Click += new EventHandler(this.btnCancle_Click); this.data_ksrq.TextChanged += new EventHandler(this.data_ksrq_TextChanged); this.data_jsrq.TextChanged += new EventHandler(this.data_jsrq_TextChanged); this.txt_gfmc.MaxLength = 100; this.txt_gfsh.MaxLength = 20; this.txt_gfmc.KeyPress += new KeyPressEventHandler(this.textBox_GFMC_KeyPress); this.txt_gfsh.KeyPress += new KeyPressEventHandler(this.textBox_GFSH_KeyPress); this.txt_gfmc.TextChanged += new EventHandler(this.txt_gfmc_TextChanged); this.BSZT1 = -1; this.BSZT2 = -1; this.IsFpzl = false; string str = PropertyUtil.GetValue("Aisino.Fwkp.Fpkj.Form.FPCX_FaPiaoChaXunTiaoJian_SortWay"); if ((str == "1") || (str == "")) { this.SortWay = 1; this.check_Sort.Checked = true; } else { this.SortWay = 0; this.check_Sort.Checked = false; } } catch (Exception exception) { this.loger.Error("[ChaXunTiaoJian构造函数异常]:" + exception.Message); } }