示例#1
0
        protected override void RunCommand()
        {
            FaPiaoZuoFei_WeiKai kai = new FaPiaoZuoFei_WeiKai();

            try
            {
                DockForm form = base.ShowForm <FaPiaoZuoFei_WeiKai>();
                if (form != null)
                {
                    form.Close();
                    kai.FaPiaoType = BusinessObject.FPLX.JDCFP;
                    if (kai.SetValue())
                    {
                        kai.ShowDialog();
                    }
                }
            }
            catch (Exception exception)
            {
                this.loger.Error(exception.Message);
            }
            finally
            {
                if (kai != null)
                {
                    kai.Close();
                    kai.Dispose();
                    kai = null;
                }
            }
        }
示例#2
0
        protected override void RunCommand()
        {
            FaPiaoZuoFei_WeiKai kai = new FaPiaoZuoFei_WeiKai();

            TaxCardFactory.CreateTaxCard();
            try
            {
                object[] objArray  = null;
                object[] objArray2 = new object[] { "c" };
                objArray = ServiceFactory.InvokePubService("Aisino.Fwkp.SELECTJSFP", objArray2);
                if ((objArray != null) && Tool.ObjectToBool(objArray[0]))
                {
                    DockForm form = base.ShowForm <FaPiaoZuoFei_WeiKai>();
                    if (form != null)
                    {
                        form.Close();
                        kai.FaPiaoType = BusinessObject.FPLX.PTFP;
                        if (kai.SetValue())
                        {
                            kai.ShowDialog();
                        }
                    }
                }
            }
            catch (Exception exception)
            {
                this.loger.Error(exception.Message);
            }
            finally
            {
                if (kai != null)
                {
                    kai.Close();
                    kai.Dispose();
                    kai = null;
                }
            }
        }