예제 #1
0
 // ==============================
 // === Insert ===================
 protected void mfDataCollector_ItemInserting(object sender, DetailsViewInsertEventArgs e)
 {
     Bll.DataRule.Extend UpdateRule = CreateRule(e.Values);
     Bll.DataRule.InsertOrUpdate(UpdateRule);
     e.Cancel = true;
     RedirectToGrid();
 }
예제 #2
0
 // === Select ===================
 protected void ldsDataCollector_Selecting(object sender, LinqDataSourceSelectEventArgs e)
 {
     Bll.DataRule.Extend rule = Bll.DataRule.Get(DataRuleID);
     RuleOrgLocations          = rule.DataRuleOrgLocation;
     RulePerformanceIndicators = rule.DataRulePI;
     RuleMetrics = rule.DataRuleMetric;
     RuleGroupId = rule.GroupId;
     RuleUserId  = rule.UserId;
     e.Result    = rule;
 }