Exemplo n.º 1
0
 private void btnOneceRecive_Click(object sender, EventArgs e)
 {
     if (applicationInfo.CtrlID != null && (applicationInfo.AppState == 3 || applicationInfo.AppState == 4))
     {
         ApplicationDetail applicationDetail = new ApplicationDetail();
         DataTable         AddApplicationDT  = applicationDetail.SelectDeliverDetailByCtrlID(applicationInfo.CtrlID);
         DataTable         AddAppInfoDT      = applicationInfo.SelectApplicationByCtrlID(applicationInfo.CtrlID);
         applicationDetail.DeleteReceiptDetail(AddApplicationDT);
         applicationDetail.InsertReceiptDetail(AddApplicationDT);
         applicationInfo.UpdateApplicationInfo(AddAppInfoDT);
         applicationInfo.ReceiptConfirm(applicationInfo.CtrlID, "一键自动收货!", Login.LoginUser, 1);
         SendEmailtoWuliu();
         MessageBox.Show("订单号:" + applicationInfo.CtrlID + "一键自动收货成功!", "消息", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     else
     {
         MessageBox.Show("订单号错误,或订单状态错误!", "消息", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }