internal InvoiceShowForm(bool flag, int index, List <string[]> data)
 {
     this.data  = data;
     this.index = index;
     string[] strArray = data[index];
     this.Initialize();
     base.KeyPreview = true;
     base.KeyDown   += new KeyEventHandler(this.InvoiceShowForm_KeyDown);
     base.Resize    += new EventHandler(this.InvoiceShowForm_Resize);
     this.tool_DaoRuHZTZD.Visible = false;
     this.tool_fushu.Visible      = false;
     this.tool_fuzhi.Visible      = false;
     this.tool_kehu.Visible       = false;
     this.tool_import.Visible     = false;
     this.tool_dkdr.Visible       = false;
     this.tool_dkdjdr.Visible     = false;
     this.tool_chae.Visible       = false;
     this.com_fhr.Edit            = 0;
     this.com_skr.Edit            = 0;
     this.YD_checkBox.Visible     = false;
     this.txt_bz.ReadOnly         = true;
     this.tool_print.Enabled      = true;
     this.tool_zuofei.Visible     = flag;
     this.tool_fanlan.Visible     = false;
     this.SetDataGridPropEven(this._DataGridView);
     this.SetTitleFont();
     this.fpm  = new FpManager();
     this.fpxx = this.fpm.GetXxfp(Invoice.ParseFPLX(strArray[0]), strArray[1], int.Parse(strArray[2]));
     this.ShowInfo(this.fpxx, strArray[3]);
 }
Example #2
0
 public AutoImport(FPLX fplx, string sqslv, ZYFP_LX zyfplx)
 {
     this.zyfplx = zyfplx;
     this.fplx   = fplx;
     this.Initialize();
     this.sqslv = sqslv;
     this.lblNotFind.Visible = false;
     this.GetPaths(fplx);
     if ((string.IsNullOrEmpty(this.drPath) || string.IsNullOrEmpty(this.hxPath)) || (string.IsNullOrEmpty(this.bfPath) || (this.interval == 0)))
     {
         MessageManager.ShowMsgBox("INP-242169");
         this.btnStart.Enabled = false;
         PathIsNull            = true;
     }
     else if ((!Directory.Exists(this.drPath) || !Directory.Exists(this.hxPath)) || !Directory.Exists(this.bfPath))
     {
         MessageManager.ShowMsgBox("INP-242201");
         this.btnStart.Enabled = false;
         PathIsNull            = true;
     }
     else
     {
         this.timer1.Interval = this.interval * 0x3e8;
         this.fpm             = new FpManager();
         this.djHelper        = new FPDJHelper();
         PathIsNull           = false;
     }
 }