...
This commit is contained in:
@@ -7,13 +7,18 @@ using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
//using StackExchange.Redis;
|
||||
using System.ServiceModel;
|
||||
using System.Web.Services.Description;
|
||||
using FCOMMON;
|
||||
|
||||
namespace Project
|
||||
{
|
||||
public partial class fMain : Form
|
||||
{
|
||||
string SearchKey = string.Empty;
|
||||
ServiceHost host;
|
||||
|
||||
|
||||
|
||||
public fMain()
|
||||
{
|
||||
@@ -158,15 +163,20 @@ namespace Project
|
||||
}
|
||||
|
||||
|
||||
////서버ON
|
||||
//try
|
||||
//{
|
||||
// this.server.Start(7979);//기본 79포트로 설정한다
|
||||
//}
|
||||
//catch (Exception ex)
|
||||
//{
|
||||
// Console.WriteLine(ex.Message);
|
||||
//}
|
||||
// Address
|
||||
string address = "net.tcp://localhost:57900/eetgw";
|
||||
|
||||
// Binding : TCP 사용
|
||||
NetTcpBinding binding = new NetTcpBinding();
|
||||
|
||||
// Service Host 만들기
|
||||
host = new ServiceHost(typeof(MyService));
|
||||
|
||||
// End Point 추가
|
||||
host.AddServiceEndpoint(typeof(IMyContract), binding, address);
|
||||
|
||||
// Service Host 시작
|
||||
host.Open();
|
||||
|
||||
}
|
||||
void Update_Site()
|
||||
@@ -1493,5 +1503,17 @@ namespace Project
|
||||
{
|
||||
menu_crpurchase();
|
||||
}
|
||||
|
||||
private void 담당자별업무현황ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
menu_projecT_list2();
|
||||
}
|
||||
void menu_projecT_list2()
|
||||
{
|
||||
string formkey = "PROJECTSUSER";
|
||||
if (!ShowForm(formkey))
|
||||
AddForm(formkey, new FPJ0000.fProjectListUser());
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user