private void btnTest_Click(object sender, EventArgs e) { DBConnString.sCatalog = "ระบบบริษัท KTC Netting"; DBConnString.sCode = "KTC Test"; DBConnString.strConn = "Data Source=192.168.0.3;Initial Catalog=KTC_TEST; Persist Security Info=True;User ID=KTCNET;Password=khu@9wbe"; clsCash.sUserLoginStatus = 0; DBConnString.sServer = "192.168.0.3"; DBConnString.sDb = "KTC_TEST"; DBConnString.Reqdb = "KTC_TEST"; DBConnString.clsDB = new clsDatabase(DBConnString.strConn, DBConnString.sServer); frmMain frmMain = new frmMain(); frmMain.Show(); }
private void DB_7csk_Click(object sender, EventArgs e) { DBConnString.sCatalog = "ระบบ 7Sea สงขลา"; DBConnString.sCode = "7CSK"; DBConnString.strConn = "Data Source=192.168.0.3;Initial Catalog=7CSK; Persist Security Info=True;User ID=KTCNET;Password=khu@9wbe"; clsCash.sUserLoginStatus = 0; DBConnString.sServer = "192.168.0.3"; DBConnString.sDb = "7CSK"; DBConnString.Reqdb = "7CSK"; DBConnString.clsDB = new clsDatabase(DBConnString.strConn, DBConnString.sServer); frmMain frmMain = new frmMain(); frmMain.Show(); }