店铺活动报名--店铺活动列表查询初步

This commit is contained in:
wule committed 2025-08-04 18:53:24 +08:00
1 parent 7ea35b6866
commit cc1bc3123f
69 files changed
+1729 -134

No files matched your search

@@ -0,0 +1,51 @@
using NaiBa.Util.Extension;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using TemuKJD.KJDForms.BaseForms;
namespace TemuKJD.KJDForms.SalesCenterForms
{
public partial class GroupBuyMonitorForm : BaseForm
{
public GroupBuyMonitorForm()
{
InitializeComponent();
}
private void btnSetActivity_Click(object sender, EventArgs e)
{
}
private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
if (e.ColumnIndex < 0 || e.RowIndex < 0)
return;
var colName = dgvShop.Columns[e.ColumnIndex].Name;
if (colName == "colSelect")
{
// 只允许单选
if (dgvShop.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ParseToBool() == true)
{
dgvShop.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = false;
}
else
{
foreach (DataGridViewRow row in dgvShop.Rows)
{
row.Cells[e.ColumnIndex].Value = false;
}
dgvShop.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = true;
}
}
}
}
}