Exemplo n.º 1
0
        private void 新增ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            if (!PowerCheckCsClass.IfHasPower(LoginClass.LogID, CommFunction.GSYSNAME, sender, CommFunction.ConnectString))
            {
                return;
            }
            if (dataGridView1.Rows.Count <= 0)
            {
                return;
            }
            if (dataGridView1.Rows[dataGridView1.CurrentCell.RowIndex].Cells[4].Value.ToString() != "冷链")
            {
                MessageBox.Show("非冷链品种,请核对!"); return;
            }
            FrmItemTrack.falg  = "Add";
            FrmItemTrack.pSpdm = dataGridView1.Rows[dataGridView1.CurrentCell.RowIndex].Cells[2].Value.ToString();
            FrmItemTrack.ShowUniqueForm(true);
            if (FrmItemTrack.ifSave)
            {
                string sql = "select unid,size_desc 商品代码,whse 仓库,season 货主,shipto 客户,ifthermometer 是否附温度计,create_date_time 时间,user_name 操作人 " +
                             "from cc_item_track where 1=1 and size_desc in (" + FrmItemTrack.ResultSpdm + "')";

                OleDbDataAdapter sda = new OleDbDataAdapter(sql, CommFunction.ConnectString);
                DataSet          ds  = new DataSet();
                sda.Fill(ds, "chk_con2");

                dataGridView2.DataSource = ds.Tables["chk_con2"];
                dataGridView2.AutoResizeColumns();
            }
        }
Exemplo n.º 2
0
 private void FrmItemTrack_FormClosed(object sender, FormClosedEventArgs e)
 {
     pUniqueForm = null;//窗体唯一打开代码
 }
Exemplo n.º 3
0
 public FrmItemTrack()
 {
     pUniqueForm = this;//窗体唯一打开代码
     InitializeComponent();
 }
Exemplo n.º 4
0
        private static FrmItemTrack pUniqueForm = null; //窗体唯一打开代码

        #endregion Fields

        #region Constructors

        public FrmItemTrack()
        {
            pUniqueForm = this;//窗体唯一打开代码
            InitializeComponent();
        }
Exemplo n.º 5
0
 private void FrmItemTrack_FormClosed(object sender, FormClosedEventArgs e)
 {
     pUniqueForm = null;//窗体唯一打开代码
 }