예제 #1
0
        /// <summary>
        /// 视频切组/呼叫(PPT)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OnVideoCallBack(object sender, CallBackEntity e)
        {
            if (!e.Success)
            {
                foreach (Window win in this.OwnedWindows)
                {
                    if (win.Uid == e.CallId)
                    {
                        //如果呼叫的任一步骤出错,还原到初始状态,重新呼叫
                    }
                }

                return;
            }
            switch (e.Type)
            {
            case 0:
                //切组成功 显示呼叫按钮

                break;

            case 1:
                //呼叫成功,显示停止按钮

                break;

            case 2:
                //停止成功,显示切组按钮

                break;

            default:
                break;
            }
        }
예제 #2
0
        public object Stop(CallBackEntity model)
        {
            model.Type = 2;
            VideoCallBackEvent?.Invoke(null, model);

            return(new { success = true, msg = string.Empty });
        }
예제 #3
0
        public ActionResult AddListSalesDetail(List <P_ConsumptionInfo> cilist)
        {
            CodeModels.CallBackEntity <string> cbe = new CallBackEntity <string>();
            SqlSugarClient sclient = SugarFactory.GetInstance();
            var            result  = sclient.Ado.UseTran(() =>
            {
                foreach (P_ConsumptionInfo ci in cilist)
                {
                    if (ci.Consumption_Money != null && ci.Consumption_Money != 0)
                    {
                        ci.Consumption_Code = Guid.NewGuid();
                        int count           = sclient.Insertable <P_ConsumptionInfo>(ci).ExecuteCommand();
                    }
                }
            });

            if (result.IsSuccess)
            {
                cbe.Status = 200;
                cbe.Msg    = "成功";
            }
            else
            {
                cbe.Status = 400;
                cbe.Msg    = "提交数据有误!";
            }

            return(Json(cbe));
        }
예제 #4
0
 public ActionResult AddSalesDetail(P_ConsumptionInfo ci)
 {
     CodeModels.CallBackEntity <string> cbe = new CallBackEntity <string>();
     if (ci.Consumption_Money != null && ci.Consumption_Money != 0)
     {
         ci.Consumption_Code = Guid.NewGuid();
         int count = SugarFactory.GetInstance().Insertable <P_ConsumptionInfo>(ci).ExecuteCommand();
         if (count > 0)
         {
             cbe.Status = 200;
             cbe.Msg    = "成功";
         }
         else
         {
             cbe.Status = 400;
             cbe.Msg    = "失败";
         }
     }
     else
     {
         cbe.Status = 400;
         cbe.Msg    = "金额不能为空";
     }
     return(Json(cbe));
 }
예제 #5
0
        public ActionResult AddMerchantInfo(AdminPanel.CodeModels.P_MerchantInfo cm)
        {
            CodeModels.CallBackEntity <string> cbe = new CallBackEntity <string>();
            cm.Merchant_Code = Guid.NewGuid();
            int rcount = SugarFactory.GetInstance().Insertable <P_MerchantInfo>(cm).ExecuteCommand();

            if (rcount > 0)
            {
                cbe.Status = 200;
                cbe.Data   = cm.Merchant_Code.ToString();
                cbe.Msg    = "成功";
            }
            else
            {
                cbe.Status = 400;
                cbe.Msg    = "失败";
            }
            return(Json(cbe));
        }