Пример #1
0
        public StreamedAttachmentResult GetSoArchiveAttachmentDataStreamed(AttachmentBaseShipment shipment)
        {
            var client = GenerateSoArchiveStreamedProxy(shipment.EndpointName, shipment.Certificate);

            OperationContext = "SOAStreamedGetAttachmentData";
            return(new StreamedAttachmentResult()
            {
                Result = IoFunctionality.WriteStreamToFile(
                    client.GetAttachmentDataStreamedEC(shipment.Username, shipment.Password, shipment.AttachmentId))
            });
        }
 private void GC_SaveResult_btn_Click(object sender, EventArgs e)
 {
     IoFunctionality.GeneralizedSaveFile(CorrespondenceStatus);
 }
 private void GC_SaveShipment_btn_Click(object sender, EventArgs e)
 {
     IoFunctionality.GeneralizedSaveFile(Filter);
 }
 private void GC_LoadShipment_btn_Click(object sender, EventArgs e)
 {
     Filter = IoFunctionality.GeneralizedLoadFile(Filter);
     SetViewedItem(Filter, "Shipment for InsertCorrespondence");
 }
 private void btn_ICSaveResult_Click(object sender, EventArgs e)
 {
     IoFunctionality.GeneralizedSaveFile(ResultIc);
 }
 private void btn_ICSaveShipment_Click(object sender, EventArgs e)
 {
     ClearBasicShipmentsettings(ShipmentIc);
     IoFunctionality.GeneralizedSaveFile(ShipmentIc);
 }
 private void btn_ICLoadShipment_Click(object sender, EventArgs e)
 {
     ShipmentIc = (InsertCorrespondenceShipmentAec)IoFunctionality.GeneralizedLoadFile(ShipmentIc);
     SetViewedItem(ShipmentIc, "Shipment for InsertCorrespondence");
 }