private static string uretimFisiSatirOlustur(UnityObjects.IUnityApplication UnityApp, string malzemeKoduITEM_CODE, int Adet, string birimSeti, int fichelogi, string LineExp) { if (Kontrol.satirVarmiKontrolEtVarsaEkle(fichelogi, malzemeKoduITEM_CODE, Adet, LineExp)) { UnityObjects.Data uretimFisi = UnityApp.NewDataObject(UnityObjects.DataObjectType.doMaterialSlip); uretimFisi.Read(fichelogi); UnityObjects.Lines transactions_lines = null; transactions_lines = uretimFisi.DataFields.FieldByName("TRANSACTIONS").Lines; transactions_lines.AppendLine(); transactions_lines[transactions_lines.Count - 1].FieldByName("ITEM_CODE").Value = malzemeKoduITEM_CODE; transactions_lines[transactions_lines.Count - 1].FieldByName("LINE_TYPE").Value = 0; transactions_lines[transactions_lines.Count - 1].FieldByName("LINE_NUMBER").Value = "~"; transactions_lines[transactions_lines.Count - 1].FieldByName("DESCRIPTION").Value = LineExp; transactions_lines[transactions_lines.Count - 1].FieldByName("QUANTITY").Value = Adet; transactions_lines[transactions_lines.Count - 1].FieldByName("UNIT_CODE").Value = birimSeti; return(UnityKeeper.UnitySendPost(uretimFisi)); } return("ok"); }