Page 278 - ระบบบริหารจัดการงบประมาณด้านเทคโนโลยีสารสนเทศและการสื่อสาร กรมพัฒนาที่ดิน
P. 278
ห้องสมุดกรมพัฒนาที่ดิน
ง-23
อ้างอิงไฟล์ ค้นหาเพื่อแก้ไขโครงการพัฒนาระบบสารสนเทศ formSetICTDevSearch4Edit.aspx
public partial class formSetICTDevSearch4Edit : System.Web.UI.Page
{ string str = ConfigurationManager.ConnectionStrings["SqlCon"].ConnectionString;
Utilities ut = new Utilities();
string sUsername;
string sType;
string sBureau;
protected void Page_Load(object sender, EventArgs e)
{ if (Session["Username"] == null || Session["Type"] == null || Session["Bureau"] == null)
Response.Redirect("login.aspx");
sUsername = Session["Username"].ToString();
sType = Session["Type"].ToString();
sBureau = Session["Bureau"].ToString();
lblUsername.Text = sUsername;
if (sType == "Admin" || sType == "Exe")
{ lblRecUserCaption.Visible = false;
lblUsername.Visible = false;
lblBureauCaption.Visible = true;
ddlBureau.Visible = true;
if (cbAllBureau.Checked == true)//-
ddlBureau.Visible = false;//-
else//-
ddlBureau.Visible = true;//- }
else
{ lblRecUserCaption.Visible = true;
lblUsername.Visible = true;
lblBureauCaption.Visible = false;
ddlBureau.Visible = false;
cbAllBureau.Checked = false;//--
cbAllBureau.Visible = false;//--
}
}
protected void refreshTable()
{ string sSql;
sSql = "SELECT formSetICTDev.FormID, formSetICTDev.FiscalYear, Bureau.BureauID,
Bureau.Bureau, formSetICTDev.ProjectName, formSetICTDev.ProjectType,