public DetailUnit parseCard(string _orgData, string mode) { // _orgData = "100=003337926642,1=123,3=1980년04월05일,6=1,2=홍길동,14=1111,17=1,21=2015-06-01,22=2030-06-01,10=010-9089-2143"; _orgData = _orgData.Replace("\n", ""); Log.WriteLogTmp("[Parser.cs] parseCard JJJJJJJJ (" + _orgData + ")"); int end = -1;; string curData = ""; string totalData = ""; DetailUnit du = new DetailUnit(); du.initData(); while (true) { end = -1; end = _orgData.IndexOf(","); if (end < 0) { curData = _orgData; setUnit(curData, du); totalData = totalData + " | " + curData; break; } else { curData = _orgData.Substring(0, end); setUnit(curData, du); _orgData = _orgData.Substring(end + 1); } totalData = totalData + " | " + curData; } string empQuery = ""; if (mode.Equals("MASS_CHANGE")) { empQuery = makeEmpMultiUpdateQuery(du); } else { empQuery = makeEmpUpdateQuery(du); } Log.WriteLogTmp("[Parser.cs] parseCard () EMP query : " + empQuery); // if (empQuery != null) MessageBox.Show("[Parser.cs] parseCard () EMP query : \n" + empQuery); Gloval.empQuery = empQuery; string badgeQuery = ""; if (mode.Equals("MASS_CHANGE")) { badgeQuery = makeBadgeMultiUpdateQuery(du); } else { badgeQuery = makeBadgeUpdateQuery(du); } Log.WriteLogTmp("[[Parser.cs] parseCard () BADGE query : " + badgeQuery); // if (badgeQuery != null) MessageBox.Show("[[Parser.cs] parseCard () BADGE query : \n" + badgeQuery); Gloval.badgeQuery = badgeQuery; string sazinQuery = ""; sazinQuery = makeSazinQuery(du); Log.WriteLogTmp("[[Parser.cs] parseCard () SAZIN query : " + sazinQuery); // if (badgeQuery != null) MessageBox.Show("[[Parser.cs] parseCard () SAZIN query : \n" + sazinQuery); Gloval.sazinQuery = sazinQuery; // MessageBox.Show ("(" + totalData + ")"); return(null); }