LindonSoft.Amico.UILayer/Production/frmBuyAccessSelect.cs

(开头部分) 3KB

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

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using LindonSoft.Amico.BULayer;
using LindonSoft.Amico.BULayer.Schema;

namespace LindonSoft.Amico.UILayer
{
    public partial class frmBuyAccessSelect : Form
    {
        public frmBuyAccessSelect()
        {
            InitializeComponent();
        }

        public string MERCHANDISEID = string.Empty;
        public string Source = string.Empty;
        public string Name = string.Empty;
        public string Code = string.Empty;
        public string AccessoryID = string.Empty;

        private void frmProductSelect_Load(object sender, EventArgs e)
        {
        }

        private void btnConfirm_Click(object sender, EventArgs e)
        {
            if (this.gridView1.FocusedRowHandle < 0)
            {
                MessageBox.Show("请选择数据行.", "用户信息提示框", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            string _Type = this.gridView1.GetDataRow(this.gridView1.FocusedRowHandle)[T_Merchandise.BIGTYPE].ToString();
            this.Source = _Type;
            this.Name = this.gridView1.GetDataRow(this.gridView1.FocusedRowHandle)[T_Merchandise.FULLNAME].ToString();
            this.Code = this.gridView1.GetDataRow(this.gridView1.FocusedRowHandle)[T_Merchandise.CODE].ToString();
            this.MERCHANDISEID = this.gridView1.GetDataRow(this.gridView1.FocusedRowHandle)[T_Merchandise.ID].ToString();
            if (_Type.Trim().Equals("自制零件"))
            {
                frmAccessorySelect _Select = new frmAccessorySelect();
                _Select.MerchandiseID = this.MERCHANDISEID;
                if (_Select.ShowDialog() == DialogResult.OK)
                {
                    this.AccessoryID = _Select.AccessoryID;
                    this.DialogResult = DialogResult.OK;
                }
            }
            else
            {
                frmBuyMaterialSelect _Select = new frmBuyMaterialSelect();
                _Select.MERCHANDISEID = this.MERCHANDISEID;
                if (_Select.ShowDialog() == DialogResult.OK)
                {
                    this.AccessoryID = _Select.BuyMaterialID;
                    this.DialogResult = DialogResult.OK;
                }
后面还有 24 行代码,购买后查看完整代码

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

AI 解读

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

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