public SLV GetSLv(string value, int valueType, FPLX fplx, string slvStr) { decimal num4; List <SLV> slvList = this.GetSlvList(fplx, slvStr); for (int i = 0; i < slvList.Count; i++) { decimal num2; decimal num3; SLV slv = slvList[i]; if (((valueType == 0) && decimal.TryParse(value, out num2)) && (decimal.TryParse(slv.DataValue, out num3) && (decimal.Compare(num3, num2) == 0))) { return(slv); } if ((valueType == 1) && slv.ShowValue.Equals(value)) { return(slv); } } if (valueType != 0) { return(null); } if (decimal.TryParse(value, out num4)) { string str = (value.Length == 0) ? "" : (decimal.Round(decimal.Multiply(decimal.Parse("100.0"), num4)).ToString() + "%"); return(new SLV(fplx, 0, (value.Length == 0) ? "" : decimal.Round(num4, 2).ToString(), str, str)); } return(new SLV(fplx, 0, value, value, value)); }
public List <SLV> GetSlvList(FPLX fplx, string slvStr) { List <SLV> list = new List <SLV>(); if (!string.IsNullOrEmpty(slvStr)) { char[] separator = new char[] { ',' }; List <string> list1 = new List <string>(slvStr.Split(separator, StringSplitOptions.None).GroupBy <string, string>((serializeClass.staticFunc_13)).Select <IGrouping <string, string>, string>((serializeClass.staticFunc_14)).ToArray <string>()); list1.Sort(new Comparison <string>(InvoiceHelper.CompareSlvDesc)); foreach (string str in list1) { double num; if (double.TryParse(str, out num)) { if (num == 0.0) { list.Add(new SLV(fplx, 0, "0.00", "0%", "0%")); } else { string str2 = ((num * 100.0)).ToString() + "%"; list.Add(new SLV(fplx, 0, str, str2, str2)); } } } } return(list); }
private void method_2() { if (this._isPrint == "0002") { try { string str; if ((this._args != null) && (this._args.Length > 3)) { string str2 = this._args[1].ToString() + " " + Aisino.Fwkp.Print.Common.smethod_1(this._args[2].ToString()); this.aisinoPrint.printDocument.DocumentName = str2; } this.aisinoPrint.Print(this._isZYPT); if ((((this._args != null) && (this._args.Length >= 4)) && ((this._args[3].ToString() == "_FP") && ((str = this._args[0].ToString()) != null))) && (((str == "s") || (str == "c")) || (((str == "f") || (str == "j")) || (str == "q")))) { ServiceFactory.InvokePubService("Aisino.Fwkp.Fpkj.FPDYShareMethod", this._args); if (this.taxCard_0.SubSoftVersion == "Linux") { FPLX fplx = Aisino.Fwkp.Print.Common.DBFpzlToCardType(this._args[0].ToString()); this.taxCard_0.UpdateDybzToDB((int)fplx, this._args[1].ToString(), this._args[2].ToString()); } } this._isPrint = "0000"; } catch (Exception exception) { this._isPrint = "0004"; this.loger.Error("[OnPrint函数异常]" + exception.ToString()); } } }
public static string PareFpType(FPLX fplx) { FPLX fplx2 = fplx; if ((int)fplx2 <= 12) { switch (fplx2) { case 0: return("s"); case (FPLX)2: return("c"); case (FPLX)11: return("f"); case (FPLX)12: return("j"); } } else { if (fplx2 == (FPLX)0x29) { return("q"); } if (fplx2 == (FPLX)0x33) { return("p"); } } return("s"); }
protected override object[] doService(object[] param) { object[] objArray = new object[] { false }; if (param.Length == 1) { FPLX fplx = Invoice.ParseFPLX(param[0].ToString()); InvoiceType type = (InvoiceType)2; TaxCard card = TaxCardFactory.CreateTaxCard(); if (((int)fplx != 0x29) && ((int)fplx != 2)) { return(objArray); } if ((int)fplx == 0x29) { type = (InvoiceType)0x29; } card.GetCurrentInvCode(type); if (card.RetCode != 0) { MessageManager.ShowMsgBox(card.ErrCode); objArray[0] = false; return(objArray); } if (new JSFPJSelect(fplx).ShowDialog() == DialogResult.OK) { objArray[0] = true; } } return(objArray); }
public static List <SLV> GetSlvList(FPLX fplx, string slvStr) { slvStr = slvStr + ","; List <SLV> list = new List <SLV>(); if (!string.IsNullOrEmpty(slvStr)) { List <string> list2 = new List <string>(slvStr.Split(new char[] { ',' }, StringSplitOptions.None)); list2.Sort(new Comparison <string>(PresentinvMng.CompareSlvDesc)); foreach (string str in list2) { double num; if (double.TryParse(str, out num)) { if (num == 0.0) { if (CommonTool.isSPBMVersion()) { list.Add(new SLV(fplx, 0, "0.00", "0%", "0%")); } else { list.Add(new SLV(fplx, 0, "0.00", "免税", "免税")); } } else { string str2 = ((num * 100.0)).ToString() + "%"; list.Add(new SLV(fplx, 0, str, str2, str2)); } } } } return(list); }
public string[] GetCurrent(FPLX fplx) { string str = ""; try { TaxCard card = TaxCardFactory.CreateTaxCard(); int num = int.Parse(Enum.Format(typeof(FPLX), fplx, "d")); InvCodeNum currentInvCode = card.GetCurrentInvCode(fplx); if ((currentInvCode.InvTypeCode == null) || (currentInvCode.InvNum == null)) { str = card.get_ErrCode(); if (str.StartsWith("TCD_768") || str.StartsWith("TCD_769")) { FormMain.CallUpload(); } return(null); } if (currentInvCode.InvTypeCode.Equals("0000000000")) { str = "INP-242104"; return(null); } str = "000000"; return(new string[] { currentInvCode.InvTypeCode, currentInvCode.InvNum }); } catch (Exception exception) { this.log.Error("读取当前发票代码号码时异常:" + exception.ToString()); str = "9999"; return(null); } }
public JSFPJSelect(FPLX fplx) { this.Initialize(); this.mfplx = fplx; this.FPJ.CellDoubleClick += new DataGridViewCellEventHandler(this.FPJ_CellDoubleClick); base.Load += new EventHandler(this.JSFPJSelect_Load); }
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; } }
private void GetPaths(FPLX type) { if ((type == 0) || ((int)type == 2)) { this.drPath = PropertyUtil.GetValue("FPDJ_DRPATH"); this.bfPath = PropertyUtil.GetValue("FPDJ_BFPATH"); this.hxPath = PropertyUtil.GetValue("FPDJ_HXPATH"); int.TryParse(PropertyUtil.GetValue("FPDJ_INTERVAL"), out this.interval); } else if ((int)type == 0x33) { this.drPath = PropertyUtil.GetValue("DZFPDJ_DRPATH"); this.bfPath = PropertyUtil.GetValue("DZFPDJ_BFPATH"); this.hxPath = PropertyUtil.GetValue("DZFPDJ_HXPATH"); int.TryParse(PropertyUtil.GetValue("DZFPDJ_INTERVAL"), out this.interval); } else if ((int)type == 11) { this.drPath = PropertyUtil.GetValue("HYFPDJ_DRPATH"); this.bfPath = PropertyUtil.GetValue("HYFPDJ_BFPATH"); this.hxPath = PropertyUtil.GetValue("HYFPDJ_HXPATH"); int.TryParse(PropertyUtil.GetValue("HYFPDJ_INTERVAL"), out this.interval); } else if ((int)type == 12) { this.drPath = PropertyUtil.GetValue("JDCFPDJ_DRPATH"); this.bfPath = PropertyUtil.GetValue("JDCFPDJ_BFPATH"); this.hxPath = PropertyUtil.GetValue("JDCFPDJ_HXPATH"); int.TryParse(PropertyUtil.GetValue("JDCFPDJ_INTERVAL"), out this.interval); } }
private SLV _GetSLv(FPLX fplx, string value, int valueType) { double num; if ((value == "免税") || (value == "不征税")) { value = "0%"; } if (value == "中外合作油气田") { return(new SLV(0, (ZYFP_LX)1, "0.05", "中外合作油气田", "")); } if (((value == "0.05") || (value == "0.050")) && (((int)fplx == 0) && (this._fpxx.Zyfplx == (ZYFP_LX)1))) { return(new SLV(0, (ZYFP_LX)1, "0.05", "中外合作油气田", "")); } if (value == "0.015") { return(new SLV(fplx, (ZYFP_LX)10, "0.015", "1.5%", "")); } if (valueType != 0) { return(null); } if (double.TryParse(value, out num)) { string str = (value.Length == 0) ? "" : (((num * 100.0)).ToString() + "%"); return(new SLV(fplx, 0, (value.Length == 0) ? "" : num.ToString(), str, str)); } return(new SLV(fplx, 0, value, value, value)); }
private string GetTypeStr(FPLX type) { if (type == 0) { return("专用发票"); } if ((int)type == 2) { return("普通发票"); } if ((int)type == 11) { return("货物运输业增值税专用发票"); } if ((int)type == 12) { return("机动车销售统一发票"); } if ((int)type == 0x33) { return("电子增值税普通发票"); } if ((int)type == 0x29) { return("增值税普通发票(卷票)"); } return(null); }
public WSPZCXForm(FPLX fplx) { this.mfplx = fplx; this.InitializeComponent(); this.btnQuery = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("btnQuery"); this.txtWspzh = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txtWspzh"); this.txtXfsh = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txtXfsh"); this.data_Jzrq = this.xmlComponentLoader1.GetControlByName <DateTimePicker>("data_Jzrq"); this.data_Qsrq = this.xmlComponentLoader1.GetControlByName <DateTimePicker>("data_Qsrq"); this.tool_select = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_select"); this.tool_exit = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_exit"); this.tool_Args = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tool_Args"); this.dgSwdk = this.xmlComponentLoader1.GetControlByName <CustomStyleDataGrid>("dgWspz"); this.toolStrip1 = this.xmlComponentLoader1.GetControlByName <ToolStrip>("toolStrip1"); ControlStyleUtil.SetToolStripStyle(this.toolStrip1); this.tool_exit.Click += new EventHandler(this.BtnExit_Click); this.tool_select.Click += new EventHandler(this.BtnSelect_Click); this.tool_Args.Click += new EventHandler(this.BtnArgs_Click); this.btnQuery.Click += new EventHandler(this.BtnSwdkFPFind_Click); this.dgSwdk.DoubleClick += new EventHandler(this.BtnSelect_Click); this.txtWspzh.KeyPress += new KeyPressEventHandler(this.txtWspzh_KeyPress); this.txtXfsh.KeyPress += new KeyPressEventHandler(this.txtXfsh_KeyPress); this.txtWspzh.MaxLength = 100; this.txtXfsh.MaxLength = 20; this.dgSwdk.AllowUserToAddRows = false; this.dgSwdk.MultiSelect = false; this.dgSwdk.SelectionMode = DataGridViewSelectionMode.FullRowSelect; this.dgSwdk.ReadOnly = true; this.SelectTimeBind(); this.swdkFpLists = new List <SwdkFpxx>(); }
public SLV(FPLX fplx_1, ZYFP_LX zyfp_LX_1, string string_3, string string_4, string string_5) { this.fplx_0 = fplx_1; this.zyfp_LX_0 = zyfp_LX_1; this.string_0 = string_3; this.string_1 = string_4; this.string_2 = string_5; }
public _InvoiceType GetInvoiceType(FPLX type) { _InvoiceType type2; FPLX fplx = type; if ((int)fplx <= 12) { switch ((int)fplx) { case 0: type2.dbfpzl = "s"; type2.displayfpzl = "专用发票"; type2.TaxCardfpzl = (InvoiceType)0; return(type2); case 2: type2.dbfpzl = "c"; type2.displayfpzl = "普通发票"; type2.TaxCardfpzl = (InvoiceType)2; return(type2); case 11: type2.dbfpzl = "f"; type2.displayfpzl = "货物运输业增值税专用发票"; type2.TaxCardfpzl = (InvoiceType)11; return(type2); case 12: type2.dbfpzl = "j"; type2.displayfpzl = "机动车销售统一发票"; type2.TaxCardfpzl = (InvoiceType)12; return(type2); } } else if ((int)fplx != 0x29) { if ((int)fplx == 0x33) { type2.dbfpzl = "p"; type2.displayfpzl = "电子增值税普通发票"; type2.TaxCardfpzl = (InvoiceType)0x33; return(type2); } } else { type2.dbfpzl = "q"; type2.displayfpzl = "增值税普通发票(卷票)"; type2.TaxCardfpzl = (InvoiceType)0x29; return(type2); } type2.dbfpzl = ""; type2.displayfpzl = ""; type2.TaxCardfpzl = (InvoiceType)1; return(type2); }
public static string GetInvMainInfo(FPLX fplx, Fpxx blueFpxx) { string str = ""; string str2 = ""; string str3 = ""; string str4 = ""; string str5 = ""; if (((((int)fplx == 2) || ((int)fplx == 0x33)) || ((int)fplx == 0x29)) && (blueFpxx.Zyfplx == (ZYFP_LX)9)) { str2 = "销方名称:"; str3 = "销方税号:"; str4 = "销方地址电话:"; str5 = "销方银行账号:"; } else { str2 = "购方名称:"; str3 = "购方税号:"; str4 = "购方地址电话:"; str5 = "购方银行账号:"; } if ((int)fplx <= 11) { if (((int)fplx != 0) && ((int)fplx != 2)) { if ((int)fplx != 11) { return(str); } return(new StringBuilder().Append("类别代码:").Append(blueFpxx.fpdm).Append(Environment.NewLine).Append("发票号码:").Append(blueFpxx.fphm).Append(Environment.NewLine).Append("实际受票方名称:").Append(blueFpxx.spfmc).Append(Environment.NewLine).Append("实际受票方税号:").Append(blueFpxx.spfnsrsbh).Append(Environment.NewLine).Append("收货人名称:").Append(blueFpxx.shrmc).Append(Environment.NewLine).Append("收货人税号:").Append(blueFpxx.shrnsrsbh).Append(Environment.NewLine).Append("发货人名称:").Append(blueFpxx.fhrmc).Append(Environment.NewLine).Append("发货人税号:").Append(blueFpxx.fhrnsrsbh).Append(Environment.NewLine).Append("车种车号:").Append(blueFpxx.czch).Append(Environment.NewLine).Append("车船吨位:").Append(blueFpxx.ccdw).Append(Environment.NewLine).Append("主管税务机关名称:").Append(blueFpxx.zgswjgmc).Append(Environment.NewLine).Append("主管税务机关代码:").Append(blueFpxx.zgswjgdm).Append(Environment.NewLine).Append("合计金额(不含税):").Append(blueFpxx.je).Append(Environment.NewLine).Append("合计税额:").Append(blueFpxx.se).Append(Environment.NewLine).Append("开票日期:").Append(blueFpxx.kprq).Append(Environment.NewLine).Append("开票人:").Append(blueFpxx.kpr).Append(Environment.NewLine).Append("作废标志:").Append(blueFpxx.zfbz ? "是" : "否").ToString()); } } else { if ((int)fplx == 12) { string str6 = decimal.Add(decimal.Parse(blueFpxx.je), decimal.Parse(blueFpxx.se)).ToString("F2"); string str7 = ""; if (blueFpxx.isNewJdcfp) { str7 = string.Format("纳税人识别号:{0}", blueFpxx.gfsh) + Environment.NewLine; } return(new StringBuilder().Append("类别代码:").Append(blueFpxx.fpdm).Append(Environment.NewLine).Append("发票号码:").Append(blueFpxx.fphm).Append(Environment.NewLine).Append("购货单位(人):").Append(blueFpxx.gfmc).Append(Environment.NewLine).Append(str7).Append("身份证号码/组织机构代码:").Append(blueFpxx.sfzhm).Append(Environment.NewLine).Append("车辆类型:").Append(blueFpxx.cllx).Append(Environment.NewLine).Append("厂牌型号:").Append(blueFpxx.cpxh).Append(Environment.NewLine).Append("产地:").Append(blueFpxx.cd).Append(Environment.NewLine).Append("合格证号:").Append(blueFpxx.hgzh).Append(Environment.NewLine).Append("进口证明书号:").Append(blueFpxx.jkzmsh).Append(Environment.NewLine).Append("商检单号:").Append(blueFpxx.sjdh).Append(Environment.NewLine).Append("发动机号码:").Append(blueFpxx.fdjhm).Append(Environment.NewLine).Append("车辆识别代号/车架号码:").Append(blueFpxx.clsbdh).Append(Environment.NewLine).Append("吨位:").Append(blueFpxx.dw).Append(Environment.NewLine).Append("限乘人数:").Append(blueFpxx.xcrs).Append(Environment.NewLine).Append("主管税务机关名称:").Append(blueFpxx.zgswjgmc).Append(Environment.NewLine).Append("主管税务机关代码:").Append(blueFpxx.zgswjgdm).Append(Environment.NewLine).Append("合计金额(不含税):").Append(blueFpxx.je).Append(Environment.NewLine).Append("价税合计:").Append(str6).Append(Environment.NewLine).Append("合计税额:").Append(blueFpxx.se).Append(Environment.NewLine).Append("开票日期:").Append(blueFpxx.kprq).Append(Environment.NewLine).Append("开票人:").Append(blueFpxx.kpr).Append(Environment.NewLine).Append("作废标志:").Append(blueFpxx.zfbz ? "是" : "否").ToString()); } if ((int)fplx == 0x29) { return(new StringBuilder().Append("类别代码:").Append(blueFpxx.fpdm).Append(Environment.NewLine).Append("发票号码:").Append(blueFpxx.fphm).Append(Environment.NewLine).Append(str2).Append(blueFpxx.gfmc).Append(Environment.NewLine).Append(str3).Append(blueFpxx.gfsh).Append(Environment.NewLine).Append("合计金额:").Append(blueFpxx.je).Append(Environment.NewLine).Append("合计税额:").Append(blueFpxx.se).Append(Environment.NewLine).Append("开票日期:").Append(blueFpxx.kprq).Append(Environment.NewLine).Append("收款员:").Append(blueFpxx.skr).Append(Environment.NewLine).Append("作废标志:").Append(blueFpxx.zfbz ? "是" : "否").Append(Environment.NewLine).ToString()); } if ((int)fplx != 0x33) { return(str); } } return(new StringBuilder().Append("类别代码:").Append(blueFpxx.fpdm).Append(Environment.NewLine).Append("发票号码:").Append(blueFpxx.fphm).Append(Environment.NewLine).Append(str2).Append(blueFpxx.gfmc).Append(Environment.NewLine).Append(str3).Append(blueFpxx.gfsh).Append(Environment.NewLine).Append(str4).Append(blueFpxx.gfdzdh).Append(Environment.NewLine).Append(str5).Append(blueFpxx.gfyhzh).Append(Environment.NewLine).Append("合计金额(不含税):").Append(blueFpxx.je).Append(Environment.NewLine).Append("合计税额:").Append(blueFpxx.se).Append(Environment.NewLine).Append("开票日期:").Append(blueFpxx.kprq).Append(Environment.NewLine).Append("开票人:").Append(blueFpxx.kpr).Append(Environment.NewLine).Append("作废标志:").Append(blueFpxx.zfbz ? "是" : "否").Append(Environment.NewLine).ToString()); }
public FPLX method_14(string string_0) { FPLX zYFP = FPLX.ZYFP; try { Class100 class2 = new Class100(); string[] strArray = string_0.Split(new char[] { ';' }); if ((strArray != null) && (strArray.Length >= 1)) { string[] strArray2 = strArray[0].Split(new char[] { ',' }); Class96 class3 = new Class96 { FPDM = strArray2[0], FPNO = strArray2[1] }; class3 = class2.method_3(Class97.dataTable_0, class3.FPNO, class3.FPDM); if (class3 == null) { Class101.smethod_1("(发票下载)获取发票种类异常:fpRow为null"); return(zYFP); } if (class3.Fplx.Equals("ZYFP", StringComparison.CurrentCultureIgnoreCase)) { return(FPLX.ZYFP); } if (class3.Fplx.Equals("PTFP", StringComparison.CurrentCultureIgnoreCase)) { return(FPLX.PTFP); } if (class3.Fplx.Equals("HYFP", StringComparison.CurrentCultureIgnoreCase)) { return(FPLX.HYFP); } if (class3.Fplx.Equals("JDCFP", StringComparison.CurrentCultureIgnoreCase)) { return(FPLX.JDCFP); } if (class3.Fplx.Equals("DZFP", StringComparison.CurrentCultureIgnoreCase)) { return(FPLX.DZFP); } if (class3.Fplx.Equals("JSFP", StringComparison.CurrentCultureIgnoreCase)) { zYFP = FPLX.JSFP; } return(zYFP); } Class101.smethod_1("(发票下载)获取发票种类异常:受理序列号为空"); return(zYFP); } catch (Exception exception) { Class101.smethod_1("发票下载:" + exception.ToString()); } return(zYFP); }
private void _ShowDataGrid(CustomStyleDataGrid parent, Dictionary <SPXX, string> spxx, int index) { while ((parent.Rows.Count - 1) < index) { parent.Rows.Add(); } FPLX fplx = this._fpxx.Fplx; string str = this._GetSLv(fplx, spxx[(SPXX)8], 0).ShowValue; if (((str != "") && (str == "0%")) && FLBM_lock.isFlbm()) { if ((spxx[(SPXX)0x17] == "") || (spxx[(SPXX)0x17] == "3")) { str = "0%"; } if (spxx[(SPXX)0x17] == "1") { str = "免税"; } if (spxx[(SPXX)0x17] == "2") { str = "不征税"; } } else if (((str != "") && (str == "0%")) && !FLBM_lock.isFlbm()) { str = "免税"; } string str2 = ((spxx[(SPXX)9].Length > 0) && (Math.Abs(double.Parse(spxx[(SPXX)9])) < 0.009)) ? "" : spxx[(SPXX)9]; DataGridViewRow row = parent.Rows[index]; for (int i = 0; i < row.Cells.Count; i++) { string name = parent.Columns[i].Name; try { if (name.Equals("SLV")) { row.Cells["SLV"].Value = str; } else if (name.Equals("SE")) { row.Cells["SE"].Value = str2; } else { row.Cells[name].Value = spxx[(SPXX)Enum.Parse(typeof(SPXX), name)]; } } catch (ArgumentException exception) { this.log.Error("设置数据表格内容异常", exception); } } this._SetHzxx(); }
private void InvoiceShowForm_KeyDown(object sender, KeyEventArgs e) { Keys keyCode = e.KeyCode; bool flag = false; switch (keyCode) { case Keys.Next: if (this.index < (this.data.Count - 1)) { this.index++; this.tip.Hide(this.lab_title); } else { this.tip.Show(" 已经到达本页最后一张 ", this.lab_title, new Point(0, 0x37), 0x7d0); return; } flag = true; this.tip.Show(" 正在查询后一张发票... ", this.lab_title, new Point(0, 0x37)); break; case Keys.PageUp: if (this.index > 0) { this.index--; this.tip.Hide(this.lab_title); } else { this.tip.Show(" 已经到达本页第一张 ", this.lab_title, new Point(0, 0x37), 0x7d0); return; } flag = true; this.tip.Show(" 正在查询前一张发票... ", this.lab_title, new Point(0, 0x37)); break; } if (flag) { string[] strArray = this.data[this.index]; FPLX fpzl = Invoice.ParseFPLX(strArray[0]); if ((fpzl == 0) || ((int)fpzl == 2)) { this.fpxx = this.fpm.GetXxfp(fpzl, strArray[1], int.Parse(strArray[2])); this._DataGridView.Rows.Clear(); this.ShowInfo(this.fpxx, strArray[3]); this.tip.Hide(this.lab_title); } else { base.DialogResult = DialogResult.Ignore; base.Close(); } } }
public StartConfirmForm(FPLX fplx, string[] icn) { this.Initialize(); this.lab_zl.Text = this.GetTypeStr(fplx); this.lab_dm.Text = icn[0]; this.lab_hm.Text = icn[1]; if ((int)fplx == 0x33) { this.label1.Text = "\r\n 现在显示的为将要开具的发票的种类、代码、号码。请确认是否填开本张发票?"; } }
private int PareFpType(FPLX fplx) { switch (fplx) { case 0: return(1); case FPLX.PTFP: return(2); } return(0); }
private int PareFpType(FPLX fplx) { if (fplx != 0) { if (fplx == FPLX.PTFP) { return(2); } return(0); } return(1); }
internal HZFPTK(FPLX fplx) { this.Initialize(); this.txt_tzdh.PasswordChar = '*'; this.txt_tzdh_1.PasswordChar = '*'; this.txt_tzdh.MaxLength = 0x10; this.txt_tzdh_1.MaxLength = 0x10; this.txt_fpdm.MaxLength = 10; this.txt_fphm.MaxLength = 8; this.fplx = fplx; this.istlhy = base.TaxCardInstance.QYLX.ISTLQY && ((int)fplx == 11); }
protected override object[] doService(object[] param) { if (param.Length != 3) { return(null); } FPLX fpzl = Invoice.ParseFPLX(param[0] as string); int fphm = (int)param[2]; IFpManager manager = new FpManager(); Fpxx fpxx = manager.GetXxfp(fpzl, param[1] as string, fphm); return(new object[] { fpxx, manager.Code() }); }
internal HZFPTK_PP_SWDK(FPLX fplx) { this.Initialize(); this.fplx = fplx; this.txt_fpdm.MaxLength = 12; this.txt_fphm.MaxLength = 8; this.txt_fpdm2.MaxLength = 12; this.txt_fphm2.MaxLength = 8; this.txt_fphm.PasswordChar = '*'; this.txt_fpdm.PasswordChar = '*'; this.txt_fphm2.PasswordChar = '*'; this.txt_fpdm2.PasswordChar = '*'; this.txt_fpdm.Focus(); }
protected int ValidHead(TempXSDJ XSDJtemp) { if (string.IsNullOrEmpty(XSDJtemp.Djh)) { this.ErrorAdd("没有单据号", "", 0, false); this.errorResolver.AbandonCount++; return(2); } if (string.IsNullOrEmpty(XSDJtemp.Gfmc)) { this.ErrorAdd("没有购方名称", XSDJtemp.Djh, 0, true); return(1); } if ((this.Fplx == InvType.Special) && string.IsNullOrEmpty(XSDJtemp.Gfsh)) { this.ErrorAdd("没有税号", XSDJtemp.Djh, 0, true); return(1); } FPLX fplx = 2; if (this.Fplx == InvType.Common) { fplx = 2; } else if (this.Fplx == InvType.Special) { fplx = 0; } else if (this.Fplx == InvType.transportation) { fplx = 11; } else if (this.Fplx == InvType.vehiclesales) { fplx = 12; } bool sFZJY = XSDJtemp.SFZJY == "0"; if (!this.check.CheckTaxCode(this.Fplx, XSDJtemp.Gfsh, sFZJY, fplx)) { this.ErrorAdd("税号有错误", XSDJtemp.Djh, 0, true); return(1); } return(0); }
private string GetInvoiceType(FPLX type) { switch (type) { case (FPLX)0: return("s"); case (FPLX)2: return("c"); case (FPLX)11: return("f"); case (FPLX)12: return("j"); } return(""); }
private string GetInvoiceType(FPLX type) { switch (type) { case 0: return("专用发票"); case (FPLX)2: return("普通发票"); case (FPLX)11: return("货物运输业增值税专用发票"); case (FPLX)12: return("机动车销售统一发票"); } return("专用发票"); }
public ManualImport(FPLX fplx, int zyfplx) { this.mFplx = fplx; this.Initialize(); this.dgDJ.AllowUserToAddRows = false; this.dgDJ.MultiSelect = false; if (((this.mFplx == 0) || ((int)this.mFplx == 2)) || ((int)this.mFplx == 0x33)) { if ((int)zyfplx == 1) { this.lblGfmc.Text = "销方名称"; this.lblGfsh.Text = "销方税号"; this.dgDJ.Columns["colGfmc"].HeaderText = "销方名称"; this.dgDJ.Columns["colGfsh"].HeaderText = "销方税号"; } else { this.lblGfmc.Text = "购方名称"; this.lblGfsh.Text = "购方税号"; this.dgDJ.Columns["colGfmc"].HeaderText = "购方名称"; this.dgDJ.Columns["colGfsh"].HeaderText = "购方税号"; } } else if ((int)this.mFplx == 11) { this.lblGfmc.Text = "实际受票方名称"; this.lblGfsh.Text = "实际受票方税号"; this.dgDJ.Columns["colGfmc"].HeaderText = "实际受票方名称"; this.dgDJ.Columns["colGfsh"].HeaderText = "实际受票方税号"; this.txtgfmc.Location = new Point(this.lblGfmc.Location.X + 0x73, this.txtgfmc.Location.Y); this.txtgfsh.Location = new Point(this.lblGfsh.Location.X + 0x73, this.txtgfsh.Location.Y); } else if ((int)this.mFplx == 12) { this.lblGfmc.Text = "购方名称"; this.lblGfsh.Text = "购方税号"; this.dgDJ.Columns["colGfmc"].HeaderText = "购方名称"; this.dgDJ.Columns["colGfsh"].HeaderText = "购方税号"; this.dgDJ.Columns["colHjje"].HeaderText = "价税合计"; } this.dgDJ.CellDoubleClick += new DataGridViewCellEventHandler(this.dgDJ_CellDoubleClick); base.Load += new EventHandler(this.ImportDJXZ_Load); }
public ImportSet(FPLX fplx) { this.fplx = fplx; this.Initialize(); this.txtDRPath.ReadOnly = true; this.txtBFPath.ReadOnly = true; this.txtHXPath.ReadOnly = true; if (((int)fplx == 0) || ((int)fplx == 2)) { this.txtDRPath.Text = PropertyUtil.GetValue("FPDJ_DRPATH"); this.txtBFPath.Text = PropertyUtil.GetValue("FPDJ_BFPATH"); this.txtHXPath.Text = PropertyUtil.GetValue("FPDJ_HXPATH"); this.txtInterval.Text = PropertyUtil.GetValue("FPDJ_INTERVAL"); } else if ((int)fplx == 0x33) { this.txtDRPath.Text = PropertyUtil.GetValue("DZFPDJ_DRPATH"); this.txtBFPath.Text = PropertyUtil.GetValue("DZFPDJ_BFPATH"); this.txtHXPath.Text = PropertyUtil.GetValue("DZFPDJ_HXPATH"); this.txtInterval.Text = PropertyUtil.GetValue("DZFPDJ_INTERVAL"); } else if ((int)fplx == 11) { this.txtDRPath.Text = PropertyUtil.GetValue("HYFPDJ_DRPATH"); this.txtBFPath.Text = PropertyUtil.GetValue("HYFPDJ_BFPATH"); this.txtHXPath.Text = PropertyUtil.GetValue("HYFPDJ_HXPATH"); this.txtInterval.Text = PropertyUtil.GetValue("HYFPDJ_INTERVAL"); } else if ((int)fplx == 12) { this.txtDRPath.Text = PropertyUtil.GetValue("JDCFPDJ_DRPATH"); this.txtBFPath.Text = PropertyUtil.GetValue("JDCFPDJ_BFPATH"); this.txtHXPath.Text = PropertyUtil.GetValue("JDCFPDJ_HXPATH"); this.txtInterval.Text = PropertyUtil.GetValue("JDCFPDJ_INTERVAL"); } }