Page 160 - ระบบสารสนเทศเพื่อการบริหารจัดการเอกสารอิเล็กทรอนิกส์ (e-Document)
P. 160
ห้องสมุดกรมพัฒนาที่ดิน
ค- 47
lblCountA.Text = "ข้อมูลที่ค้นพบ ตามเงื่อนไข มีจ านวน " +
ds.RecordCount().ToString("#,##0") + " รายการ";
DbPromote.SelectCommand = sSql;
Session["SQL"] = sSql;
GridView1.DataBind();
}
protected void BtnSe_Click(object sender, EventArgs e)
{
reQuery();
}
protected void reQueryOnSortAndPaging()
{
string sSql = Session["SQL"].ToString();
DbPromote.SelectCommand = sSql;
GridView1.DataBind();
DbMgt table = new DbMgt(str);
MyDataSet ds = new MyDataSet(table.exReader(sSql));
}
protected void BtnCe_Click(object sender, EventArgs e)
{
string sSql = "";
txtProNumSe.Text = "";
txtProTitleSe.Text = "";
FormDDL ddl = new FormDDL(str);
string sToday = ut.CurrentYYYYMMDD();
string sD = sToday.Substring(6, 2);
string sM = sToday.Substring(4, 2);
string sY = sToday.Substring(0, 4);
lblDolD.Text = ddl.createDDLD("ddlDolD", sD, "", "", false);
lblDolM.Text = ddl.createDDLM("ddlDolM", sM, "", "", false);
lblDolY.Text = ddl.createDDLY("ddlDolY", 2018, 2030, sY, "", "",
false);
lblDolD2.Text = ddl.createDDLD("ddlDolD2", sD, "", "", false);
lblDolM2.Text = ddl.createDDLM("ddlDolM2", sM, "", "", false);
lblDolY2.Text = ddl.createDDLY("ddlDolY2", 2018, 2030, sY, "", "",
false);
}
protected void GridView1_PageIndexChanged(object sender, EventArgs e)
{
reQueryOnSortAndPaging();
}
protected void GridView1_Sorted(object sender, EventArgs e)
{
reQueryOnSortAndPaging();
}
protected void GridView1_RowDataBound(object sender,
GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
if (e.Row.Cells[1].Text == "ด่วน")
{