Page 127 - ระบบสารสนเทศเพื่อการบริหารจัดการเอกสารอิเล็กทรอนิกส์ (e-Document)
P. 127
ห้องสมุดกรมพัฒนาที่ดิน
ค- 14
อ้างอิงไฟล์ GroupLetter.aspx.cs ดังนี้
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class GroupLetter : System.Web.UI.Page
{
string sUsername;
string sBureau;
string strIntra =
ConfigurationManager.ConnectionStrings["SqlConIntranet"].ConnectionString;
string str =
ConfigurationManager.ConnectionStrings["SqlCon"].ConnectionString;
Utilities ut = new Utilities();
protected void Page_Load(object sender, EventArgs e)
{
#region Check Session
if (Session["Username"] == null || Session["Bureau"] == null)
{
Response.Redirect("LoginLetter.aspx");
}//Session
sUsername = Session["Username"].ToString();
sBureau = Session["Bureau"].ToString();
#endregion
FormDDL ddl = new FormDDL(str);
lbl01.Visible = false;
if (!IsPostBack)
{
lbl01.Visible = true;
}
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", 2018, 2021,
Request.Form["ddlDolY"], "na", "--ปี--", false);
lblDolD2.Text = ddl.createDDLD("ddlDolD2",
Request.Form["ddlDolD2"], "na", "--วัน--", false);
lblDolM2.Text = ddl.createDDLM("ddlDolM2",
Request.Form["ddlDolM2"], "na", "--เดือน--", false);