Example #1
0
        private void btnRun_Click(object sender, EventArgs e)
        {
            // postgresql 접속테스트
            //PostgreConCls.constrSet("127.0.0.1", "5432", "postgres", "postgres", "cys1203");
            //int conInt = PostgreConCls.connect();

            //if (conInt == 0)
            //{
            //    tbLog.Text = "접속완료";
            //}
            //else
            //{
            //    tbLog.Text = "접속실패" + conInt;
            //}

            //FileCls.getCertInfo();

            //tbLog.Text = "aaaaa";

            //ServiceRead("SysMain");

            //tbTarget.Text = StringCls.AmountComma(tbVal.Text);

            //DictionaryCls dic = new DictionaryCls();
            //dic.addOrUpdate("CHK", "1");

            //MessageBox.Show(dic["CHK"].ToString());

            getMember();
            //tbLog.Text = StringCls.fnDataTableToJson2(_commonDt);

            //string jsonStr = StringCls.fnDataTableToJsonString(_commonDt);

            //DataTable _oriDt = DtCls.ConvertJsonToDataTable(jsonStr);

            StringCls.fnDataTableToCsv(_commonDt);

            //tbLog.Text = "aaa";

            //XmlCls.fnJsonToXMLToFile(jsonStr, "CUBESTOCK", @"C:\CUBESTOCK\Config\", "JsonTest.xml");

            //_commonDt.DataSet.DataSetName = "QUU";
            //_commonDt.TableName = "CHANG";

            //string strxml = XmlCls.fnDtToXML("FINGER", _commonDt, false);
            //XmlCls.fnDtToXMLToFile(_commonDt, "FINGER", @"C:\CUBESTOCK\Config\", "dbCon.xml");
            //_commonDt.WriteXml(@"C:\CUBESTOCK\TEST.xml", true);

            //DataTable _tmp = XmlCls.fnXMLFileToDt(@"C:\CUBESTOCK\Config\dbCon.xml");

            //tbLog.Text = _tmp.TableName;

            //tbLog.Text = strxml;
        }
Example #2
0
 /// <summary>
 /// 글자 입력시마다 숫자가아닌 문자열이 입력되는지 확인합니다.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void tbNum_TextChanged(object sender, EventArgs e)
 {
     tbNum.Text           = StringCls.AmountComma(StringCls.onlyNumber(tbNum.Text.Replace(",", "")));
     tbNum.SelectionStart = tbNum.Text.Length;
     tbNum.ScrollToCaret();
 }