StringBuilder tempSB = new StringBuilder();
                      DataTable tempDT =  dba.GetTable("select newid() Gid,BusID,SecId,SecName,BusName,remark from tbl_BuTmp");
                      string Bid = "", BCode, SId, SName, PBName, Rmark;
                      for (int i = 0; i < tempDT.Rows.Count; i++)
                      {
                          Bid = Common.StringOperator.GetRightString(tempDT.Rows[i]["Gid"]);
                          BCode = Common.StringOperator.GetRightString(tempDT.Rows[i]["BusID"]);
                          SId = Common.StringOperator.GetRightString(tempDT.Rows[i]["SecId"]);
                          SName = Common.StringOperator.GetRightString(tempDT.Rows[i]["SecName"]);
                          PBName = Common.StringOperator.GetRightString(tempDT.Rows[i]["BusName"]);
                          Rmark = Common.StringOperator.GetRightString(tempDT.Rows[i]["remark"]);
                          foreach (string tempRemark in Rmark.Split(';'))
                          {
                              tempSB.AppendFormat("insert into tbl_ProB(ProBusinessID,BusinessFlowCode,SectionID,SectionName,ProBusinessName,Remark) values('{0}','{1}','{2}','{3}','{4}','{5}')" + System.Environment.NewLine, System.Guid.NewGuid(), BCode, SId, SName, tempRemark, tempRemark);
                          }
                         
                      }
                      this.richTextBox1.Text = tempSB.ToString();
                      this.dataGridView1.DataSource=tempDT;
          posted on 2011-04-08 16:25 sanmao 閱讀(340) 評論(0)  編輯  收藏

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


          網站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 华池县| 梨树县| 青海省| 巨野县| 丽江市| 壤塘县| 丰城市| 额敏县| 大英县| 宝山区| 东莞市| 泾阳县| 毕节市| 朔州市| 余姚市| 峡江县| 济源市| 鸡泽县| 右玉县| 万山特区| 汶川县| 南充市| 青冈县| 鸡泽县| 昆明市| 乌兰浩特市| 会宁县| 蒙山县| 河间市| 清新县| 财经| 临邑县| 离岛区| 如东县| 永兴县| 余庆县| 金阳县| 左云县| 徐州市| 霍林郭勒市| 永靖县|