Beispiel #1
0
 /// <summary>
 /// 需要放在一个PANEL里.
 /// </summary>
 public AvPanel(EagleString.LoginInfo li, EagleString.CommandPool pool, EagleProtocal.MyTcpIpClient sk)
 {
     this.TopLevel = false;
     this.Dock     = DockStyle.Fill;
     InitializeComponent();
     set_input_args(li, pool, sk);
 }
Beispiel #2
0
 public EtdzOneKey(EagleString.Structs.ETDZONEKEY onekey,EagleProtocal.MyTcpIpClient socket,EagleString.CommandPool cmdpool)
 {
     InitializeComponent();
     m_onekey = onekey;
     m_socket = socket;
     m_cmdpool = cmdpool;
 }
Beispiel #3
0
        /// <summary>
        /// 用ListViewItem作为参数0:表示最低价与返点,1:散客拼团,2:固定舱位申请3,:浮动舱位申请
        /// </summary>
        public PassengerAdd(ListViewItem lvi, EagleString.AvResult avresult, int type
                            , EagleString.LoginInfo li, EagleProtocal.MyTcpIpClient sk, EagleString.CommandPool pool)
        {
            InitializeComponent();

            m_li      = li;
            m_socket  = sk;
            m_cmdpool = pool;


            m_type   = type;
            avResult = avresult;
            switch (type)
            {
            case 0:
                InitByLowest(lvi, avresult);
                break;

            case 1:
                InitByGroup(lvi);
                break;

            case 2:
                InitBySpecTick(lvi, avresult);
                break;

            case 3:
                InitBySpecTick(lvi, avresult);
                break;
            }
        }
Beispiel #4
0
 public FormMain(EagleString.LoginInfo li, EagleProtocal.MyTcpIpClient sk, EagleString.CommandPool pool)
 {
     InitializeComponent();
     LABEL = this.label1;
     CheckForIllegalCrossThreadCalls = false;
     //skinEngine1.SkinFile = Application.StartupPath + "\\EagleSkin.ssk";
     set_args(li, sk, pool);
 }
Beispiel #5
0
 public AutoImport(EagleProtocal.MyTcpIpClient sk, EagleString.LoginInfo li, EagleString.CommandPool pool)
 {
     InitializeComponent();
     m_socket  = sk;
     m_li      = li;
     m_cmdpool = pool;
     InitListBox();
 }
Beispiel #6
0
 public LvPanel(EagleProtocal.MyTcpIpClient sk, EagleString.CommandPool pool, EagleString.LoginInfo li)
 {
     InitializeComponent();
     this.Dock     = DockStyle.Fill;
     this.TopLevel = false;
     m_socket      = sk;
     m_pool        = pool;
     m_li          = li;
 }
Beispiel #7
0
 /// <summary>
 /// 引用SOCKET与指令池的构造
 /// </summary>
 public Receipt(EagleProtocal.MyTcpIpClient socket, EagleString.CommandPool cmdpool, EagleString.LoginInfo li)
 {
     InitializeComponent();
     printHandle                = new PrintXmlHandle(PRINT_TYPE.RECEIPT, "", 0);
     m_socket                   = socket;
     m_cmdpool                  = cmdpool;
     m_li                       = li;
     btnOffline.Enabled         = m_li.b2b.lr.AuthorityOfFunction("00A");
     btnPrintOffline_LX.Enabled = btnOffline.Enabled;
 }
Beispiel #8
0
        public RefundTicket(EagleProtocal.MyTcpIpClient sk, EagleString.CommandPool pool, EagleString.LoginInfo li)
        {
            InitializeComponent();
            m_socket  = sk;
            m_cmdpool = pool;
            m_li      = li;
            int id = EagleString.EagleFileIO.EtdzPrinterNumber(li.b2b.lr.IpidUsingIsSameOffice());

            if (id > 0)
            {
                txtTrfdOption.Text = string.Format("/AM/{0}/D", id);
            }
        }
Beispiel #9
0
        public Insurance(PRINT_TYPE pType, string iaCode, EagleProtocal.MyTcpIpClient socket, EagleString.CommandPool cmdpool)
        {
            //lock (Instance)
            {
                CheckForIllegalCrossThreadCalls = false;
                if (Instance != null)
                {
                    Instance.Dispose();
                    Instance = null;
                    return;
                }
                InitializeComponent();

                m_socket           = socket;
                m_cmdpool          = cmdpool;
                Insurance.Instance = this;

                GetProductList(iaCode);

                this.cmbCardType.DataSource = Enum.GetNames(typeof(EagleWebService.IdentityType));
                cmbCardType.SelectedIndex   = 0;
                this.tsbUsername.Text       = Options.GlobalVar.IAUsername;
            }
        }
Beispiel #10
0
 public void set_args(EagleString.LoginInfo li, EagleProtocal.MyTcpIpClient sk, EagleString.CommandPool pool)
 {
     m_li      = li;
     m_cmdpool = pool;
     m_socket  = sk;
 }
Beispiel #11
0
 public void SetSocket(System.Net.Sockets.Socket sk)
 {
     socket         = new EagleProtocal.MyTcpIpClient(sk, li);
     socket.Error  += new EagleProtocal.ErrorEvent(socket_Error);
     socket.Incept += new EagleProtocal.InceptEvent(socket_Incept);
 }
Beispiel #12
0
 public AutoImportTpr(EagleProtocal.MyTcpIpClient socket, EagleString.CommandPool pool, EagleString.LoginInfo li)
 {
     m_socket  = socket;
     m_cmdpool = pool;
     m_li      = li;
 }
Beispiel #13
0
 public AirCode2Pnr(EagleString.CommandPool pool, EagleProtocal.MyTcpIpClient sk)
 {
     InitializeComponent();
     cmdpool = pool;
     socket  = sk;
 }
Beispiel #14
0
 public PnrOrderSubmit(EagleString.CommandPool pool, EagleProtocal.MyTcpIpClient sk)
 {
     InitializeComponent();
     m_cmdpool = pool;
     m_socket  = sk;
 }
Beispiel #15
0
 public void set_args(EagleProtocal.MyTcpIpClient socket, EagleString.CommandPool cmdpool)
 {
     m_socket  = socket;
     m_cmdpool = cmdpool;
 }
Beispiel #16
0
 public QueueClear(EagleProtocal.MyTcpIpClient sk, EagleString.CommandPool pool)
 {
     InitializeComponent();
     m_socket = sk;
     m_pool   = pool;
 }