コード例 #1
0
 protected void makeMultipleWordList(DbDataReader reader, ref List<IchiranWordBo> wordList, ref IchiranWordBo word)
 {
     word = new IchiranWordBo();
     word.ronri_name1 = reader["ronri_name1"].ToString();
     word.butsuri_name = reader["butsuri_name"].ToString();
     word.data_type = reader["data_type"].ToString();
     wordList.Add(word);
 }
コード例 #2
0
 protected void makeIchiranDispList(ref IchiranInitServiceOutBo outBo, IchiranInitServiceInBo ichiranInitServiceInBo, List<IchiranWordBo> wordList, IchiranWordBo word)
 {
     if (wordList.Count == 0 || String.IsNullOrEmpty(ichiranInitServiceInBo.clipboardText))
     {
         word.ronri_name1 = "-";
         word.butsuri_name = Constant.NONE_WORD;
         wordList.Add(word);
     }
     outBo.wordList = this.toIchiranDispList(wordList, this.inBo.dispNumber);
 }
コード例 #3
0
 protected bool makeSingleWordList(DbDataReader reader, ref List<IchiranWordBo> wordList, ref IchiranWordBo word)
 {
     if (!isContains(reader["butsuri_name"].ToString(), wordList))
     {
         if (!reader["butsuri_name"].ToString().IsAlphanumeric())
         {
             word = new IchiranWordBo();
             word.ronri_name1 = reader["ronri_name1"].ToString();
             word.butsuri_name = reader["butsuri_name"].ToString();
             word.data_type = reader["data_type"].ToString();
             wordList.Add(word);
             return false;
         }
         bool isDoneRonriNameDisp = false;
         if (BaseForm.UserInfo.pascal)
         {
             word = new IchiranWordBo();
             word.ronri_name1 = reader["ronri_name1"].ToString();
             word.butsuri_name = reader["butsuri_name"].ToString().ToPascalCase();
             word.data_type = reader["data_type"].ToString();
             wordList.Add(word);
             isDoneRonriNameDisp = true;
         }
         if (BaseForm.UserInfo.camel)
         {
             word = new IchiranWordBo();
             word.ronri_name1 = isDoneRonriNameDisp ? "" : reader["ronri_name1"].ToString();
             word.butsuri_name = reader["butsuri_name"].ToString().ToCamelCase();
             word.data_type = reader["data_type"].ToString();
             wordList.Add(word);
             isDoneRonriNameDisp = true;
         }
         if (BaseForm.UserInfo.snake)
         {
             word = new IchiranWordBo();
             word.ronri_name1 = isDoneRonriNameDisp ? "" : reader["ronri_name1"].ToString();
             word.butsuri_name = reader["butsuri_name"].ToString().ToSnakeCase();
             word.data_type = reader["data_type"].ToString();
             wordList.Add(word);
         }
     }
     return true;
 }