This commit is contained in:
2024-10-21 15:49:55 +08:00
parent 569948f958
commit bafdaa6c9f
19 changed files with 1009 additions and 191 deletions
@@ -51,7 +51,7 @@ namespace FineUIPro.Web.WeldMat.BaseInfo
/// </summary>
private void BindGrid()
{
string strSql = @"SELECT s.UnitStoreId,s.UnitId,s.UnitStoreCode,s.UnitStoreName,s.StorePosition ,u.UnitName
string strSql = @"SELECT s.UnitStoreId,s.UnitId,s.UnitStoreCode,s.UnitStoreName,s.StorePosition ,u.UnitName ,s.IsUse
FROM dbo.Weld_UnitStore s
LEFT JOIN dbo.Base_Unit u ON u.UnitId = s.UnitId
WHERE 1=1";
@@ -235,6 +235,15 @@ namespace FineUIPro.Web.WeldMat.BaseInfo
this.txtUnitStoreCode.Text = unitStore.UnitStoreCode;
this.txtUnitStoreName.Text = unitStore.UnitStoreName;
txtStorePosition.Text = unitStore.StorePosition;
if (unitStore.IsUse == true)
{
cbIsUse.Checked = true;
}
else
{
cbIsUse.Checked = false;
}
hfFormID.Text = Id;
this.btnDelete.Enabled = true;
@@ -269,6 +278,14 @@ namespace FineUIPro.Web.WeldMat.BaseInfo
store.UnitStoreCode = this.txtUnitStoreCode.Text.Trim();
store.UnitStoreName = this.txtUnitStoreName.Text.Trim();
store.StorePosition = txtStorePosition.Text.Trim();
if (cbIsUse.Checked == true)
{
store.IsUse = true;
}
else
{
store.IsUse = false;
}
if (string.IsNullOrEmpty(strRowID))
{
var stores = BLL.UnitStoreService.GetUnitStoreByUnitId(drpUnitId.SelectedValue);