This commit is contained in:
chi
2024-01-01 22:46:17 +09:00
parent 6e091f6218
commit 6a60c44489
20 changed files with 5815 additions and 547 deletions

View File

@@ -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());
}
}
}