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 閱讀(213) 評論(0)  編輯  收藏

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


          網站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 巴东县| 龙胜| 灵璧县| 明星| 许昌县| 扶绥县| 宜昌市| 阿拉善左旗| 象州县| 稷山县| 长葛市| 碌曲县| 涟水县| 宣汉县| 开鲁县| 广德县| 萨迦县| 临朐县| 贺兰县| 吉安市| 盐津县| 张北县| 白城市| 和龙市| 榆中县| 靖边县| 汽车| 噶尔县| 丹棱县| 嘉鱼县| 贞丰县| 淄博市| 仙桃市| 张家口市| 哈密市| 息烽县| 乾安县| 札达县| 西乌珠穆沁旗| 新河县| 通城县|