private void btn_Kaydet_Click(object sender, EventArgs e) { logger.info("frm_11_Toplama_Ikmal_Nakil_Sip_Onaylama_btn_Kaydet_Click begin"); if (txtHedefAdres2.Text.Trim() == "") { return; } if (txtPaletNo.Text.ToString().Trim() != Convert.ToInt64(txtHedefPaletNo.Text.ToString().Trim()).ToString()) { MessageBox.Show("Hedef palet numarası farklı olamaz", "HATA"); return; } if (txtHedefAdres.Text.ToString().Trim() != txtHedefAdres2.Text.ToString().Trim()) { MessageBox.Show("Hedef adres numarası farklı olamaz", "HATA"); return; } Cursor.Current = Cursors.WaitCursor; try { WS_Islem.ZKT_WM_WS_ISLEMSERVICE srv = new KoctasWM_Project.WS_Islem.ZKT_WM_WS_ISLEMSERVICE(); WS_Islem.ZKtWmWsIkmalNaksipOnay chk = new KoctasWM_Project.WS_Islem.ZKtWmWsIkmalNaksipOnay(); WS_Islem.ZKtWmWsIkmalNaksipOnayResponse resp = new KoctasWM_Project.WS_Islem.ZKtWmWsIkmalNaksipOnayResponse(); chk.IvTanum = _tanum.ToString(); chk.IvMiktar = toplamMiktar; srv.Credentials = GlobalData.globalCr; srv.Url = Utility.getWsUrlForWM("zkt_wm_ws_islem"); resp = srv.ZKtWmWsIkmalNaksipOnay(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(txtHedefPaletNo); } 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); //this.Close(); frm_11_Toplama_Ikmal_Nakil_Sip_Onaylama_Load(new object(), new EventArgs()); } else { MessageBox.Show(GlobalData.rMsg[0].Message.ToString(), "BİLİNMEYEN DURUM"); Utility.selectText(txtHedefPaletNo); } } else { MessageBox.Show("EsResponse dönüş değeri hatalı", "HATA"); } } catch (Exception ex) { MessageBox.Show(ex.Message, "HATA"); Utility.selectText(txtHedefPaletNo); logger.error("frm_11_Toplama_Ikmal_Nakil_Sip_Onaylama_btn_Kaydet_Click " + ex.Message); } finally { Cursor.Current = Cursors.Default; } logger.info("frm_11_Toplama_Ikmal_Nakil_Sip_Onaylama_btn_Kaydet_Click end"); }