yin荡护士揉捏乱p办公室视频,国产激情精品一区二区三区 ,无码孕妇孕交在线观看,国产果冻豆传媒麻婆精东

免費(fèi)服務(wù)熱線:400-016-7107
在線客服為您服務(wù)

免費(fèi)服務(wù)熱線

400-016-7107

工作時間

周一至周五 9:00-18:00

(12:00-13:30及法定假日除外)

SAP Business One瀏覽器擴(kuò)展組件-代碼樣本

時間:2018-09-14
分享到 :

SAP Business One瀏覽器擴(kuò)展組件-代碼樣本

上傳和下載文件

if (SBO_Application.ClientType == BoClientType.ct_Browser)

{

    string path = null;

    try

    {

        path = SBO_Application.GetFileFromBrowser();

        using (FileStream fs = File.Open(path, FileMode.Open))

        {

            //read the file

        }

    }

    catch (Exception ex)

    {

        //exception handling

    }

 

    try

    {

        bool isSucceed = SBO_Application.SendFileToBrowser(path);

    }

    catch (Exception ex)

    {

        //exception handling

    }

}

else if(SBO_Application.ClientType == BoClientType.ct_Desktop)

{

    System.IO.Stream readStream = null;

    OpenFileDialog openFileDialog1 = new OpenFileDialog();

    if (openFileDialog1.ShowDialog() == DialogResult.OK)

    {

        try

        {

            if ((readStream = openFileDialog1.OpenFile()) != null)

            {

                using (readStream)

                {

                    //read the file

                }

            }

        }

        catch (Exception ex)

        {

            //exception handling

        }

    }

 

    SaveFileDialog saveFileDialog1 = new SaveFileDialog();

    System.IO.Stream writeStream = null;

    if (saveFileDialog1.ShowDialog() == DialogResult.OK)

    {

        try

        {

            if ((writeStream = saveFileDialog1.OpenFile()) != null)

            {

                using (writeStream)

                {

                    //write the file

                }

            }

        }

        catch (Exception ex)

        {

            //exception handling

        }

    }

}


TransInfo斯凱普斯是SAP制造業(yè)解決方案核心合作伙伴,SAP金牌實(shí)施商,專注上海/無錫/蘇州/廣州/深圳/東莞/成都等地SAP ERP軟件SAP制造業(yè)ERP軟件、 電子制造ERP、醫(yī)藥行業(yè)ERP、精細(xì)化工ERP、機(jī)械制造設(shè)備行業(yè)ERP實(shí)施服務(wù)