Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!InterfaceTool.IdentityVerify(Request))
            {
                Json = Result.Failure("身份认证错误");
                return;
            }

            //航次ID
            string strShip_Id = Request.Params["Ship_Id"];
            //进出口类型
            string strInOutType = Request.Params["InOutType"];
            //工号
            string strWork_No = Request.Params["Work_No"];


            if (strShip_Id == null || strInOutType == null || strWork_No == null)
            {
                Json = Result.Failure("参数错误");
                return;
            }

            Log log = new Log(Request);

            log.strBehavior    = "获取个人作业进度";
            log.strBehaviorURL = "/Query/GetWorkProgress_Perssonal.aspx";
            Json = new Con_Tally(log).GetWorkProgress_Perssonal(strShip_Id, strInOutType, strWork_No);
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!InterfaceTool.IdentityVerify(Request))
            {
                Json = Result.Failure("身份认证错误");
                return;
            }

            TallyE tallyE = new TallyE();

            tallyE.StrShip_Id      = Request.Params["Ship_Id"];
            tallyE.StrContainer_No = Request.Params["Container_No"];
            tallyE.StrBay_No       = Request.Params["Bay_No"];
            tallyE.StrWork_No      = Request.Params["Work_No"];
            tallyE.StrTime         = Request.Params["Time"];

            //strShip_Id = "6887";
            //strContainer_No = "185";

            if (tallyE.StrShip_Id == null || tallyE.StrContainer_No == null || tallyE.StrBay_No == null || tallyE.StrWork_No == null || tallyE.StrTime == null)
            {
                Json = Result.Failure("参数错误");
                return;
            }

            Log log = new Log(Request, tallyE);

            log.strBehavior    = "出口调贝";
            log.strBehaviorURL = "/Tally/Export/MoveBay.aspx";
            log.strWorkType    = "chgbay";
            Json = new Con_Tally(log).MoveBay(tallyE);
        }
Пример #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!InterfaceTool.IdentityVerify(Request))
            {
                Json = Result.Failure("身份认证错误");
                return;
            }

            //航次ID
            string strShip_Id = Request.Params["Ship_Id"];
            //夜班标志
            string strNight_Mark = Request.Params["Night_Mark"];

            if (strShip_Id == null || strNight_Mark == null)
            {
                Json = Result.Failure("参数错误");
                return;
            }

            Log log = new Log(Request);

            log.strBehavior    = "获取同班人员";
            log.strBehaviorURL = "/Query/GetWorkerOfSameClass.aspx";
            Json = new Con_Tally(log).GetWorkerOfSameClass(strShip_Id, strNight_Mark);
        }
Пример #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!InterfaceTool.IdentityVerify(Request))
            {
                Json = Result.Failure("身份认证错误");
                return;
            }

            //航次ID
            string strShip_Id = Request.Params["Ship_Id"];
            //查询箱号
            string strContainer_No = Request.Params["Container_No"];
            //作业类型——0普通,1出舱,2重装,3调贝,4甩箱
            string strWorkType = Request.Params["WorkType"];
            //指令标志
            string strBLInstruction = Request.Params["BLInstruction"];

            //strShip_Id = "6887";
            //strContainer_No = "TCNU5462434";
            //strWorkType = "0";
            //strBLInstruction = "1";

            if (strShip_Id == null || strContainer_No == null || strWorkType == null || strBLInstruction == null)
            {
                Json = Result.Failure("参数错误");
                return;
            }

            Log log = new Log(Request);

            log.strBehavior    = "获取理箱信息";
            log.strBehaviorURL = "/Container/GetContainerInfo.aspx";
            Json = new Con_Tally(log).GetContainerInfo(strShip_Id, strContainer_No, strWorkType, strBLInstruction);
        }
Пример #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!InterfaceTool.IdentityVerify(Request))
            {
                Json = Result.Failure("身份认证错误");
                return;
            }

            //航次ID
            string strShip_Id = Request.Params["Ship_Id"];
            //查询箱号
            string strContainer_No = Request.Params["Container_No"];

            //strShip_Id = "6887";
            //strContainer_No = "185";

            if (strShip_Id == null || strContainer_No == null)
            {
                Json = Result.Failure("参数错误");
                return;
            }

            Log log = new Log(Request);

            log.strBehavior    = "查找匹配箱号列表";
            log.strBehaviorURL = "/Container/FindMatchedContainerNoList.aspx";
            Json = new Con_Tally(log).FindMatchedContainerNoList(strShip_Id, strContainer_No);
        }
Пример #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!InterfaceTool.IdentityVerify(Request))
            {
                Json = Result.Failure("身份认证错误");
                return;
            }

            //航次ID
            string strV_Id = Request.Params["V_Id"];

            //strV_Id = "2664";

            if (strV_Id == null)
            {
                Json = Result.Failure("参数错误");
                return;
            }

            Log log = new Log(Request);

            log.strBehavior    = "下载贝位规范";
            log.strBehaviorURL = "/Download/DownloadBayStandard.aspx";
            Json = new Con_Tally(log).DownloadBayStandard(strV_Id);
        }
Пример #7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //if (!InterfaceTool.IdentityVerify(Request))
            //{
            //    Json = Result.Failure("身份认证错误");
            //    return;
            //}


            //航次ID
            string strShip_Id = Request.Params["Ship_Id"];
            //贝号
            string strBay_No = Request.Params["Bay_No"];

            strShip_Id = "6887";
            strBay_No  = "30";

            if (strShip_Id == null || strBay_No == null)
            {
                Json = Result.Failure("参数错误");
                return;
            }

            Log log = new Log(Request);

            log.strBehavior    = "下载船图";
            log.strBehaviorURL = "/Download/DownloadImageOfBay.aspx";
            Json = new Con_Tally(log).DownloadImageOfBay(strShip_Id, strBay_No);
        }
Пример #8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!InterfaceTool.IdentityVerify(Request))
            {
                Json = Result.Failure("身份认证错误");
                return;
            }

            //工号
            string strWork_No = Request.Params["Work_No"];
            //作业日期
            string strWork_Date = Request.Params["Work_Date"];
            //夜班标志
            string strNight_Mark = Request.Params["Night_Mark"];

            //strWork_No = "020974";
            //strWork_Date = "2018-06-04 09:33:02";
            //strNight_Mark = "01";

            if (strWork_No == null || strWork_Date == null || strNight_Mark == null)
            {
                Json = Result.Failure("参数错误");
                return;
            }

            Log log = new Log(Request);

            log.strBehavior    = "获取派工航次";
            log.strBehaviorURL = "/Voyage/GetArrangeVoyages.aspx";
            Json = new Con_Tally(log).GetArrangeVoyages(strWork_No, strWork_Date, strNight_Mark);
        }
Пример #9
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!InterfaceTool.IdentityVerify(Request))
            {
                Json = Result.Failure("身份认证错误");
                return;
            }

            //用户名
            string strAccount = Request.Params["Account"];
            //密码
            string strPassword = Request.Params["Password"];

            //strAccount = "wlgch";
            //strPassword = "******";

            if (strAccount == null || strPassword == null)
            {
                Json = Result.Failure("参数错误");
                return;
            }

            Log log = new Log(Request);

            log.strBehavior    = "登录";
            log.strBehaviorURL = "/Entrance/Login.aspx";
            log.strUserName    = strAccount;
            log.strWorkType    = "login";

            Json = new Con_Tally(log).Login(strAccount, strPassword);
        }
Пример #10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //if (!InterfaceTool.IdentityVerify(Request))
            //{
            //    Json = Result.Failure("身份认证错误");
            //    return;
            //}

            Log log = new Log(Request);

            log.strBehavior    = "下载车号";
            log.strBehaviorURL = "/Download/DownloadTruckNo.aspx";
            Json = new Con_Tally(log).DownloadTruckNo();
        }
Пример #11
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!InterfaceTool.IdentityVerify(Request))
            {
                Json = Result.Failure("身份认证错误");
                return;
            }
            TallyE tallyE = new TallyE();

            tallyE.StrShip_Id      = Request.Params["Ship_Id"];
            tallyE.StrContainer_No = Request.Params["Container_No"];
            tallyE.StrBay_No       = Request.Params["Bay_No"];
            tallyE.StrWork_No      = Request.Params["Work_No"];
            tallyE.StrTeam_No      = Request.Params["Team_No"];
            tallyE.StrHoliady_Mark = Request.Params["Holiady_Mark"];
            tallyE.StrTime         = Request.Params["Time"];
            tallyE.StrNewShip_Id   = Request.Params["NewShip_Id"];
            tallyE.StrBerth_No     = Request.Params["Berth_No"];
            tallyE.StrInOutType    = "E";
            string strContainer_No2 = Request.Params["Container_No2"];


            //strShip_Id = "6887";
            //strContainer_No = "185";

            if (tallyE.StrShip_Id == null || tallyE.StrContainer_No == null || strContainer_No2 == null || tallyE.StrTruck_No == null || tallyE.StrWork_No == null || tallyE.StrTeam_No == null || tallyE.StrHoliady_Mark == null || tallyE.StrNight_Mark == null || tallyE.StrTime == null)
            {
                Json = Result.Failure("参数错误");
                return;
            }

            Log log = new Log(Request, tallyE);

            log.strBehavior    = "进口双吊卸箱作业";
            log.strBehaviorURL = "/Tally/Export/DoubleLoadOfExport.aspx";
            log.strWorkType    = "tally";

            Json = new Con_Tally(log).Load_Unload(tallyE);
            Result reslut = JsonConvert.DeserializeObject <Result>(Json);

            if (reslut.IsSuccess == true && reslut.Message == null)
            {
                tallyE.StrContainer_No = strContainer_No2;
                tallyE.StrBay_No       = Convert.ToString((Convert.ToInt16(tallyE.StrBay_No.Substring(0, 2)) + 2)).PadLeft(2, '0') + tallyE.StrBay_No.Substring(2).PadLeft(4, '0');
                Json = new Con_Tally(log).Load_Unload(tallyE);
            }
        }
Пример #12
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!InterfaceTool.IdentityVerify(Request))
            {
                Json = Result.Failure("身份认证错误");
                return;
            }


            TallyE tallyE = new TallyE();

            tallyE.StrShip_Id      = Request.Params["Ship_Id"];
            tallyE.StrContainer_No = Request.Params["Container_No"];
            tallyE.StrBay_No       = Request.Params["Bay_No"];
            tallyE.StrWork_No      = Request.Params["Work_No"];
            tallyE.StrTeam_No      = Request.Params["Team_No"];
            tallyE.StrHoliady_Mark = Request.Params["Holiady_Mark"];
            tallyE.StrTime         = Request.Params["Time"];
            tallyE.StrEndTime      = Request.Params["EndTime"];
            tallyE.StrNewShip_Id   = Request.Params["NewShip_Id"];
            tallyE.StrBerth_No     = Request.Params["Berth_No"];
            tallyE.StrInOutType    = "E";
            tallyE.StrMovedMark    = "2";

            //strShip_Id = "6887";
            //strContainer_No = "185";

            if (tallyE.StrShip_Id == null || tallyE.StrContainer_No == null || tallyE.StrBay_No == null || tallyE.StrWork_No == null || tallyE.StrTeam_No == null || tallyE.StrTime == null)
            {
                Json = Result.Failure("参数错误");
                return;
            }

            Log log = new Log(Request, tallyE);

            log.strBehavior    = "出口重装作业";
            log.strBehaviorURL = "/Tally/Export/ReloadOfExport.aspx";
            log.strWorkType    = "tally_dx";
            Json = new Con_Tally(log).Moved_Load_Unload(tallyE);
        }