Пример #1
0
        public void TestServiceFFunction()
        {
            DataReviewWorksheet.DataReviewWorksheet_Service svc = new DataReviewWorksheet.DataReviewWorksheet_Service();
            svc.Url         = common.ReBuildUrl(svc.Url, GlobalVariable.CompanyName);
            svc.Credentials = common.CheckCredentials();

            DataReviewWorksheet.DataReviewWorksheet RecordData = new DataReviewWorksheet.DataReviewWorksheet();

            //RecordData.Key = Guid.NewGuid().ToString();

            //RecordData.Entry_NoSpecified = true;
            //RecordData.Entry_No = 80;

            RecordData.Entity = "CIN-DAK-BMT";

            RecordData.Posting_DateSpecified = true;
            RecordData.Posting_Date          = DateTime.Now;

            RecordData.No = "5111";

            RecordData.QuantitySpecified = true;
            RecordData.Quantity          = 9;

            RecordData.Unit_Price          = 45;
            RecordData.Unit_PriceSpecified = true;

            RecordData.AmountSpecified = true;
            RecordData.Amount          = 405;

            RecordData.Remark = "21 Bridges(2D - VIET.SUB)";

            RecordData.Transaction_TypeSpecified = true;
            RecordData.Transaction_Type          = DataReviewWorksheet.Transaction_Type.Box_Office;

            RecordData.Import_TimeSpecified = true;
            RecordData.Import_Time          = DateTime.Now;

            RecordData.Import_User = "******";

            RecordData.StatusSpecified = true;
            RecordData.Status          = DataReviewWorksheet.Status.Open;

            RecordData.Location_Code = "BMT-CO";

            RecordData.TypeSpecified = true;
            RecordData.Type          = DataReviewWorksheet.Type.G_L_Account;

            RecordData.Cinema_Code = "HO2D21BRID";
            try
            {
                svc.Update(ref RecordData);
            }
            catch (Exception)
            {
                throw;
            }
        }
Пример #2
0
        public void insertDataToDataReview()
        {
            Test.DataReviewWorksheet.DataReviewWorksheet_Service svc = new DataReviewWorksheet.DataReviewWorksheet_Service();
            svc.UseDefaultCredentials = true;

            DataReviewWorksheet.DataReviewWorksheet RecordData = new DataReviewWorksheet.DataReviewWorksheet();

            RecordData.Cinema_Code = "HO2DCHCHEE";

            RecordData.Entry_NoSpecified = true;
            RecordData.Entry_No          = 80;

            RecordData.Entity = "CIN-DAK-BMT";

            RecordData.Posting_DateSpecified = true;
            RecordData.Posting_Date          = DateTime.Now;

            RecordData.No = "5111";

            RecordData.QuantitySpecified = true;
            RecordData.Quantity          = 9;

            RecordData.Unit_Price          = 45;
            RecordData.Unit_PriceSpecified = true;

            RecordData.AmountSpecified = true;
            RecordData.Amount          = 405;

            RecordData.Remark = "Chi Chi Em Em (2D-VIET.SUB)";

            RecordData.Transaction_TypeSpecified = true;
            RecordData.Transaction_Type          = DataReviewWorksheet.Transaction_Type.Box_Office;

            RecordData.Import_TimeSpecified = true;
            RecordData.Import_Time          = DateTime.Now;

            RecordData.Import_User = "******";

            RecordData.StatusSpecified = true;
            RecordData.Status          = DataReviewWorksheet.Status.Open;

            RecordData.Location_Code = "BMT-CO";

            RecordData.TypeSpecified = true;
            RecordData.Type          = DataReviewWorksheet.Type.G_L_Account;

            try
            {
                svc.Create(ref RecordData);
            }
            catch (Exception e)
            {
                string msg = e.Message;
                throw;
            }
        }