コード例 #1
0
        protected void ASPxGridView1_RowUpdating(object sender, DevExpress.Web.Data.ASPxDataUpdatingEventArgs e)
        {
            ASPxComboBox plineC      = ASPxGridView1.FindEditFormTemplateControl("comboPCode") as ASPxComboBox;
            ASPxComboBox mCode       = ASPxGridView1.FindEditFormTemplateControl("txtMCode") as ASPxComboBox;
            ASPxComboBox gysCode     = ASPxGridView1.FindEditFormTemplateControl("txtGYSCodeA") as ASPxComboBox;
            ASPxComboBox lCode       = ASPxGridView1.FindEditFormTemplateControl("comboLocation") as ASPxComboBox;
            ASPxTextBox  linesideNum = ASPxGridView1.FindEditFormTemplateControl("txtMNum") as ASPxTextBox;

            LineSideMatFactory.MS_MODIFY_LINESIDE_MT("UPDATE", mCode.Value.ToString(), gysCode.Value.ToString(), lCode.Value.ToString(), Convert.ToInt32(linesideNum.Text.Trim()), plineC.Value.ToString(), theUserCode);
            e.Cancel = true;
            ASPxGridView1.CancelEdit();
            setCondition();
            ASPxGridView1.DataBind();
        }
コード例 #2
0
        protected void ASPxGridView1_RowDeleting(object sender, DevExpress.Web.Data.ASPxDataDeletingEventArgs e)
        {
            string plineC      = e.Values["GZDD"].ToString();
            string mCode       = e.Values["MATERIAL_CODE"].ToString();
            string gysCode     = e.Values["GYS_CODE"].ToString();
            string lCode       = e.Values["LOCATION_CODE"].ToString();
            string linesideNum = e.Values["LINESIDE_NUM"].ToString();

            LineSideMatFactory.MS_MODIFY_LINESIDE_MT("DELETE", mCode, gysCode, lCode, Convert.ToInt32(linesideNum), plineC, theUserCode);
            e.Cancel = true;
            ASPxGridView1.CancelEdit();
            setCondition();
            ASPxGridView1.DataBind();
        }