public static bool atfKaydet(string _koliNo, string _atfNo) { bool basarili = false; try { WS_Islem.ZKT_WM_WS_ISLEMService srv = new KoctasWM_Project.WS_Islem.ZKT_WM_WS_ISLEMService(); WS_Islem.ZKtWmWsAtfKaydet chk = new KoctasWM_Project.WS_Islem.ZKtWmWsAtfKaydet(); WS_Islem.ZKtWmWsAtfKaydetResponse resp = new KoctasWM_Project.WS_Islem.ZKtWmWsAtfKaydetResponse(); chk.IvKoliNo = _koliNo; chk.IvAtfNo = _atfNo; srv.Credentials = GlobalData.globalCr; srv.Url = Utility.getWsUrlForWM("zkt_wm_ws_islem"); resp = srv.ZKtWmWsAtfKaydet(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"); } 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); basarili = true; } else { MessageBox.Show(GlobalData.rMsg[0].Message.ToString(), "BİLİNMEYEN DURUM"); } } else { MessageBox.Show("EsResponse dönüş değeri hatalı", "HATA"); } } catch (Exception ex) { MessageBox.Show(ex.Message, "HATA"); } return(basarili); }