Esempio n. 1
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            if (isAdd == 3)
            {
                ActionLoad ld = ActionLoad.Conn();
                DataTable  tb = ld.Find("EQOutMainDaYinQuery", new object[] { dr["出库ID"].ToString() });
                if (tb != null && tb.Rows.Count > 0)
                {
                    // setDefalutStock(tb.Rows[0], r);

                    Dictionary <string, object> pp = new Dictionary <string, object>();
                    pp.Add("BiaoTi", tb.Rows[0][0].ToString() + "  【" + inware_name + "】  " + "出库单");
                    pp.Add("FangXiang", "出库库房:  【" + inware_name + "】");
                    pp.Add("Time", "时间:" + tb.Rows[0][4].ToString());
                    pp.Add("LeiBie", "类别:出库单");
                    pp.Add("BianHao", "单据号:" + tb.Rows[0][6].ToString());
                    //pp.Add("HeJi", "合计");
                    pp.Add("JinE1", tb.Rows[0][7].ToString());
                    //pp.Add("JinE2", tb.Rows[0][10].ToString());
                    pp.Add("Name1", "操作员:" + tb.Rows[0][1].ToString());
                    pp.Add("Name2", "审核员:" + tb.Rows[0][2].ToString());
                    pp.Add("Name3", "");
                    // pp.Add("Name4", "出库员:" + tb.Rows[0][3].ToString());
                    pp.Add("HeJi", "备注:" + tb.Rows[0]["MEMO"].ToString());
                    pp.Add("ID", dr["出库ID"].ToString());
                    app.LoadPlug("RepEdit.RepView", new object[] { "CLEQDBDYCS001", pp, false }, false);
                }
            }
            else
            {
                MessageBox.Show("请先保存数据!");
            }
        }
Esempio n. 2
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            if (inware_id == null)
            {
                ActionLoad ld = ActionLoad.Conn();
                DataTable  tb = ld.Find("EQInMainDaYinQuery", new object[] { dr["入库ID"].ToString() });


                if (tb != null && tb.Rows.Count > 0)
                {
                    // setDefalutStock(tb.Rows[0], r);
                    string KuFangName              = LData.Exe("EQGetInWareName", "LKEQ", new object[] { His.his.Choscode, tb.Rows[0]["WARECODE"].ToString() });
                    string RuKuFangShi             = LData.Exe("EQGetInWareWayName", "LKEQ", new object[] { His.his.Choscode, tb.Rows[0]["IOID"].ToString() });
                    Dictionary <string, object> pp = new Dictionary <string, object>();
                    pp.Add("BiaoTi", tb.Rows[0][0].ToString() + "  【" + KuFangName + "】  " + "入库单");
                    pp.Add("FangXiang", "入库到  【" + KuFangName + "】");
                    pp.Add("Time", "时间:" + tb.Rows[0]["RECDATE"].ToString());
                    pp.Add("LeiBie", "类别:" + RuKuFangShi);
                    pp.Add("BianHao", "单据号:" + tb.Rows[0]["RECIPECODE"].ToString());
                    pp.Add("HeJi", "供应商:" + tb.Rows[0]["SUPPLYNAME"].ToString());
                    pp.Add("JinE1", tb.Rows[0]["TOTALMONEY"].ToString());
                    //  pp.Add("JinE2", tb.Rows[0]["LSTOTALMONEY"].ToString());
                    pp.Add("Name1", "操作员:" + tb.Rows[0]["USERNAME"].ToString());
                    pp.Add("Name2", "审核员:" + tb.Rows[0]["SHUSERNAME"].ToString());
                    pp.Add("Name3", "备注:" + tb.Rows[0]["MEMO"].ToString());
                    // pp.Add("Name4", "入库科室:" + tb.Rows[0]["DEPTNAME"].ToString());
                    pp.Add("ID", dr["入库ID"].ToString());
                    app.LoadPlug("RepEdit.RepView", new object[] { "CLEQRKDYCS001", pp, false }, false);
                }
            }
            else
            {
                MessageBox.Show("请先保存数据!");
            }
        }