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

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


          網站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 留坝县| 汤阴县| 佳木斯市| 饶阳县| 怀远县| 甘孜| 赫章县| 铜鼓县| 绿春县| 天祝| 满洲里市| 宁南县| 米林县| 元江| 平安县| 洱源县| 洛川县| 太白县| 米易县| 赤壁市| 长丰县| 阿克苏市| 金堂县| 惠州市| 逊克县| 青铜峡市| 茶陵县| 巢湖市| 静海县| 饶平县| 赤峰市| 金沙县| 神池县| 炎陵县| 托克逊县| 永年县| 卫辉市| 峡江县| 井研县| 辛集市| 大洼县|