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

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



                      protected string show41(string sFormID)
                      {
                          string sTmp;

                          string sTx = "";
                          string sSql;
                          table = new DbMgt(str);
                          sSql = "Select * from formAlterICTDev41 where FormID = '" + sFormID + "' ORDER BY

                  Ord";
                          ds = new MyDataSet(table.exReader(sSql));

                          sTx += "<table border='1' cellspacing='0' cellpadding='1' width='100%'>";

                          sTx += "<tr>";
                          sTx += "<th rowspan=2>ล าดับ</th>";
                          sTx += "<th rowspan=2>ประเภท</th>";
                          sTx += "<th rowspan=2>รายการ</th>";

                          sTx += "<th rowspan=2>จ านวน (บาท)</th>";
                          sTx += "<th rowspan=2>ราคาต่อหน่วย (บาท)</th>";
                          sTx += "<th rowspan=2>ราคารวม</th>";
                          sTx += "<th colspan=2>เกณฑ์กลาง ICT</th>";

                          sTx += "<th rowspan=2>กรณีไม่ใช้เกณฑ์กลางให้ระบุเหตุผล</th>";
                          sTx += "</tr>";
                          sTx += "<tr>";

                          sTx += "<th>ใช้</th>";
                          sTx += "<th>ไม่ใช้</th>";
                          sTx += "</tr>";
                          decimal dAmt;
                          decimal dPPU;

                          decimal dTotal = 0M;
                         string sBGColor;
                          for (int i = 0; i < ds.RecordCount(); i++)

                          {
                              sTmp = ds.showFieldValue("DtlID", i);
                              if (checkVersion(ds.showFieldValue("ItemStandardID", i),
                  ds.showFieldValue("FiscalYear", i), ds.showFieldValue("Version", i)) == "t")

                                  sBGColor = "";
                              else
                                  sBGColor = " bgcolor='LightCoral'";
   286   287   288   289   290   291   292   293   294   295   296