Ejemplo n.º 1
0
        private void frmIniCard_Load(object sender, System.EventArgs e)
        {
            try
            {
                XmlDocument xDoc = new XmlDocument();
                xDoc.Load("icSys/icSys.xml");

                xDoc.DocumentElement.SelectSingleNode("./sysForm").Attributes.GetNamedItem("val").Value = "sendIC";
                xDoc.Save("icSys/icSys.xml");

                NFrmIC.frmIC frmIC = new NFrmIC.frmIC();
                frmIC.m_strSalerName = BengZhan.CDBConnection.m_strUserName;
                frmIC.m_strWellNo    = this.m_WellNo;
                frmIC.ShowDialog();
                this.Close();
                return;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }

            //以下不用

            this.txtDepName.Text = this.m_DepName;
            this.txtWellNo.Text  = this.m_WellNo;
        }
Ejemplo n.º 2
0
        private void frmIniCard_Load(object sender, System.EventArgs e)
        {
            try
            {
                XmlDocument xDoc=new XmlDocument();
                xDoc.Load("icSys/icSys.xml");

                xDoc.DocumentElement.SelectSingleNode("./sysForm").Attributes.GetNamedItem("val").Value="sendIC";
                xDoc.Save("icSys/icSys.xml");

                NFrmIC.frmIC   frmIC=new NFrmIC.frmIC();
                frmIC.m_strSalerName=BengZhan.CDBConnection.m_strUserName;
                frmIC.m_strWellNo=this.m_WellNo;
                frmIC.ShowDialog();
                this.Close();
                return;

            }
            catch(Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }

            //���²���

            this.txtDepName.Text=this.m_DepName;
            this.txtWellNo.Text=this.m_WellNo;
        }
Ejemplo n.º 3
0
        private void showICSale()
        {
            try
            {
                if(ComSoft.frmMonitorEx.m_dtFarCmd==null)
                {
                    MessageBox.Show("���ȴ�ʵʱ������!");
                    return;
                }

                XmlDocument xDoc=new XmlDocument();
                xDoc.Load("icSys/icSys.xml");

                xDoc.DocumentElement.SelectSingleNode("./sysForm").Attributes.GetNamedItem("val").Value="saleIC";
                xDoc.Save("icSys/icSys.xml");

                NFrmIC.frmIC frmICO=new NFrmIC.frmIC();
                frmICO.m_strSalerName=BengZhan.CDBConnection.m_strUserName;
                frmICO.Show();

            }
            catch(Exception ex)
            {
                MessageBox.Show(ex.ToString());

            }
        }
Ejemplo n.º 4
0
        private void showICMana()
        {
            XmlDocument xDoc=new XmlDocument();
            xDoc.Load("Info.xml");

            string strFileName=xDoc.DocumentElement.SelectSingleNode("./dbFile").Attributes.GetNamedItem("name").Value.Trim();

            if(!File.Exists(strFileName))
            {
                MessageBox.Show("�ͻ��˳�����ִ��IC�����������");
                return;
            }

             xDoc=new XmlDocument();
            xDoc.Load("icSys/icSys.xml");

            xDoc.DocumentElement.SelectSingleNode("./sysForm").Attributes.GetNamedItem("val").Value="manaIC";
            xDoc.Save("icSys/icSys.xml");

            NFrmIC.frmIC frmICObj=new NFrmIC.frmIC();
            frmICObj.m_strSalerName=BengZhan.CDBConnection.m_strUserName;
            frmICObj.ShowDialog();
        }