CyManager/ProductInserter.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Common;
using BLL;
namespace CyManager
{
public partial class ProductInserter : Form
{
public ProductInserter()
{
InitializeComponent();
}
//取消
private void button2_Click(object sender, EventArgs e)
{
this.Close();
}
/// <summary>
/// 确定按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button1_Click(object sender, EventArgs e)
{
if (this.textBox1.Text.Equals(""))//产品名称
{
MessageBoxNew.Show("请输入产品名称!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
this.textBox1.Focus();
}
else if (this.textBox5.Text.Equals(""))//进货单价
{
textBox5.Text = "0";
}
else if (this.textBox6.Text.Equals(""))//零售价
{
textBox6.Text = "0";
}
else if (BLLProduct.BLLProductNameQuery(this.textBox1.Text))
{
MessageBox.Show("产品名称已存在哦亲~");
}
else
{
try
{
CProduct p = new CProduct();
p.Price1 = Convert.ToDecimal(this.textBox5.Text);
p.RetailPrice1 = Convert.ToDecimal(this.textBox6.Text);
p.ProductTypeID1 = Convert.ToInt32(this.comboBox1.SelectedValue);
p.ProductName1 = this.textBox1.Text;
后面还有 75 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。