Page 138 - ระบบสารสนเทศเพื่อการบริหารจัดการเอกสารอิเล็กทรอนิกส์ (e-Document)
P. 138
ห้องสมุดกรมพัฒนาที่ดิน
ค- 25
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);
}
string sSql = "SELECT BureauID AS ID, Bureau AS Value FROM Bureau";
lblBureau.Text = ddl.createDDL("ddlBureau", sSql, "ID", "Value",
Request.Form["ddlBureau"], "na", "---หน่วยงาน---", true);
string sSql1 = "SELECT PriID AS ID, PriName AS Value FROM Piority";
lblPiority.Text = ddl.createDDL("ddlPiority", sSql1, "ID", "Value",
Request.Form["ddlPiority"], "na", "--ชั้นความเร็ว--", false);
string sSql11 = "SELECT GroupID AS ID, GroupName AS Value,
GroupActive FROM Permission WHERE (GroupActive = N'yes') ";
lblPermission.Text = ddl.createDDL("ddlPermission", sSql11, "ID",
"Value", Request.Form["ddlPermission"], "na", "--กลุ่มผู้เรียกดูข้อมูล--", false);
txtOtherOff.Visible = false;
if (Request.Form["ddlBureau"] == "9999")
{
txtOtherOff.Visible = true;
}
string sSqll = "SELECT Bureau FROM BureauIntra WHERE BureauID = N'"
+ sBureau + "'";
DbMgt table = new DbMgt(str);
MyDataSet ds = new MyDataSet(table.exReader(sSqll));
lblsBureau.Text = "หน่วยงาน :" + ds.showFieldValue("Bureau", 0);
}
protected string upload(string sFilename)
{
{
try
{
string[] sValidExt = { ".pdf", ".zip", ".rar" };
string sFolderName = "Letter";
string sAlertInvalidFileType = "กรุณาเลือกไฟล์ชนิด";
string sAlertSuccess = "Upload ไฟล์เรียบร้อยแล้ว";
string sAlertFailure = "เกิดความผิดพลาด ไม่สามารถ Upload ไฟล์ได้";
Boolean bValidExt;
string sFileName;
string sFileExt;
sFileName = upBrowse.FileName;
sFileExt = Path.GetExtension(sFileName).ToLower();