Skip to content

Commit

Permalink
WCF Connection
Browse files Browse the repository at this point in the history
  • Loading branch information
yscom-git committed Oct 9, 2023
1 parent 4e9dfe9 commit a05db57
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions YMES.DEPLOY/Config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<YMES_CONFIG>
<CORCD>5200</CORCD><!--Corporation Code-->
<BIZCD>5210</BIZCD><!--Business Code-->
<DB_CONNECTION>ORACLE</DB_CONNECTION><!--DB Type : ORACLE, MSSQL, WCF, ACCESS-->
<DBNAME>172.22.151.203;172.22.151.204</DBNAME><!--DB Server IP-->
<DBUID>mes</DBUID><!--DB User ID-->
<DBPWD>mes</DBPWD><!--DB User Password-->
<DBSERVICE>SYAP</DBSERVICE><!--DB Service(Oracle)-->
<DB_CONNECTION>WCF</DB_CONNECTION><!--DB Type : ORACLE, MSSQL, WCF, ACCESS-->
<DBNAME>http://wcf.yscom.co.kr:1818/wcf</DBNAME><!--DB Server IP-->
<DBUID></DBUID><!--DB User ID-->
<DBPWD></DBPWD><!--DB User Password-->
<DBSERVICE></DBSERVICE><!--DB Service(Oracle)-->


<DEBUG_CLIENT>@MES.TagPrt_PartCheck</DEBUG_CLIENT><!--Client IP or @namespace.BC-->
Expand Down
2 changes: 1 addition & 1 deletion YMES.FX.DB/WCFHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public bool Open(string path = "")
{
if (ds.Tables[0].Rows.Count > 0)
{
string uri = ds.Tables[0].Columns.Contains("WCF_URL") ? ds.Tables[0].Rows[0]["WCF_URL"].ToString() : "";
string uri = ds.Tables[0].Columns.Contains("DBNAME") ? ds.Tables[0].Rows[0]["DBNAME"].ToString() : "";
string user = ds.Tables[0].Columns.Contains("DBUID") ? ds.Tables[0].Rows[0]["DBUID"].ToString() : "";

return OpenClient(uri, user);
Expand Down
1 change: 1 addition & 0 deletions YMES.FX.Forms/BaseMainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ private void ContainsBC(BaseContainer bc)
if (bc != null)
{
bc.Dock = DockStyle.Fill;
this.Pan_Body.Controls.Clear();
if (this.Pan_Body.Controls.Contains(bc) == false)
{
this.Pan_Body.Controls.Add(bc);
Expand Down

0 comments on commit a05db57

Please sign in to comment.