• Object Structure
  • 员工

    • 假期
    • 薪水
    • 个人信息
    • 工作内容
      • 每天做了什么
      • 要去做什么
    • 培训
      • 内容
      • 做什么东西
      • 怎么做
    • 其他记录
    • 时间表
    • 会议

     经理,老板的面板:

    快速查看某个人的资料, wage, trainning, exam, time table, meeting record. 

     

    Staff Dashboard:

    check my timetable, learning and trainning. meeting record. 

     

    ERP

    Enterprise Resource Planning

    by kevin 8 years ago 0 comments

  • Desert Making
    1. 果酱挞皮 Yellow Pastry For Jam
      1. 1kgb 牛油 Yellow Butter
      2. 600g  糖
      3. 4 个鸡蛋 4 Egg
      4. 少量柠檬黄色素打匀 One Spoon Egg Yellow Colouring Powder Mix with water
      5. 最后加入2kg 底根白粉
    2. 白色挞皮 (晚上出)White Pastry for Grand Buffet

    0.5 kg 牛油 Yellow Butter

    4 个鸡蛋打匀 Egg

    加入1kg 面粉 Cake Flour

    一种放花生酱, 上面擦上巧克力,  Chocolate Hazelnut Spread

    一种放柠檬酱, 上面擦上

     

    1. 香蕉
      1. 6
      2. 18小匙鱼胶粉
      3. 搞匀
      4. 再加入2合香精
      5. 煮热去泡

     

    • Chocolate朱古力

     

      1. 6
      2. 18小匙鱼胶粉
      3. 搞匀
      4. 再加入2合香精
      5. 煮热去泡
    1. 草莓布丁 Strawberry Pudding
      1. 6 6 Strawberry Milkshake
      2. 18小匙鱼胶粉 18 small spool
      3. 搞匀
      4. 再加入2合香精
      5. 煮热去泡
    2.  

     

    1. 奶油布丁
      1. 6
      2. 12小匙鱼胶粉
      3. 煮热去泡

     

    1. 芒果布丁
      1. 3600 ml 热水
      2. 先加半包糖煮
      3. 另外半包糖加10大匙鱼胶粉匀
      4. 倒入水煮
      5. 2瓶芒果酱
      6. 4瓶花奶

     

    1. 香蕉布丁
      1. 用热水开奶王酱,搞成糊状
      2. 装杯摊冻
      3. 用少量的Cream, 打烂10根香蕉,加入几滴香草香精
      4. 装在奶王酱的杯里
      5. 放些朱古力粉

     

     

     

    1. 饼干布丁 Pudding With Cookie
      1. 饼干碎装杯
      2. Cream 加少量朱古力酱搞匀
      3. 上面放一粒朱古力

     

     

      1. 朱古力蛋糕 Chocolate Cake

     

    • 一次做6

     

      1. 2.5 kg Chocolate Supper Sponge Mix
      2. 1 kg 鸡蛋
      3. 1.2 kg
      4. 打匀
      5. 快档(5分钟)
    1. 原味蛋糕 White Cake
      1. 一次做6
      2. 2.5 kg Ireks Plain Sponge cake
      3. 2.2 kg

     

      1. 黑饼 Brownie
        1. 一次做6
        2. 10kg
        3. 加入2.5 kg水打匀
        4. 温度330
        5. 75 分钟
          1. 大约25分钟后上面的与下面的对调
          2. 50分钟后中间和下面的对调

     

    •  

     

    1. 黄饼 Flapjack
      1. 一次做6
      2. 10 kg
      3. 550 克水打匀
      4. 烘烤时间?

     

    1. Pizza
      1. 大约24个, 每个200g
      2. 3kg 粉, 加入少量盐, 酵母 用热水开匀

    by kevin 8 years ago 0 comments

  • Data Table Design
  • 对象:

    Ktv Stock, Stock Control, Label, Dish 等等这些都是物体对象,它们的属性也小有不同,所以它们是不是可以统一管理,同一个数据表,按不同的目录分类,属性可以不同。这样会节省开发的时间,不用为每一个对象做差不多一样的工作。数据表,外观,新增,编辑,删除,。。如果只有一个平台去管理所有这些对象将会方便很多,问题是可能会运行起来会慢,因为很多对象用同一个数据表。

    人物:

    employee, contact, customer, supplier, buffet customer, ktv customer, takeaway customer, 这些也是差不多相像的。

     组织:

    餐馆,外卖,零售,公司

    起码我用这种用户界面的方式去管理整个系统的对象,做成一个大库,以后就可以用上帝模式去做不同的对象,不用重新去想,重复的东西

     

    对象,目录,子目录之间的关系,多对多关系

    • 一个对象属于一个目录,属于一个子目录,也可能属于很多个子目录,比如,我属于人类,属于职员,家庭成员,供货商,客户。。。这些都是相对而言
    • 一个目录有很多个对象,有很多个子目录。比如,人类有很多人,各种人,按地域分,人种分,颜色分。 如果职业作为子目录,地域,人种,还有人与人的关系,所以人类包含有很多的个体,每个个体都属于某种小分类。
    • 一个子目录有多个对象,属于一个目录。

     

    把所有世间这些对象之间的关系搞清楚后,做成一个库,可以根据这些关系,属性生成数据表,就很快速了,做成一个框架,对象库,以后要生成要一个关于某个对象的数据表,哪就会简单快捷很多,而且不用写代码

    by kevin 8 years ago 0 comments

  • Thinking
  • 昨天用了几个小时,开发了8个简单了CRUD Form, 用laravel 框架与php storm的live template, 效率很高,很快就做出了一个。如果换是以前单用php,哪是不可想像的,要花二三天的时间可能。

    基本上就是几个步骤:

    1. Database
    2. Controller
    3. Model
    4. View
    5. Route

    以后自己有更多的开发经验后,完全可以做到一键速成,再用interface 的方式去细改,可能以后都不用写代码了。

    理由:

    • Database 无非就是运行一个php artisan make:migration, 再修改里面的文件,根据须求,创建不同的Column, 然后就再运行,php artisan migrate 就可以了,所以如果以后有时间,可以做一个集合很多不同的应用的column, 属性。 通用的。用户选择须要的,再直接生成php artisan make:migration 文件,运行就可以实现快速生成
    • Controller
      • 里面无非就是
        • Index
        • Show
        • Update
        • Edit
        • Store
        • Destroy
      • 大部分都通用,改一些变量就可以了
      • 到时候整个文件只要打几个变量名,再细改一下就可以了。
    • Model
      • 这个很易做,几分钟的事
      • 如果有column的库,直接在里面调用就可以省去一个一个打column filler 的麻烦
    • View
      • 就是创建5个文件
      • 然后每个文件再用live template 很快就可以搞定,打几个变量就可以
      • 如果以后开发技能进步了,可以在用户界面编辑文件的内容,哪就会简单很多了
      • 基本可以一键操作
      • 哪个form.blade.php文件可以跟Column 库合作,现用Live template , foreach 生成很多的textfield
    • Route
      • 哪就是几行代码的事

    by kevin 8 years ago 0 comments

  • About Github and Forge
  • Today spend 4 hour to do found out why can not easyly setting up the forge web deploy and sync from github, the main reason is the .env file.  When the first time make a new repository, the .env file have to able to pull from the github, if not exist on the gihub will have error. after run the first success repository, the change the local .gitignore file to :

    Homestead.yaml
    Homestead.json
    .env

    means will ingnore the .env file

    by kevin 8 years ago 0 comments

  • Jest Eat
  • 以前我开发的结构:

    前台:

    • post code, city, address search restaurant or takeaway.
    • and the taste or favour
    • adv the show near to customer postcode
    • sort by the star
    • sort by the distance
    • add order
    • shopping cart, basket
    • delivery charge
    • login, logout, customer, shop owner, web editor, admin
    • personal info record
    • open time control

     

     

    后台:

    1. shop management
      1. dish and category management
        1. add
        2. edit 
        3. del
      2. customer management
      3. order management
      4. delivery status

     

    Database Design

    • customer
    • shop
    • dish
    • dish category
    • order

    Interface Design

    • auth
    • member
    • dish management
    • order management

     

    by kevin 8 years ago 0 comments

  • Install new Laravel
    • Prepare, Install new composer
    • composer create_project laravel/laravel yourprojectname --prefer -dist
    • composer install
    • cp .env.example .env
    • php artisan key:generate
    • php artisan migrate
    php artisan db:seed --class=DatabaseSeeder

    by kevin 8 years ago 0 comments

  • Access the Localhost by Phone
  • If you're not bound to using Apache or nginx for some special reason and this is for development purposes only, you could serve the application using the PHP built-in server and artisan. It's by far the easiest thing to setup, and will only require you to run one command in the Laravel application directory:

    php artisan serve --host 0.0.0.0

    The default port it will be listening to will be 8000 to avoid any conflicts, so you can now access the application from your phone via the IP address of your computer:

    http://192.168.1.101:8000

    If you want to listen to another port (for example the default HTTP port of 80) you can pass that as a parameter, just make sure no other server is running on that port. So if you run this instead:

    php artisan serve --host 0.0.0.0 --port 80

    You can now access your application with just the IP address:

    http://192.168.1.101



    sudo scutil --set HostName name-you-want

    Change the full name of a user account

    A user's full name can be changed by that user or an administrator. The full name doesn't need to be the same as the account name or home folder name.

    OS X Yosemite or later

    1. Choose Apple menu () > System Preferences, then click Users & Groups.
    2. Click the lock button  , then enter an administrator name and password. 
    3. From the list of users, Control-click or right-click the user that you want to rename. Choose Advanced Options from the shortcut menu.
    4. Change the name in the “Full name” field, then click OK.
     

    by kevin 8 years ago 0 comments