using System;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.Data;
|
using System.Drawing;
|
using System.Text;
|
using System.Windows.Forms;
|
|
namespace OAM
|
{
|
public partial class OA_MinMsgBox : Form
|
{
|
public OA_MinMsgBox()
|
{
|
InitializeComponent();
|
}
|
|
public Int64 MsgID;
|
public int MsgType;
|
public string fromoperator; //×Ô¼º
|
public string tooperator;
|
|
|
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 (MsgType == 0) // ¸öÈËÏûÏ¢
|
{
|
frmSMsg ofrmSMsg = new frmSMsg();
|
ofrmSMsg.fromoperator = DBUtility.ClsPub.CurUserName;
|
ofrmSMsg.tooperator = tooperator;
|
ofrmSMsg.Show();
|
}
|
else if (MsgType == 1) //¹«¸æ
|
{
|
frmGGView1 ofrmGGView1 = new frmGGView1();
|
ofrmGGView1.ID = MsgID;
|
ofrmGGView1.Show();
|
ofrmGGView1.Display();
|
}
|
else if (MsgType == 2) //Îļþ
|
{
|
frmGGView2 ofrmGGView2 = new frmGGView2();
|
ofrmGGView2.ID = MsgID;
|
ofrmGGView2.Show();
|
ofrmGGView2.Display();
|
}
|
else if (MsgType == 3) //ÁªÏµµ¥
|
{
|
frmWorkBillView ofrmWorkBillView = new frmWorkBillView();
|
ofrmWorkBillView.ID = MsgID;
|
ofrmWorkBillView.Show();
|
ofrmWorkBillView.Display();
|
}
|
else if (MsgType == 4) //·´À¡
|
{
|
frmFKView ofrmFKView = new frmFKView();
|
ofrmFKView.ID = MsgID;
|
ofrmFKView.Show();
|
ofrmFKView.Display();
|
}
|
else if (MsgType == 5) //ÎÄ¿ØÖÐÐÄ
|
{
|
|
}
|
else if (MsgType == 6) //
|
{
|
frmGGView3 ofrmGGView3 = new frmGGView3();
|
ofrmGGView3.ID = MsgID;
|
ofrmGGView3.Show();
|
ofrmGGView3.Display();
|
}
|
else
|
{
|
|
}
|
this.Close();
|
}
|
|
private void lblMessage_DoubleClick(object sender, EventArgs e)
|
{
|
ShowBill();
|
}
|
}
|
}
|