Exemplo n.º 1
0
        protected void gridScorecard_BatchUpdate(object sender, DevExpress.Web.Data.ASPxDataBatchUpdateEventArgs e)
        {
            ScoreStandardsList NewScores = new ScoreStandardsList();

            foreach (ASPxDataUpdateValues x in e.UpdateValues)
            {
                NewScores.Add(new ScoreStandards
                {
                    ScoreId = (String)x.Keys["ScoreId"],
                    //ProjectID = (String)Session["ProjectID"],
                    //StandardID = (String)x.NewValues["StandardID"],
                    //CardID = (String)x.NewValues["CardID"],
                    //ItemID = (String)x.NewValues["ItemID"],
                    ScoreCol1 = x.NewValues["ScoreCol1"] != null ? (int)x.NewValues["ScoreCol1"] : 0,
                    ScoreCol2 = x.NewValues["ScoreCol2"] != null ? (int)x.NewValues["ScoreCol2"] : 0,
                    ScoreCol3 = x.NewValues["ScoreCol3"] != null ? (int)x.NewValues["ScoreCol3"] : 0,
                    ScoreCol4 = x.NewValues["ScoreCol4"] != null ? (int)x.NewValues["ScoreCol4"] : 0,
                    ScoreCol5 = x.NewValues["ScoreCol5"] != null ? (int)x.NewValues["ScoreCol5"] : 0,
                    Measure1  = (String)x.NewValues["Measure1"],
                    Measure2  = (String)x.NewValues["Measure2"],
                    Measure3  = (String)x.NewValues["Measure3"],
                    Measure4  = (String)x.NewValues["Measure4"],
                    Measure5  = (String)x.NewValues["Measure5"]
                });
            }

            rc_services.SaveScores(NewScores);
            e.Handled = true;
        }
Exemplo n.º 2
0
        protected void Grid_BatchUpdate(object sender, DevExpress.Web.Data.ASPxDataBatchUpdateEventArgs e)
        {
            if (e.UpdateValues.Count > 0)
            {
                ProcessUpdateValues(e.UpdateValues);
            }

            e.Handled = true;
        }
    protected void Grid_BatchUpdate(object sender, DevExpress.Web.Data.ASPxDataBatchUpdateEventArgs e)
    {
        foreach (ASPxDataUpdateValues ASPxDataUpdateValues in e.UpdateValues)
        {
            Data.FirstOrDefault(item => item.ID == (int)ASPxDataUpdateValues.Keys["ID"]).C2 = (bool)ASPxDataUpdateValues.NewValues["C2"];
        }

        e.Handled = true;
        Grid.CancelEdit();
    }
Exemplo n.º 4
0
    protected void gridVallabels_BatchUpdate(object sender, DevExpress.Web.Data.ASPxDataBatchUpdateEventArgs e)
    {
        if (e.InsertValues.Count > 0)
        {
            foreach (var args in e.InsertValues)
            {
                var x = hidField["fieldvaluesetID"];
                args.NewValues.Add("fieldvaluesetID", x);
            }
        }
        string results = DxDbOps.ProcessBatch(e, "datFieldValueSetItem", "data", "dbo");

        e.Handled = true;
    }
Exemplo n.º 5
0
        protected void grid_BatchUpdate(object sender, DevExpress.Web.Data.ASPxDataBatchUpdateEventArgs e)
        {
            foreach (var args in e.InsertValues)
            {
                InsertNewWCItem(args.NewValues);
            }

            foreach (var args in e.UpdateValues)
            {
                UpdateWCItem(args.Keys, args.NewValues);
            }

            foreach (var args in e.DeleteValues)
            {
                DeleteWCItem(args.Keys, args.Values);
            }

            e.Handled = true;
        }