Page 141 - ระบบสารสนเทศเพื่อการบริหารจัดการเอกสารอิเล็กทรอนิกส์ (e-Document)
P. 141
ห้องสมุดกรมพัฒนาที่ดิน
ค- 28
{
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, "na", "--วัน--",
false);
lblDolM.Text = ddl.createDDLM("ddlDolM", sM, "na", "--เดือน--
", false);
lblDolY.Text = ddl.createDDLY("ddlDolY", 2017, 2030, sY,
"na", "--ปี--", false);
}
else
{
lblDolD.Text = ddl.createDDLD("ddlDolD",
Request.Form["ddlDolD"], "na", "--วัน--", false);
lblDolM.Text = ddl.createDDLM("ddlDolM",
Request.Form["ddlDolM"], "na", "--เดือน--", false);
lblDolY.Text = ddl.createDDLY("ddlDolY", 2017, 2030,
Request.Form["ddlDolY"], "na", "--ปี--", false);
}
sSql = "SELECT BureauID AS ID, Bureau AS Value FROM Bureau";
lblBureau.Text = ddl.createDDL("ddlBureau", sSql, "ID",
"Value", "na", "na", "---หน่วยงาน---", true);
txtOtherOff.Visible = false;
string sSql1 = "SELECT PriID AS ID, PriName AS Value FROM
Piority";
lblPiority.Text = ddl.createDDL("ddlPiority", sSql1, "ID",
"Value", "na", "na", "--ชั้นความเร็ว--", false);
string sSql11 = "SELECT GroupID AS ID, GroupName AS Value FROM
Permission";
lblPermission.Text = ddl.createDDL("ddlPermission", sSql11,
"ID", "Value", "na", "na", "--กลุ่มผู้เรียกดูข้อมูล--", false);
}
else
{
Response.Write(sSql);
Response.Write(ut.alert("บันทึกข้อมูลไม่ส าเร็จ"));
}
}
}
----------------------------------------------------------------------------------------------