Example #1
0
        private void Yongan_Load(object sender, EventArgs e)
        {
            throw new Exception("Unknown Error!");
            LogoPicture.pictures pic = new LogoPicture.pictures();
            this.pictureBox1.Image = pic.pictureBox5.Image;
            //1初始化时间
            dtpSignDate.Value = System.DateTime.Now;
            dtpBegin.Value    = System.DateTime.Now;
            dtpEnd.Value      = System.DateTime.Now.AddDays(6);

            //2读配置:保单号YA2006WUH,经办人,打印边距,序号
            cfg_yongan cfg = new cfg_yongan();

            cfg.GetConfig();
            eNumberHead               = cfg.eNumberHead;
            this.tbSignature.Text     = cfg.Signature;
            this.numericUpDownX.Value = cfg.OffsetX;
            this.numericUpDownY.Value = cfg.OffsetY;
            this.tbInsuranceNo.Text   = cfg.SaveNo;
            //3初始化全局变量
            retstring = "";
            b_opened  = true;
            connect_4_Command.PrintWindowOpen = true;
            context = this;
            this.bt_Print.Enabled = false;
        }
Example #2
0
        private void SinoSafe_Load(object sender, EventArgs e)
        {
            throw new Exception("Unknown Error!");
            LogoPicture.pictures pic = new LogoPicture.pictures();
            this.pictureBox1.Image = pic.pictureBox3.Image;
            cbInsureType.Text      = cbInsureType.Items[0].ToString();

            DateTime dt = new DateTime();

            dt = System.DateTime.Now;
            dtp_Start.Value = dt;
            dtp_Date.Value  = dt;
            dtp_End.Value   = dt.AddDays(7);

            cfg_sinosafe cs = new cfg_sinosafe();

            cs.GetConfig();
            this.tb_Signature.Text    = cs.Signature;
            this.numericUpDown1.Value = cs.OffsetX;
            this.numericUpDown2.Value = cs.OffsetY;
            this.tb_NO.Text           = cs.SaveNo;
            this.tbPhone.Text         = cs.Phone;
            this.tbCompany.Text       = cs.CompanyAddr;

            retstring = "";
            b_opened  = true;
            connect_4_Command.PrintWindowOpen = true;
            context = this;
            if (this.tbPhone.Text.Trim() == "82424242")
            {
                tbPhone.Text = "";
            }
        }
Example #3
0
        public AboutBox()
        {
            InitializeComponent();

            //  初始化 AboutBox 以显示程序集信息中包含的产品信息。
            //  也可以通过以下方法更改应用程序的程序集信息设置:
            //  - 项目->属性->应用程序->程序集信息
            //  - AssemblyInfo.cs
            this.Text = String.Format("关于 {0}", AssemblyTitle);
            this.labelProductName.Text   = AssemblyProduct;
            this.labelVersion.Text       = String.Format("版本 {0}", AssemblyVersion + GlobalVar.debugDate);
            this.labelCopyright.Text     = AssemblyCopyright;
            this.labelCompanyName.Text   = AssemblyCompany;
            this.textBoxDescription.Text = AssemblyDescription;
            this.textBoxDescription.Text = "版权声明-软件许可协议:\r\n" +
                                           "本协议是您(个人或单一实体)与武汉易格网公司之间关于《易格航空订票系统》系列软件产品的法律协议,请认真阅读。\r\n\r\n" +
                                           "《易格航空订票系统》系列软件包括计算机软件,并可能包括与之相关的媒体和任何的印刷材料,以及电子文档(下称“软件产品”或“软件”)。一旦安装、复制或以其他方式使用本软件产品,即表示同意接受协议各项条件的约束。如果您不同意协议的条件,则不能获得使用本软件产品的权力。\r\n\r\n" +
                                           "1.本软件产品受中华人民共和国版权法及国际版权条约和其他知识产权法及条约的保护。用户获得的只是本软件产品的使用权。\r\n\r\n" +
                                           "2.本软件产品的版权归黎彦博所有,受到适用版权法及其他知识产权法及条约的保护。\r\n\r\n" +
                                           "3.您不得:\r\n" +
                                           "    删除本软件及其他副本上一切关于版权的信息;\r\n" +
                                           "    销售、出租此软件产品的任何部分;\r\n" +
                                           "    制作和提供该软件的注册机及破解程序;\r\n" +
                                           "    对本软件进行反向工程,如反汇编、反编译等。\r\n\r\n" +
                                           "4.如果您未遵守本协议的任一条款,易格网公司有权立即终止本协议,且您必须立即终止使用本软件并销毁本软件产品的所有副本。\r\n\r\n" +
                                           "5.使用本软件可能存在一定风险,请用户经陪训后,严格按照所在代理商的要求规范操作!\r\n\r\n" +
                                           "6.若您对本协议内容有任何疑问,请与武汉易格网公司联系:027-85777575";



            LogoPicture.pictures pic = new LogoPicture.pictures();
            switch (GlobalVar.serverAddr)
            {
            case GlobalVar.ServerAddr.Eagle:
                this.logoPictureBox.Image = pic.pictureBox2.Image;
                break;

            case GlobalVar.ServerAddr.KunMing:
                this.labelProductName.Text = "龙生航空订票系统";
                this.labelCopyright.Text   = "";
                this.labelCompanyName.Text = "龙生航空服务有限公司";
                //this.logoPictureBox.Image = pic.pictureBox9.Image;
                this.textBoxDescription.Text = "";
                this.Text = "关于 " + GlobalVar.exeTitle;
                break;
            }
        }
Example #4
0
        private void DuBang02_Load(object sender, EventArgs e)
        {
            throw new Exception("Unknown Error!");
            LogoPicture.pictures pic = new LogoPicture.pictures();
            this.pictureBox1.Image = pic.pictureBox3.Image;
            DateTime dt = new DateTime();

            dt                 = System.DateTime.Now;
            dtpBeg.Value       = dt;
            dtpPrintTime.Value = dt;
            cfg_dubang02 cfg = new cfg_dubang02();

            cfg.GetConfig();
            tbTerm.Text          = cfg.Term;
            dtpEnd.Value         = dt.AddDays(int.Parse(tbTerm.Text.Trim()));
            tbNo.Text            = cfg.SaveNo;
            tbSignature.Text     = cfg.Signature;
            numericUpDown1.Value = cfg.OffsetX;
            numericUpDown2.Value = cfg.OffsetY;
            eNumberHead          = cfg.ENumberHead;
            retstring            = "";
            b_opened             = true;
            connect_4_Command.PrintWindowOpen = true;
            context = this;

            if (tbNo.Text.Trim() == "")
            {
                tbNo.Text = "110108070";
            }

            if (bEagleDubang && b_dubang03)
            {
                PrintHyx.bxLogin bx = new ePlus.PrintHyx.bxLogin();
                if (bx.ShowDialog() != DialogResult.OK)
                {
                    this.Close();
                }
            }
        }
Example #5
0
 private void Sunshine_Load(object sender, EventArgs e)
 {
     throw new Exception("Unknown Error!");
     LogoPicture.pictures pic = new LogoPicture.pictures();
     this.imgLogo.Image = pic.pictureBox6.Image;
     try
     {
         cb证件类型.Text = "身份证";
         DateTime dt = System.DateTime.Now;
         dtp保险起始时间.Value = dt;
         dtp保险终止时间.Value = dtp保险起始时间.Value.AddDays(7);
         dtp保险终止时间.Value = dtp保险终止时间.Value.AddSeconds(-1);
         tb保险起始时间.Text   = dtp保险起始时间.Value.ToLongTimeString();
         tb保险终止时间.Text   = dtp保险终止时间.Value.ToLongTimeString();
     }
     catch (Exception ee)
     {
         MessageBox.Show(ee.Message);
     }
     if (this.tb报案电话.Text.Trim() == "82424242")
     {
         tb报案电话.Text = "";
     }
 }
Example #6
0
        public Pacific()
        {
            InitializeComponent();
            try
            {
                LogoPicture.pictures pic = new LogoPicture.pictures();
                this.imgLogo.Image = pic.pictureBox8.Image;
                lb公司名称.Text        = "中国太平洋财产保险股份有限公司";
                lb保单标题.Text        = "航空旅客人身意外伤害保险保险单";
                this.Text          = "打印 太平洋-航空意外伤害保险";
            }
            catch
            {
            }


            this.xmlname = "Pacific";
            if (!checkxmlfile())
            {
                Dispose();
            }
            this.insuranceType         = "B0A";//B09 Eagle保险卡
            this.insuranceNumberLength = 10;
            this.paperHeight           = 400;
            this.paperWidth            = 949;
            this.bhyx = false;
            //保存enumberHead
            FileStream   fs   = new FileStream(GlobalVar.s_configfile, FileMode.Open, FileAccess.ReadWrite);
            StreamReader sr   = new StreamReader(fs, Encoding.Default);
            string       temp = sr.ReadToEnd();

            sr.Close();
            fs.Close();
            XmlDocument xd = new XmlDocument();

            xd.LoadXml(temp);
            XmlNode xn = xd.SelectSingleNode("eg").SelectSingleNode(xmlname).SelectSingleNode("ENumberHead");

            xn.InnerText = "";//未设置电子保单号头部
            xd.Save(GlobalVar.s_configfile);
            //
            cfg_insurance cc = new cfg_insurance();

            cc.GetConfig(this.xmlname);
            this.eNumberHead = cc.ENumberHead;
            //+ EagleAPI.GetRandom01(DateTime.Now.Minute)
            //+ EagleAPI.GetRandom01(DateTime.Now.Second)
            //+ EagleAPI.GetRandom01(DateTime.Now.Millisecond);

            this.tb经办人.Text           = cc.Signature;
            this.numericUpDown1.Value = cc.OffsetX;
            this.numericUpDown2.Value = cc.OffsetY;
            this.tb保单序号.Text          = cc.SaveNo;
            tb填开日期.Text = System.DateTime.Now.ToShortDateString();

            retstring = "";
            b_opened  = true;
            connect_4_Command.PrintWindowOpen = true;
            context            = this;
            this.ActiveControl = this.tbPnr;
        }
Example #7
0
        public LogonForm()
        {
            InitializeComponent();
#if RWY
            skinEngine1.SkinFile = Application.StartupPath + "\\Macos.ssk";
#else
            skinEngine1.SkinFile = Application.StartupPath + "\\EagleSkin.ssk";
#endif
            //pictureBox1.Visible = (GlobalVar.serverAddr == GlobalVar.ServerAddr.Eagle);
            //pictureBox2.Visible = (GlobalVar.serverAddr == GlobalVar.ServerAddr.HangYiWang);
            picLogin.Visible = true;
            LogoPicture.pictures pic = new LogoPicture.pictures();
            if (GlobalVar.serverAddr == GlobalVar.ServerAddr.Eagle)
            {
                picLogin.Image = pic.pictureBox2.Image;

#if receipt
                pictureBox1.Image = pic.pictureBox7.Image;
                this.ShowIcon     = false;
#endif
            }

            else if (GlobalVar.serverAddr == GlobalVar.ServerAddr.HangYiWang)
            {
                picLogin.Image = pic.pictureBox2.Image;// pictureBox1.Image = pic.pictureBox1.Image;
            }
            else if (GlobalVar.serverAddr == GlobalVar.ServerAddr.ZhenZhouJiChang)
            {
                //pictureBox1.Image = pic.pictureBox9.Image;

                try
                {
                    Bitmap bi = new Bitmap(Application.StartupPath + "\\resources\\Application.gif");
                    picLogin.Image = (Image)bi;
                }
                catch (Exception eee)
                {
                    //MessageBox.Show("请将Logo文件Application.gif 放置到系统安装目录下的Resources目录里面!");
                }
            }
            if (GlobalVar2.bTempus)
            {
                picLogin.Image = Image.FromFile(Application.StartupPath + "\\Resources\\eagle1.gif");
            }

            try
            {
                picLogin.Image = Image.FromFile("login.jpg");
            }
            catch { }

            try { this.Icon = new Icon("ico.ico"); }
            catch { }

            XMLConfig.ISP isp = Options.GlobalVar.SelectedISP;
            if (isp == XMLConfig.ISP.ChinaTelecom)
            {
                rbDianx.Checked = true;
            }
            else if (isp == XMLConfig.ISP.ChinaUnicom)
            {
                rbWangt.Checked = true;
            }
        }