/*ShowDialog호출시 SubForm에서 데이타 받기(set,get)*/
/*ShowDialog호출시 SubForm에서 데이타 받기(set,get)*/
/*ShowDialog호출시 SubForm에서 데이타 받기(set,get)*/

/*FILENAME:UAPCFGM0151.cs*/

public class UAPCFGM0151
{
public string __query_1 = string.Empty;
public string __query_2 = string.Empty;
public string __query_3 = string.Empty;

public string Query_1
{
get { return __query_1; }
set { __query_1 = value; }
}
public string Query_2
{
get { return __query_2; }
set { __query_2 = value; }
}
public string Query_3
{
get { return __query_3; }
set { __query_3 = value; }
}

            public void running()
{
Query_1 = string.Foramt(@"INSERT INTO IMT_MST_LOGFILE({0},'{1}','{2}','{3}')",
itemIDInsertOnlyTxt.Text, filePath.Text, filePath.Text, filePath.Text);

Query_2 = string.Foramt(@"INSERT INTO IMT_MST_LOGFILE({0},'{1}','{2}','{3}')",
itemIDInsertOnlyTxt.Text, filePath.Text, filePath.Text, filePath.Text);

Query_3 = string.Foramt(@"INSERT INTO IMT_MST_LOGFILE({0},'{1}','{2}','{3}')",
itemIDInsertOnlyTxt.Text, filePath.Text, filePath.Text, filePath.Text);
}
}

/*FILENAME:UAPCFGM0150.cs*/

public class UAPCFGM0150
{
public static void Main()
{
UAPCFGM0151 subForm = new UAPCFGM0151();

if(subForm.ShowDialog() == DialogResult.OK)
{
MessageBox.Show(subForm.Query_1.ToString());
MessageBox.Show(subForm.Query_2.ToString());
MessageBox.Show(subForm.Query_3.ToString());
}
}
}



+ Recent posts