Page 275 - ระบบบริหารจัดการงบประมาณด้านเทคโนโลยีสารสนเทศและการสื่อสาร กรมพัฒนาที่ดิน
P. 275

ห้องสมุดกรมพัฒนาที่ดิน
                                                                                                         ง-20



                          MyDataSet ds = new MyDataSet(table.exReader(sSql));
                          sTx += "<table border='1' cellspacing='0' cellpadding='1'>";
                          sTx += "<tr>";

                          sTx += "<th>ล าดับ</th>";
                          sTx += "<th>รายละเอียดค่าใช้จ่าย</th>";
                          sTx += "<th>การค านวณค่าใช้จ่าย</th>";
                          sTx += "<th>จ านวนเงิน (บาท)</th>";

                          sTx += "</tr>";
                          decimal dTTL = 0M;
                          for (int i = 0; i < ds.RecordCount(); i++)
                          {  sTx += "<tr valign=top>";

                              sTx += "<td>" + (i + 1).ToString() + "</td>";
                              sTx += "<td>" + ds.showFieldValue("ExpenseDtl", i) + "</td>";
                              sTx += "<td>" + ds.showFieldValue("ExpenseCalc", i) + "</td>";
                              sTx += "<td align=right>" + Convert.ToDecimal(ds.showFieldValue("Expense",

                  i)).ToString("#,##0.00") + "</td>";
                              sTx += "</tr>";
                              dTTL += Convert.ToDecimal(ds.showFieldValue("Expense", i));
                          }

                          sTx += "<tr>";
                          sTx += "<th colspan=3 align=center>รวม</th>";
                          sTx += "<th align=right>" + dTTL.ToString("#,##0.00") + "</th>"; dGrandTotal += dTTL;

                          sTx += "</tr>";
                          sTx += "</table>";
                          return sTx;
                          return ds.SimpleTable();
                      }

                      protected string show8(string sFormID)
                      {   string sTmp;
                          int iTmp;

                          string sTx = "";
                          string sSql;
                          DbMgt table = new DbMgt(str);
                          sSql = "Select * from formSetICTDev8 where FormID = '" + sFormID + "' order by Ord";

                          MyDataSet ds = new MyDataSet(table.exReader(sSql));
                          sTx += "<table border='1' cellspacing='0' cellpadding='1'>";
                          sTx += "<tr>";
   270   271   272   273   274   275   276   277   278   279   280