Beispiel #1
0
 private void button5_Click(object sender, EventArgs e)
 {
     try
     {
         string err_text = "";
         string djsj     = DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToString();
         bool   b        = HG_insterface_TL.TransFee(Pint, "1", lblzxbh.Text, "0", lblgrxhbh.Text, "4", "90000001", "ZYYXY1600", "N阿拓莫兰", "1", "7", djsj, out err_text);
         bool   bb       = HG_insterface_TL.TransFee(Pint, "1", lblzxbh.Text, "0", lblgrxhbh.Text, "4", "90000001", "ZYYXY1600", "N阿拓莫兰", "1", "3", djsj, out err_text);
     }
     catch (System.Exception err)
     {
         MessageBox.Show(err.Message, "", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                string err_text = "";
                //清除临时表
                HG_insterface_TL.ClearTemp(Pint, "1");
                //插入费用
                string djsj = "2009-08-13 13:00:00"; DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToString();
                bool   b    = HG_insterface_TL.TransFee(Pint, "1", lblzxbh.Text, "0", lblgrxhbh.Text, "1", "M", "ZYYXY1600", "N阿拓莫兰", "1", "16.90", djsj, out err_text);

                ParameterSet outParameterSet1 = new ParameterSet();
                outParameterSet1 = HG_insterface_TL.Discharge_MZ(Pint, "M", "0", lblzxbh.Text, lblgrxhbh.Text, "00000", "0", "1");
                DataTable tbYb = outParameterSet1.ConvertToDataTable();
                this.dataGridView1.DataSource = tbYb;
            }
            catch (System.Exception err)
            {
                MessageBox.Show(err.Message, "", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }