private void btn_Kaydet_Click(object sender, EventArgs e) { if (txtPaletNo.Text.ToString().Trim() == "") { return; } Cursor.Current = Cursors.WaitCursor; try { WS_Islem.ZKT_WM_WS_ISLEMService srv = new KoctasWM_Project.WS_Islem.ZKT_WM_WS_ISLEMService(); WS_Islem.ZKtWmWsStkNitelikDegis chk = new KoctasWM_Project.WS_Islem.ZKtWmWsStkNitelikDegis(); WS_Islem.ZKtWmWsStkNitelikDegisResponse resp = new KoctasWM_Project.WS_Islem.ZKtWmWsStkNitelikDegisResponse(); chk.IvBestq = stokTipiDegistir.ToString(); chk.IvLenum = txtPaletNo.Text.ToString().Trim(); srv.Credentials = GlobalData.globalCr; srv.Url = Utility.getWsUrlForWM("zkt_wm_ws_islem"); resp = srv.ZKtWmWsStkNitelikDegis(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(txtPaletNo); } 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(txtPaletNo); } } else { MessageBox.Show("EsResponse dönüş değeri hatalı", "HATA"); } } catch (Exception ex) { MessageBox.Show(ex.Message, "HATA"); Utility.selectText(txtPaletNo); } finally { Cursor.Current = Cursors.Default; } }