コード例 #1
0
    public void SuerDelete()
    {
        RowSelectionModel sm = this.GridPanel2.SelectionModel.Primary as RowSelectionModel;

        if (sm.SelectedRows.Count > 0)
        {
            List <int> ids = new List <int>();
            foreach (var item in sm.SelectedRows)
            {
                ids.Add(Convert.ToInt32(item.RecordID));
            }
            HBBLL hb = new HBBLL();
            hb.DeleteYPPTDetail(ids);
            hb.UpdateYPPTDetailOrder(int.Parse(TID.Value.ToString()));
            Ext.Msg.Alert("提示", "删除成功!").Show();
            Ext.DoScript("#{YPPTDetailStore}.reload();");
        }
    }