Ejemplo n.º 1
0
 protected void btnAdd_Click(object sender, EventArgs e)
 {
     int schoolId = 0;
     if (int.TryParse(this.hdnSchoolId.Value, out schoolId) && string.IsNullOrEmpty(this.hdnDisIntegID.Value))
     {
         SupplySystem.Integration itg = new SupplySystem.Integration { SchoolID = schoolId, CycleID = Public.ActiveCycle.CycleID, IntegrationMode = (byte)Public.IntegrationMode.DisIntegration, SubmitDate = DateTime.Now };
         db.Integrations.InsertOnSubmit(itg);
         db.SubmitChanges();
         Response.Redirect(string.Format("~/School/School.aspx?dtg={0}", TamperProofString.QueryStringEncode(itg.IntegrationID.ToString())));
     }
     else if (!string.IsNullOrEmpty(this.hdnDisIntegID.Value))
     {
         Response.Redirect(string.Format("~/School/School.aspx?dtg={0}", TamperProofString.QueryStringEncode(this.hdnDisIntegID.Value)));
     }
 }
Ejemplo n.º 2
0
		private void detach_Integrations(Integration entity)
		{
			this.SendPropertyChanging();
			entity.School = null;
		}
Ejemplo n.º 3
0
 partial void DeleteIntegration(Integration instance);
Ejemplo n.º 4
0
 partial void UpdateIntegration(Integration instance);
Ejemplo n.º 5
0
 partial void InsertIntegration(Integration instance);
Ejemplo n.º 6
0
		private void attach_Integrations(Integration entity)
		{
			this.SendPropertyChanging();
			entity.Cycle = this;
		}