コード例 #1
0
    private void showLOCATIONMAPPINGData()
    {
        LOCATIONMAPPING lOCATIONMAPPING = new LOCATIONMAPPING();

        lOCATIONMAPPING = LOCATIONMAPPINGManager.GetLOCATIONMAPPINGByID(Int32.Parse(Request.QueryString["lOCATIONMAPPINGID"]));

        ddlLOCATION.SelectedValue      = lOCATIONMAPPING.LOCATIONID.ToString();
        ddlLOCATIONGROUP.SelectedValue = lOCATIONMAPPING.LOCATIONGROUPID.ToString();
    }
コード例 #2
0
    protected void btnUpdate_Click(object sender, EventArgs e)
    {
        LOCATIONMAPPING lOCATIONMAPPING = new LOCATIONMAPPING();

        lOCATIONMAPPING = LOCATIONMAPPINGManager.GetLOCATIONMAPPINGByID(Int32.Parse(Request.QueryString["lOCATIONMAPPINGID"]));
        LOCATIONMAPPING tempLOCATIONMAPPING = new LOCATIONMAPPING();

        tempLOCATIONMAPPING.LOCATIONMAPPINGID = lOCATIONMAPPING.LOCATIONMAPPINGID;

        tempLOCATIONMAPPING.ADDEDDATE       = DateTime.Now;
        tempLOCATIONMAPPING.LOCATIONID      = Int32.Parse(ddlLOCATION.SelectedValue);
        tempLOCATIONMAPPING.LOCATIONGROUPID = Int32.Parse(ddlLOCATIONGROUP.SelectedValue);
        bool result = LOCATIONMAPPINGManager.UpdateLOCATIONMAPPING(tempLOCATIONMAPPING);

        Response.Redirect("AdminLOCATIONMAPPINGDisplay.aspx");
    }