// ///////////////////////////////////////////////////////////////////////////////////////////////////// // STEP6 - FINISH OPTIONS // // //////////////////////////////////////////////////////////////////////// // STEP6 - FINISH OPTIONS - METHODS // private void StepFinalStepIn() { // Set instruction mWizard2 master2 = (mWizard2)this.Master; master2.WizardInstruction = "What would you like to do?"; string url = ""; UnitsGateway unitsGateway = new UnitsGateway(null); int unitId = unitsGateway.GetLastUnitId(); UnitsGateway unitsGatewayForLoad = new UnitsGateway(); unitsGatewayForLoad.LoadByUnitId(unitId, int.Parse(hdfCompanyId.Value)); string unitType = unitsGatewayForLoad.GetType(unitId); string unitState = unitsGatewayForLoad.GetState(unitId); hdfUpdate.Value = "yes"; // Store active tab for postback Session["activeTabUnits"] = "0"; Session["dialogOpenedUnits"] = "0"; url = "./units_summary.aspx?source_page=units_add.aspx&unit_id=" + unitId.ToString() + "&unit_type=" + unitType + "&unit_state=" + unitState + "&active_tab=0" + GetNavigatorState(); lkbtnOpenUnit.Attributes.Add("onclick", string.Format("return lkbtnOpenServiceClick('{0}');", url)); url = "./units_edit.aspx?source_page=units_add.aspx&unit_id=" + unitId.ToString() + "&unit_type=" + unitType + "&unit_state=" + unitState + "&active_tab=0" + GetNavigatorState(); lkbtnEditUnit.Attributes.Add("onclick", string.Format("return lkbtnEditServiceClick('{0}');", url)); lkbtnClose.Attributes.Add("onclick", "return lkbtnCloseClick();"); }