|
@@ -12,11 +12,15 @@ namespace MOKA_Factory_Tools.DAL
|
|
|
{
|
|
|
public class DAL_AMResult : BaseDAL
|
|
|
{
|
|
|
- public DAL_AMResult(bool bMexican=false)
|
|
|
+ public DAL_AMResult(int NTFposion)
|
|
|
{
|
|
|
+ //Provider=SqlOLEDB;Data Source=10.146.0.52;initial catalog=AMAZON;user ID=amazon;password=Volvo120;connect timeout=30;
|
|
|
this.TableFieldNameString = "";
|
|
|
- if (bMexican)
|
|
|
+ if (NTFposion == 1)
|
|
|
this.cps.SetConnectParameters(databaseServer:"10.138.96.109", databaseName: "IDOtherData", databaseAccount: "usr_rd", databasePassword: "Pa55W0rd4TMSA@202207#");
|
|
|
+ else if(NTFposion == 2)
|
|
|
+ this.cps.SetConnectParameters(databaseServer: "10.146.0.52", databaseName: "AMAZON", databaseAccount: "amazon", databasePassword: "Volvo120");
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -261,11 +265,13 @@ namespace MOKA_Factory_Tools.DAL
|
|
|
|
|
|
public class DAL_AMResult_TR : BaseDAL
|
|
|
{
|
|
|
- public DAL_AMResult_TR(bool bMexican = false)
|
|
|
+ public DAL_AMResult_TR(int NTFposion)
|
|
|
{
|
|
|
- this.TableFieldNameString = "";
|
|
|
- if (bMexican)
|
|
|
+ this.TableFieldNameString = "";
|
|
|
+ if (NTFposion == 1)
|
|
|
this.cps.SetConnectParameters(databaseServer: "10.138.96.109", databaseName: "IDOtherData", databaseAccount: "usr_rd", databasePassword: "Pa55W0rd4TMSA@202207#");
|
|
|
+ else if (NTFposion == 2)
|
|
|
+ this.cps.SetConnectParameters(databaseServer: "10.146.0.52", databaseName: "AMAZON", databaseAccount: "amazon", databasePassword: "Volvo120");
|
|
|
}
|
|
|
|
|
|
|