Exemple #1
0
 /// <summary>
 /// 工具栏and菜单栏单击事件and控制text输入and菜单栏跟工具栏单击事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 ///
 private void 微商通道EToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!PanDuan_weishang())
     {
         if (PanDuan2_weishang())
         {
             //MessageBox.Show("chenggong", "tishi");
             if (!QianJia_weishang())
             {
                 double zhongliang = double.Parse(num_weishang.Value.ToString());
                 //jt.ZhongLiang = zhongliang;
                 zhong = zhongliang + zhong;
                 DialogResult dr = MessageBox.Show("是否继续添加", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk);
                 if (dr == DialogResult.OK)
                 {
                     QingKongBuFen();
                 }
                 else
                 {
                     ChuangDi.ZhongLiang = zhong;
                     FrmKuaiDiJieSuan js = new FrmKuaiDiJieSuan();
                     js.Show();
                     QingKong_weishang();
                     QingKong2_weishang();
                 }
             }
         }
     }
     else
     {
         MessageBox.Show("UID或者快递员编号输入错误");
     }
 }
Exemple #2
0
 /// <summary>
 /// 揽入快递
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void button7_Click(object sender, EventArgs e)
 {
     if (!PanDuan())
     {
         if (PanDuan2())
         {
             //MessageBox.Show("chenggong", "tishi");
             if (!QianJia())
             {
                 QingKong();
                 double zhongliang = double.Parse(num_zhongliang.Value.ToString());
                 //jt.ZhongLiang = zhongliang;
                 ChuangDi.ZhongLiang = zhongliang;
                 FrmKuaiDiJieSuan js = new FrmKuaiDiJieSuan();
                 js.Show();
                 QingKong2();
             }
             //MessageBox.Show(zhongliang.ToString(),"提示");
         }
     }
     else
     {
         MessageBox.Show("UID或者快递员编号输入错误");
     }
 }