Page 132 - ระบบสารสนเทศเพื่อการบริหารจัดการเอกสารอิเล็กทรอนิกส์ (e-Document)
P. 132
ห้องสมุดกรมพัฒนาที่ดิน
ค- 19
if (e.Row.Cells[1].Text == "ด่วน") // change the color
{
e.Row.Cells[1].ForeColor = System.Drawing.Color.Red;
}
else if (e.Row.Cells[1].Text == "ด่วนมาก")
{
e.Row.Cells[1].ForeColor = System.Drawing.Color.Red;
}
else if (e.Row.Cells[1].Text == "ด่วนที่สุด")
{
e.Row.Cells[1].ForeColor = System.Drawing.Color.Red;
}
}
}
protected void SignDate_CheckedChanged(object sender, EventArgs e)
{
PanelA.Visible = true;
PanelB.Visible = false;
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", Request.Form["ddlDolD"],
"na", "--วัน--", false);
lblDolM.Text = ddl.createDDLM("ddlDolM", sM, "", "", false);
lblDolY.Text = ddl.createDDLY("ddlDolY", 2018, 2021, sY, "", "",
false);
lblDolD2.Text = ddl.createDDLD("ddlDolD2", sD, "", "", false
lblDolM2.Text = ddl.createDDLM("ddlDolM2", sM, "", "", false
lblDolY2.Text = ddl.createDDLY("ddlDolY2", 2018, 2021, sY, "", "",
false);
}
protected void InputDate_CheckedChanged(object sender, EventArgs e)
{
PanelA.Visible = false;
PanelB.Visible = true;
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);
lblDolD3.Text = ddl.createDDLD("ddlDolD3",
Request.Form["ddlDolD3"], "na", "--วัน--", false); //สร้าง DropDownList ให้เลือกวันที่
lblDolM3.Text = ddl.createDDLM("ddlDolM3", sM, "", "", false);
lblDolY3.Text = ddl.createDDLY("ddlDolY3", 2018, 2021, sY, "", "",
false);
lblDolD4.Text = ddl.createDDLD("ddlDolD4", sD, "", "", false);
lblDolM4.Text = ddl.createDDLM("ddlDolM4", sM, "", "", false);
lblDolY4.Text = ddl.createDDLY("ddlDolY4", 2018, 2021, sY, "", "",
false);
}
}
----------------------------------------------------------------------------------------------