private void btn_Kaydet_Click(object sender, EventArgs e) { logger.info("frm_04_Depo_Musteri_Iade_Alani_Transfer_btn_Kaydet_Click begin"); if (txtHedefPalet.Text.ToString().Trim() == "") { return; } txtHedefPalet.Text = txtHedefPalet.Text.ToUpper(); Cursor.Current = Cursors.WaitCursor; try { WS_Islem.ZKT_WM_WS_ISLEMSERVICE srv = new KoctasWM_Project.WS_Islem.ZKT_WM_WS_ISLEMSERVICE(); WS_Islem.ZKtWmWsIadeTransfer chk = new KoctasWM_Project.WS_Islem.ZKtWmWsIadeTransfer(); WS_Islem.ZKtWmWsIadeTransferResponse resp = new KoctasWM_Project.WS_Islem.ZKtWmWsIadeTransferResponse(); chk.IvHedefPalet = txtHedefPalet.Text.ToString(); chk.IvMatnr = malzemeNo; chk.IvMiktar = miktar; //Hedef adres için input alanı webservisten gelmiyor, eklenecek srv.Credentials = GlobalData.globalCr; srv.Url = Utility.getWsUrlForWM("zkt_wm_ws_islem"); resp = srv.ZKtWmWsIadeTransfer(chk); if (resp.EsResponse.Length > 0) { //Mesajlar düzenleniyor GlobalData.rMsg = new KoctasWM_Project.WS_Islem.ZktWmReturn[resp.EsResponse.Length]; GlobalData.rMsg = Utility.mesajDuzenle(resp.EsResponse); if (GlobalData.rMsg[0].Msgty.ToString().ToUpper() == "E") { MessageBox.Show(GlobalData.rMsg[0].Message.ToString(), "HATA"); Utility.selectText(txtHedefPalet); } else if ((GlobalData.rMsg[0].Msgty.ToString().ToUpper() == "S") || (GlobalData.rMsg[0].Msgty.ToString().ToUpper() == "W") || (GlobalData.rMsg[0].Msgty.ToString().ToUpper() == "I")) { MessageBox.Show(GlobalData.rMsg[0].Message.ToString(), "BİLGİ"); Utility.moreMsgCheck(GlobalData.rMsg); formAcilisDuzenle(); } else { MessageBox.Show(GlobalData.rMsg[0].Message.ToString(), "BİLİNMEYEN DURUM"); Utility.selectText(txtHedefPalet); } } else { MessageBox.Show("EsResponse dönüş değeri hatalı", "HATA"); } } catch (Exception ex) { MessageBox.Show(ex.Message, "HATA"); logger.error("frm_04_Depo_Musteri_Iade_Alani_Transfer_btn_Kaydet_Click " + ex.Message); } finally { Cursor.Current = Cursors.Default; } logger.info("frm_04_Depo_Musteri_Iade_Alani_Transfer_btn_Kaydet_Click end"); }