private void FaPiaoZuoFei_WeiKai_FormClosing(object sender, EventArgs e)
 {
     this.xxfpChaXunBll = null;
     this.progressBar   = null;
     this.FpList        = null;
     base.Dispose();
 }
 private void FPZJDaoChu_FormClosing(object sender, EventArgs e)
 {
     this._AisinoGrid   = null;
     this.xxfpChaXunBll = null;
     this.progressBar   = null;
     this.dict          = null;
     base.Dispose();
 }
        protected override object[] doService(object[] param)
        {
            object[] objArray2;
            object[] objArray = new object[1];
            XXFP     xxfp     = new XXFP(false);

            try
            {
                this.loger.Debug("###开始查询。。。。");
                new Dictionary <string, object>();
                if ((param == null) || (param.Length < 3))
                {
                    this.loger.Debug("[FPChanXunWenBenJieKouShareMethod函数异常]:发票查询传递参数个数有误!");
                    return(null);
                }
                string xSDJBH = "";
                this.loger.Debug("param长度" + param.Length.ToString());
                if ((param.Length > 3) && (param[3] != null))
                {
                    xSDJBH = param[3].ToString();
                }
                if (param[0] == null)
                {
                    this.loger.Debug("发票种类is null");
                    param[0] = "";
                }
                if (param[1] == null)
                {
                    this.loger.Debug("发票代码is null");
                    param[1] = "";
                }
                if (param[2] == null)
                {
                    this.loger.Debug("发票号码is null");
                    param[2] = "";
                }
                if ((param.Length > 3) && (param[3] == null))
                {
                    this.loger.Debug("销售单据编号is null");
                    param[3] = "";
                }
                this.loger.Debug("###查询fpzl" + param[0].ToString() + " fpdm " + param[1].ToString() + " fphm " + param[2].ToString() + " xsdjbh " + xSDJBH);
                Fpxx fpxx = xxfp.GetModel(param[0].ToString(), param[1].ToString(), Tool.ObjectToInt(param[2]), xSDJBH);
                objArray[0] = fpxx;
                objArray2   = objArray;
            }
            catch (Exception exception)
            {
                this.loger.Error(exception.ToString());
                objArray2 = objArray;
            }
            finally
            {
                xxfp = null;
            }
            return(objArray2);
        }
Exemple #4
0
        protected override object[] doService(object[] param)
        {
            object[] objArray2;
            object[] objArray = new object[] { 0 };
            XXFP     xxfp     = new XXFP(false);

            try
            {
                if (xxfp == null)
                {
                    xxfp = new XXFP(false);
                }
                if ((param == null) || (param.Length < 3))
                {
                    this.loger.Error("发票打印标志回写数据库:参数个数错误");
                    return(null);
                }
                string fPZL = param[0].ToString();
                string fPDM = param[1].ToString();
                int    fPHM = int.Parse(param[2].ToString());
                if (!xxfp.SetYiDaYin(fPZL, fPDM, fPHM))
                {
                    this.loger.Error("[设置发票已打印状态失败]" + ("发票种类:" + fPZL + "发票代码:" + fPDM + "发票号码:" + fPHM.ToString()));
                }
                objArray[0] = 1;
                objArray2   = objArray;
            }
            catch (Exception exception)
            {
                this.loger.Error(exception.Message);
                objArray2 = objArray;
            }
            finally
            {
                xxfp = null;
            }
            return(objArray2);
        }
Exemple #5
0
 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);
     }
 }
        protected override object[] doService(object[] param)
        {
            object[] objArray2;
            XXFP     xxfp = new XXFP(false);

            object[] objArray = new object[1];
            Dictionary <string, object> condition = new Dictionary <string, object>();

            try
            {
                if ((param == null) || (param.Length < 2))
                {
                    this.loger.Debug("发票上传下载传递参数个数有误!");
                    condition = null;
                    return(null);
                }
                int    result = 1;
                int    num2   = 100;
                string str    = "0";
                string str2   = "3";
                int    num3   = 0;
                int.TryParse(param[0].ToString(), out result);
                int.TryParse(param[1].ToString(), out num2);
                if (param.Length >= 3)
                {
                    str = (param[2] == null) ? "0" : param[2].ToString();
                }
                if (param.Length >= 4)
                {
                    str2 = (param[3] == null) ? "3" : param[3].ToString();
                }
                num3 = 0;
                if (param.Length >= 5)
                {
                    num3 = Tool.ObjectToInt((param[4] == null) ? "0" : param[4].ToString());
                }
                switch (num3)
                {
                case 0:
                {
                    if (result <= 0)
                    {
                        result = 1;
                    }
                    if (num2 <= 0)
                    {
                        num2 = 100;
                    }
                    this.loger.Error(string.Concat(new object[] { "上传下载传入参数,传入参数:PageNo: ", result.ToString(), "PageSize: ", num2 }));
                    string str3 = (((result - 1) * num2) + 1).ToString();
                    string str4 = (result * num2).ToString();
                    condition.Add("beginNO", str3);
                    condition.Add("endNO", str4);
                    condition.Add("BSZT1", str);
                    condition.Add("BSZT2", str2);
                    List <Fpxx> list = new XXFP(false).SelectFpxxPage(condition);
                    this.loger.Error("上传下载传入参数,实际查询票数:" + ((list == null) ? "0" : list.Count.ToString()));
                    objArray[0] = list;
                    return(objArray);
                }

                case 1:
                {
                    Fpxx fpxx = xxfp.GetModel(param[0].ToString(), param[1].ToString(), Tool.ObjectToInt(param[2]), "");
                    objArray[0] = fpxx;
                    return(objArray);
                }

                case 2:
                {
                    List <Fpxx> list2 = new XXFP(false).SelectFpxxPatch(param[5].ToString());
                    this.loger.Error("上传下载传入参数,实际查询票数:" + ((list2 == null) ? "0" : list2.Count.ToString()));
                    objArray[0] = list2;
                    return(objArray);
                }
                }
                objArray2 = null;
            }
            catch (Exception exception)
            {
                this.loger.Error("Excepiton:" + exception.ToString());
                objArray2 = objArray;
            }
            finally
            {
                xxfp      = null;
                condition = null;
            }
            return(objArray2);
        }
Exemple #7
0
 private void SelectMonth_FormClosing(object sender, EventArgs e)
 {
     this.xxfpChaXunBll = null;
     this.loger         = null;
 }