using System; 
 | 
using System.Collections.Generic; 
 | 
using System.ComponentModel; 
 | 
using System.Data; 
 | 
using System.Drawing; 
 | 
using System.Text; 
 | 
using System.Windows.Forms; 
 | 
  
 | 
namespace LMES 
 | 
{ 
 | 
    public partial class OA_MessageBox : Form 
 | 
    { 
 | 
        public OA_MessageBox() 
 | 
        { 
 | 
            InitializeComponent(); 
 | 
        } 
 | 
  
 | 
        public Int64 HInterID; 
 | 
        public string HBillNo; 
 | 
        public string HBillType; 
 | 
        public string HBillTypeName; 
 | 
  
 | 
        public void init() 
 | 
        { 
 | 
             
 | 
        } 
 | 
  
 | 
        private void lblClose_Click(object sender, EventArgs e) 
 | 
        { 
 | 
            this.Close(); 
 | 
        } 
 | 
  
 | 
        private void timer1_Tick(object sender, EventArgs e) 
 | 
        { 
 | 
            timer1.Enabled = false; 
 | 
            lblMessage.Text = "ÄúÓÐ1ÕÅδÉóºËµ¥¾Ý£¬µ¥¾ÝºÅΪ£º"+HBillNo+"  µ¥¾ÝÀàÐÍΪ£º" + HBillTypeName +" "; 
 | 
        } 
 | 
  
 | 
        private void lblMessage_Click(object sender, EventArgs e) 
 | 
        { 
 | 
            ShowBill(); 
 | 
        } 
 | 
  
 | 
        private void ShowBill() 
 | 
        { 
 | 
            if (HBillType == "1101") //²É¹ºÉêÇëµ¥ 
 | 
            { 
 | 
                //ClsCg_PORequestBillMain oBill = new ClsCg_PORequestBillMain(); 
 | 
                //if (oBill.ShowBill(HInterID, ref ClsPub.sExeReturnInfo)) 
 | 
                //{ 
 | 
                //    Cg_PORequestBill oFrm = new Cg_PORequestBill(); 
 | 
                //    oFrm.BillStatus = Enum_BillStatus.BillStatus_View; 
 | 
                //    oFrm.BillOld = oBill; 
 | 
                //    oFrm.ShowDialog(); 
 | 
                //} 
 | 
                //else 
 | 
                //{ 
 | 
                //    MessageBox.Show("µ¥¾ÝδÕÒµ½", "Ìáʾ"); 
 | 
                //} 
 | 
                //oBill = null; 
 | 
            } 
 | 
            else if (HBillType == "1214") //ÁìÓÃÉêÇëµ¥ 
 | 
            { 
 | 
                //ClsKf_MateOutRequestBillMain oBill = new ClsKf_MateOutRequestBillMain(); 
 | 
                //if (oBill.ShowBill(HInterID, ref ClsPub.sExeReturnInfo)) 
 | 
                //{ 
 | 
                //    Kf_MateOutRequestBill oFrm = new Kf_MateOutRequestBill(); 
 | 
                //    oFrm.BillStatus = Enum_BillStatus.BillStatus_View; 
 | 
                //    oFrm.BillOld = oBill; 
 | 
                //    oFrm.ShowDialog(); 
 | 
                //} 
 | 
                //else 
 | 
                //{ 
 | 
                //    MessageBox.Show("µ¥¾ÝδÕÒµ½", "Ìáʾ"); 
 | 
                //} 
 | 
                //oBill = null; 
 | 
            } 
 | 
            else if (HBillType == "1214") //ÁìÓÃÉêÇëµ¥ 
 | 
            { 
 | 
                //ClsKf_MateOutRequestBillMain oBill = new ClsKf_MateOutRequestBillMain(); 
 | 
                //if (oBill.ShowBill(HInterID, ref ClsPub.sExeReturnInfo)) 
 | 
                //{ 
 | 
                //    Kf_MateOutRequestBill oFrm = new Kf_MateOutRequestBill(); 
 | 
                //    oFrm.BillStatus = Enum_BillStatus.BillStatus_View; 
 | 
                //    oFrm.BillOld = oBill; 
 | 
                //    oFrm.ShowDialog(); 
 | 
                //} 
 | 
                //else 
 | 
                //{ 
 | 
                //    MessageBox.Show("µ¥¾ÝδÕÒµ½", "Ìáʾ"); 
 | 
                //} 
 | 
                //oBill = null; 
 | 
            } 
 | 
            this.Close(); 
 | 
        } 
 | 
    } 
 | 
} 
 |