示例#1
0
        private string TotalMoney(GouJinInfo _goujinInfo)
        {
            string strReturnValue = "0.00";

            try
            {
                int    _Number    = _goujinInfo.p_sl1.Value;
                double _price     = Convert.ToDouble(_goujinInfo.p_sl2);
                double TotalValue = _price * _Number;
                strReturnValue = TotalValue.ToString("n");
            }
            catch (Exception ex)
            {
            }
            return(strReturnValue);
        }
示例#2
0
 /// <summary>
 /// 保存表单数据
 /// </summary>
 public override object GetSaveData()
 {
     KPS.Model.GouJinInfo gjinfo = new GouJinInfo();
     gjinfo.p_clmc     = textBox13.Text.Trim();
     gjinfo.p_cpmc     = txtbox1.Text.Trim();
     gjinfo.p_date     = dateTimePicker1.Value;
     gjinfo.p_dw       = textBox1.Text.Trim();
     gjinfo.p_ggxh     = txtbox2.Text.Trim();
     gjinfo.p_gys      = textBox2.Text.Trim();
     gjinfo.p_jsr      = textBox5.Text.Trim();
     gjinfo.p_mjph     = textBox9.Text.Trim();
     gjinfo.p_ph       = textBox14.Text.Trim();
     gjinfo.p_sl1      = (int)numericUpDown1.Value;
     gjinfo.p_sl2      = numericUpDown2.Value.ToString("0.00");
     gjinfo.p_zczh     = string.Format("食药监械({0})字 第({1})号", textBox7.Text.Trim(), textBox3.Text.Trim());
     gjinfo.p_zzs      = textBox4.Text.Trim();
     gjinfo.RemarkInfo = txtRemark.Text.Trim();    //备注信息
     gjinfo.Reconfirm  = txtreconfirm.Text.Trim(); //复核人
     gjinfo.p_valid    = dtimevalid.Value;         //有效期
     return(gjinfo);
 }
示例#3
0
 /// <summary>
 /// 诊断试剂购进信息编辑
 /// </summary>
 /// <param name="_GJModel"></param>
 public ZDSJGJ(GouJinInfo _GJModel)
 {
     _ThisModel = _GJModel;
     InitializeComponent();
 }