public string GetReturnString(DataTable tempDT, int tempColumn)
                  {
                      string tempStr = "";
                      if (!object.Equals(tempDT, null))
                      {
                          if (tempDT.Rows.Count > 0)
                          {
                              for (int i = 0; i < tempDT.Rows.Count; i++)
                     {
                                  if (tempColumn > tempDT.Columns.Count)
                                      tempColumn = tempDT.Columns.Count;
                                  for (int c = 0; c <tempColumn ;c++ )
                                  {
                                      tempStr += Common.StringOperator.GetRightString(tempDT.Rows[i][c]) + ",";
                                  }
                                  tempStr = tempStr.TrimEnd(',');
                                  tempStr += "~$~";
                     }
                             
                          }
                          else
                          {
                              tempStr = "null";
                          }
                      }
                      else
                      {
                          tempStr = "null";
                      }
                      return tempStr;
                  }
          posted on 2011-01-25 09:38 sanmao 閱讀(212) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 曲阜市| 双城市| 龙门县| 临沧市| 吴旗县| 青冈县| 睢宁县| 申扎县| 庄河市| 宣恩县| 仪征市| 东方市| 安国市| 浙江省| 乳山市| 易门县| 白银市| 华池县| 汉沽区| 平谷区| 汽车| 鄂伦春自治旗| 田阳县| 岑溪市| 仁化县| 桦南县| 盘山县| 泸定县| 华容县| 克东县| 岗巴县| 福建省| 凤庆县| 隆化县| 柘荣县| 龙山县| 长寿区| 汉阴县| 玉田县| 烟台市| 全州县|