コード例 #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)));
     }
 }
コード例 #2
0
ファイル: SupplySystem.cs プロジェクト: BehnamAbdy/Setad
		private void detach_Integrations(Integration entity)
		{
			this.SendPropertyChanging();
			entity.School = null;
		}
コード例 #3
0
ファイル: SupplySystem.cs プロジェクト: BehnamAbdy/Setad
 partial void DeleteIntegration(Integration instance);
コード例 #4
0
ファイル: SupplySystem.cs プロジェクト: BehnamAbdy/Setad
 partial void UpdateIntegration(Integration instance);
コード例 #5
0
ファイル: SupplySystem.cs プロジェクト: BehnamAbdy/Setad
 partial void InsertIntegration(Integration instance);
コード例 #6
0
ファイル: SupplySystem.cs プロジェクト: BehnamAbdy/Setad
		private void attach_Integrations(Integration entity)
		{
			this.SendPropertyChanging();
			entity.Cycle = this;
		}