GG_DPS/Outbill/FOutBillMdf.cs

(开头部分) 12KB

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

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using GG_DPS.App_Mode;

namespace GG_DPS
{
    public partial class frmOutBillMdf : Form
    {
        SqlDataReader dr;      
        public string strtype = String.Empty;
        public string struser = String.Empty;
        private double _MaxQty = 0;//当前物料最大出库数量
        public double _UpQty = 0;//保存修改前的出库数量
        string _Mno = "";//保存修改的物料编号

        public frmOutBillMdf()
        {
            InitializeComponent();
        }

        private void frmOutBillMdf_Load(object sender, EventArgs e)
        {
            this.txtuser.Text = Login.lgUserId;
            this.txtusername.Text = Login.lgUserName;
            this.cbowarehouse.Text = this.cbowarehouse.Items[0].ToString();
            if (btnSave.Tag.ToString() == "2")
            {
                this.cbovoucher.SelectedValue = strtype;
                this.txtuser.Text = struser;
                _Mno = this.txtmno.Text.Trim();
                if (_Mno != "")
                {
                    getMInfo(_Mno);
                    LookMnoMaxQty(_Mno);
                    txtqty.Text = _UpQty.ToString();
                }
            }
            btnExit.Tag = 0;
        }

        void LookMnoMaxQty(string mno)
        {
            OutBill bl = new OutBill();
            bl.mno = mno;
            dr = bl.SelectToReader(2);
            string d = "";
            while (dr.Read())
            {
                d = dr["库存"].ToString();
            }
            dr.Close();
            _MaxQty = Convert.ToDouble(d == "" ? "0" : d) + _UpQty;
        }

后面还有 313 行代码,购买后查看完整代码

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

AI 解读

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

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