WinPSI/BM/FrmGoodsInfo.cs

(开头部分) 18KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using PSI.BLL;
using PSI.Common;
using PSI.Models.DModels;
using System;
using System.Collections.Generic;
using System.IO;
using System.Windows.Forms;
using WinPSI.FModels;

namespace WinPSI.BM
{
        public partial class FrmGoodsInfo : Form
        {
                public FrmGoodsInfo()
                {
                        InitializeComponent();
                }
                GoodsUnitBLL guBLL = new GoodsUnitBLL();
                GoodsBLL goodsBLL = new GoodsBLL();
                GoodsTypeBLL gtBLL = new GoodsTypeBLL();
                //刷新列表页数据事件
                public event Action ReLoadHandler;
                private  FInfoModel fModel = null;
                private string oldName = "";//当前编辑前的商品名称
                public GoodsTypeInfoModel gTypeInfo = null;
                private string oldPic = "";//修改前的图片路径
                private void FrmGoodsInfo_Load(object sender, EventArgs e)
                {
                        Action act = () =>
                        {
                                if (this.Tag != null)
                                {
                                        fModel = this.Tag as FInfoModel;
                                }
                                if(fModel==null)
                                {
                                        MsgBoxHelper.MsgErrorShow("商品信息初始化失败!");
                                        return;
                                }
                                InitDrpGUnits();//加载单位下拉框(计量单位)
                                InitDrpGoodsProperties();//加载商品性质下拉框
                                string lblTitleType = "";
                                switch (fModel.ActType)
                                {
                                        case 1:
                                                ClearInfo();
                                                lblTitleType = "新增";
                                                break;
                                        case 2:
                                                InitGoodsInfo(fModel.FId);
                                                tsbtnClear.Enabled = false;
                                                lblTitleType = "修改";
                                                break;
                                        case 4:
                                                InitGoodsInfo(fModel.FId);
                                                tsbtnClear.Enabled = false;
                                                tsbtnSave.Enabled = false;
                                                lblTitleType = "详情";
                                                break;
                                        default:break;
后面还有 301 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。